Programmatically set all default values in Strategy Analyzer?

Hi there, is there a way to programmatically set all three values (start, stop, step) within a Strategy Analyzer value? For instances, I have an SMA value. Instead of needing to type in all three values within the Strategy Analyzer window, by default, I’d like it set to “50;100;10”

I run a lot of strategies with a lot of fields. It’s taking some amount of time to keep on resetting these values, so it’d be great to have them all programmed in beforehand.

Thanks,

1 Like
protected override void OnStateChange()
{
    if (State == State.SetDefaults)
    {
        SMAStart = 50;
        SMAStop = 100;
        SMAStep = 10;
    }
}