Login Page - Create Account

Support Board


Date/Time: Fri, 10 May 2024 11:45:21 +0000



Post From: Different DMI Values using price overlay

[2016-12-29 19:12:03]
AcquaLife - Posts: 33
Hello, I am using the price overlay method as described in http://www.sierrachart.com/index.php?page=doc/ACSILRefOtherTimeFrames.php. I am using the first example. Anyways, I can get it to work perfectly on simulation mode, however when i turn it live i have something quite different.
I have attached a picture to explain. Also, as i said i am using the code from the first example. BUT i have changed the moving average value to 1 so it just takes the average of the data at that point and i deleted the +10.

This is what your example shows
sc.Subgraph[0].Arrays[9][sc.Index] = RefStudyCurrentValue + 10;

sc.SimpleMovAvg(sc.Subgraph[0].Arrays[9],sc.Subgraph[0],15);

This is what i have done.

sc.Subgraph[0].Arrays[9][sc.Index] = RefStudyCurrentValue;

sc.SimpleMovAvg(sc.Subgraph[0].Arrays[9],sc.Subgraph[0],1);

I do not know if you need to know this information.
Thank you for your help!