I'm trying to get to grips with ninjascript and at an early stage.
I have tried to draw an arrow when close is above previous highest high and when I print it is giving me all candles where this is true when I switch the print statement with a Draw.Arrow it only draws one arrow on the candles. the important piece of the code is:
if (Close[1]> MAX (High, MAHi)[2])
{
Draw.ArrowDown(this, "tag1", false, 0, High[0] + TickSize,
Brushes.Red);
}
MAHi is simply the period for highest high.
Any ideas
thanks

Comment