Login Page - Create Account

Support Board


Date/Time: Wed, 05 Feb 2025 18:05:42 +0000



Post From: Two studies with identical values plot differently

[2019-12-11 22:16:53]
User787032 - Posts: 37
I set up a chart for the ES contract and applied a Simple Moving Average based on the close of each bar, Length 10 (green line in the screenshot.)
I created an ACSIL custom study that computes a simple moving average using the following statement:
  sc.MovingAverage(sc.BaseDataIn[SC_LAST], sc.Subgraph[2], MOVAVGTYPE_SIMPLE, 10);
This study is the magenta line on the chart.
Once again, the values are identical on each bar, and both studies have scale set to Independent, but the lines don't overlap.

Using Chart >> Reset Scales makes no difference.

http://www.sierrachart.com/image.php?Image=157610210354.png