Login Page - Create Account

Support Board


Date/Time: Tue, 23 Apr 2024 19:10:21 +0000



[Programming Help] - sc.DataStartIndex - With Multiple Moving Average ?

View Count: 530

[2019-10-16 14:42:05]
User551752 - Posts: 25
How do I use sc.DataStartIndex with multiple moving average ?


sc.DataStartIndex = Length1.GetInt() - 1;

  sc.ExponentialMovAvg(sc.BaseDataIn[InputData.GetInputDataIndex()], Avg1, sc.Index, Length1.GetInt());
sc.ExponentialMovAvg(sc.BaseDataIn[InputData.GetInputDataIndex()], Avg2, sc.Index, Length2.GetInt());

DIFF[sc.Index]= Avg2[sc.Index] - Avg1[sc.Index] ;

sc.SimpleMovAvg(sc.BaseDataIn[DIFF[sc.Index]], Avg3, sc.Index, Length3.GetInt());

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account