Hi All,

I’m trying to set a warm up period for my various technical indicators but since I have too many I’m not able to warm them up all together in my Initialize method.  I tried doing it in each case statement with the Update() method but I’m not sure if this is the way to do.  Would anyone be able to point me in the right direction?

case TechicalIndicators.SimpleMovingAverage:
                    var fast = SMA(pair, period: 50);
                    var slow = SMA(pair, period: 200);
                    technicalIndicator = new CrossingMovingAverages(fast, slow, direction);
                    SimpleMovingAverage.Update(TimeSpan.FromDays(30));
                    break;

Thanks,

Rohit

Author