Los Angeles, CA
Posts: 5 since Apr 2020
Thanks Given: 1
Thanks Received: 0
|
Hi, i'm coding for ninjatrader 7, and want to know how to put the index number above the candle.
So far, i've got
int index = Count - CurrentBar;
DrawText("tag"+CurrentBar.ToString(), true, index.ToString(), 0, High[0], 30, Color.Orange, hFont, StringAlignment.Center, Color.Transparent, Color.Transparent, 0);
This works when I place the indicator, but then keeps printing "0" to each candle as if that was the index number. It looks as though the indicator only works when initializing.
|