I'm learning NinjaScript and C#. I'm creating a couple of indicators to help with that.
But I cannot get the alert indicator I'm working on to draw a LimeGreen horizontal line, when the RSI is greater than 50, or to draw a DeepPink horizontal line, when the RSI is less than 45.
I named the tag for the LimeGreen horizontal line, tag100 and named the tag for the DeepPink horizontal line, tag200
And when I go into the Drawing Tools > Drawing Objects, it does show that both a LimeGreen and DeepPink horizontal line were drawn on the chart, but they are not on my chart.
The screenshots attached will show the code I used and the Drawing Tools > Drawing Objects that are shown to have been drawn.
Please advise on how to get the horizontal lines to draw
Thanks,
Comment