I am new to NT, and trying to code my own strategies. I simply want to draw a horizontal line on an indicator that I have added to the strategy. The indicator shows up fine when I run the strategy. But no matter what I do, it only draws the line in the price panel and not on the indicator. I also tried the strategy builder, but could not get it to show what I wanted. Here is what I have.
region State Data Loaded
else if (State == State.DataLoaded)
{
mom = new Series<double>(this);
LinReg1 = LinRegSlope(mom, 10);
AddChartIndicator(LinReg1);
Draw.HorizontalLine(this, "tag1", 0, Brushes.Red);
...
Any help with this would be greatly appreciated.
Thank you,
Ray

Comment