Here is my logic:
if (IsFirstTickOfBar)
priorValueLow3 = Bollinger1.Lower[0];
if ((Stochastics1.K[0] < NumberLow)
&& (Bollinger1.Lower[0] <= priorValueLow3 && (CrossBelow(Low, Bollinger1.Lower, 1))))
{
Draw.ArrowUp(this, @"GreenArrowUp"+CurrentBar, false, 0, (Low[0] + (-2 * TickSize)) , Brushes.Lime);
}
if (Bollinger1.Lower[0] <= priorValueLow3)
{
priorValueLow3 = Bollinger1.Lower[0];
}
Chris
PS: Here are some picks (examples of what is happening
Pic(1)(Time 42:02) shows that an arrow should be drawn, but is not because of the previous candles crossing the band, even though conditions on the previous bars are not all true, but they are true on the current bar.
Pic(2)(Time 37:03) shows that an arrow up was plotted because stochastic was below blue line(20), and price low crossed the band.
Pic(3)(Time 32:41)shows the arrow had disappeared after being plotted 5 minutes ago, due to price moving up, causing stochastic to be pulled above the blue line.
Comment