Support Board
Date/Time: Thu, 13 Mar 2025 00:46:00 +0000
Post From: sc.DataStartIndex - With Multiple Moving Average ?
[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()); |