I am trying to put a T3Average on the %K Stochastics via the code. The above syntax compiles without errors, but when I add a T3Average (by clicking the "Indicators" icon) with the same settings to panel 3 for comparison, using the Stochastics as the input series to verify that it's working properly, the compared values are not even close to being the same.
In other words, I print out the T3Average/Stochastic values in the Output window from my coding and compare it with T3Average/Stochastic values that was manually added to the chart. The 2 don't match. The manually added T3Average/Stochastics is correct. The one from the code isn't.
Technically, it's working. It's just not giving the correct values.
Can someone tell me if the above setup for the "double" correct? If not, what can I do to correct the problem?
Please aware that I'm a novice at programming. Please respond in laymen's terms. Any help would be much appreciated.
Comment