When the price first touches the upper Bollinger band I want to mark it with an arrow:
This part I do so:
if ((CrossAbove(Close, Bollinger(stddev,period).Upper, 1)))
{
DrawArrowUp(CurrentBar.ToString(), true, 0, GetCurrentAsk();, Color.DodgerBlue);
}
When the price first touches the lower Bollinger band I want to mark it with an arrow:
This part I do so:
if (CrossBelow(Close, Bollinger(stddev,period).Lower, 1))
{
DrawArrowDown(CurrentBar.ToString(), true, 0, GetCurrentBid(), Color.Fuchsia) ;
}
I want exactly, when the price first touches the upper Bollinger band draw an arrow . And not redraw an upward arrow until it has not produced before a downward arrow.
For example , it is well to understand what I want, An upward arrow and the next arrow is to be drawn can not be bullish must be a downward arrow is drawn.
ThankYou very much!
Comment