Support Board
Date/Time: Sun, 22 Dec 2024 08:53:04 +0000
Post From: Pain in the head trying to add a moving average to this study
[2015-04-16 08:27:20] |
ehlaban - Posts: 50 |
You already have a MA in your code: sc.MovingAverage(sc.BaseDataIn[SC_LAST], sc.Subgraph[0], MOVAVGTYPE_SIMPLE, 50); the input is: sc.BaseDataIn[SC_LAST] the output is: sc.Subgraph[0] Watch out you don't use a sc.Subgraph[0] again, use sc.Subgraph[1] etc You now have 2 sc.Subgraph[0] and that doesn't work. See also: http://www.sierrachart.com/index.php?page=doc/doc_ACSIL_Members_Functions.html#scMovingAverage |