Thank you TJ
MC is completly unable to plot the code using the fucntion of Stochastic. it gives me the error
"STD exception: invalid argument"
With any variation of it.
I think it referes to this bug reported some time back
http://forum.tssupport.com/viewtopic.ph ... e8b1c8f8c1
So to try to see why that was happening i stoped using the stochastic fucntion and i wrote the Stochastic code myself.
Code: Select all
var0 = Lowest( low, 4 )of data2 ;
var1 = Highest( high, 4 )of data2 ;
var2 = close of data2 - var0 ;
var3 = var1 - var0 ;
if var3 > 0 then
value1 = var2 / var3 * 100 ;
By doing so i am able to properly see the FastK from data2.
So i asume the error message i get by using the stochastc function comes from the function itself.
I dont mind at all not using the function and write the base code, but by doing so i got into this second problem. Which is:
As i want to use the Stochastic from data2 as a strategy generating signals, i must be able to use properly the "value1>value1(1)" kinda references.
And as you can see in the picture i attached, even writing the full stochastic based "of data2" in the 1000v timeframe it plots me 2 similar plots.
So any calculation i make uppon the data ploted will be faulty. A simple moving average would be faulty because of the 2 similar plots.
I know as an indicator i would have to edit its properties, reference it as based on data of 2000v chart and that would fix the 2 similar plots problem.
Never the less, i cant do that inside a signal/strategy code.
So how can i prevent, by code, to have the 2 similar plots? is that possible?