Support Board
Date/Time: Wed, 12 Mar 2025 20:08:51 +0000
[Programming Help] - sc.DataStartIndex - With Multiple Moving Average ?
View Count: 599
[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: