I am trying to understand NinjaScript and its working.
I have written a very basic logic which should show arrow on chart whenever the condition matches.
protected override void OnBarUpdate() { if(High[2] > High[0] && High[1] > High[0]){ Draw.ArrowUp(this, "tag1", true, 0, Low[0] - TickSize, Brushes.White); } }
1) Compile NinjaScript
2) Open Chart for a stock
3) Open Strategy and add the Strategy which I just added and compiled.
At this point I am expecting that the Arrow Up symbol should appear on all the historic bars where the condition is matching.
But that's not happening.
Am I missing something here ?
Or is it that the Arrow Up would appear for all future bars once the strategy is applied and will not appear for past bars ?
Please share your inputs..
Thanks in advance!!
Comment