Login Page - Create Account

Support Board


Date/Time: Sun, 22 Dec 2024 04:16:34 +0000



Post From: Trouble pulling SMI from other charts

[2015-07-10 17:47:40]
User424542 - Posts: 6
I'm building a bot that needs to pull the SMI value from the Stochastic Momentum Indicator of two other charts. Chart 1 and chart 3. My bot sits on chart 2. On each chart, the SMI is ID: 1.

From chart 2 where the bot sits, it can easily pull the correct value using the following code:

SCFloatArray StudyPosiedon;
sc.GetStudyArrayFromChartUsingID(2, 1, 0, StudyPosiedon);

When I replace the 2 with a 1 or 3 (yes, I checked the charts to make sure of the chart #s), chart 1 gave nothing, and chart 3 gave values that don't match anything I can see. Definitely not an ES price value, and I cant see any values on the SMI that report a value of 90.097.

Any idea what is wrong in my code? Is there a better way to pull that value from other charts?

Thanks :)