I got the code from strategy builder then copied the new added lines to the ninja 7 default Linnear Regression Intercept which i then renamed in order to save with the changes.
// Condition set 1
if (LinRegInterceptClosingColorchange(14)[0] > Close[0]
&& LinRegInterceptClosingColorchange(14)[1] <= Close[1])
{
//BackColor = Color.White;
DrawVerticalLine("My vertical line" + CurrentBar, 0, Color.Lime);
}
// Condition set 2
if (LinRegInterceptClosingColorchange(14)[0] < Close[0]
&& LinRegInterceptClosingColorchange(14)[1] >= Close[1])
{
//BackColor = Color.Yellow;
DrawVerticalLine("My vertical line" + CurrentBar, 0, Color.Red);
}
Comment