DrawLine("VerticalUp", false, -right1, (EMA(BarsArray[1],13))[0], -right1, (LinReg(BarsArray[1],4))[0], Color.Green, DashStyle.Solid, 2);
to draw a vertical line further to the right in the chart. The "-right1" in the properties looks like this.
[Description("Moves the vertical line further to the right.")]
[GridCategory("EMA lengths")]
public int Right1
{
get { return right1; }
set { right1 = Math.Max(1, value); }
}
That works nicely.
Now my question: Is there a possibility to amend how far I want to move it by decimals? I tried this
[Description("Moves it to the right.")]
[GridCategory("EMA lengths")]
public int Right14
{
get { return right14; }
set { right14 = Math.Max(0.01, value); }
}
but that does not work. I also tried putting into Variables:
private double right14 = 1.5; and then into Properties
[Description("Moves it to the right.")]
[GridCategory("EMA lengths")]
public double Right14
{
get { return right14; }
set { right14 = Math.Max(0.01, value); }
}
but still no go.
Is there a possibility to make it work or is this not supported in NT?
sandman
Comment