i have the following code:
public int trigger = 120;
Add(new Line(Color.Red, Trigger, "Level 1"));
[Description("Trigger line. Minimum 1.")]
[Category("Parameters")]
public int Trigger
{
get { return trigger; }
set { trigger = Math.Max(1, value); }
}
when i change the parameter in the indicator settings (i.e. when just using the indicator in a chart and not using it via a strategy) from 120 to 100, the line does not change
however...when i change the setting via my strategy, which calls the indicator, no problem
thanks
Comment