Disliked{quote} Thank you Cyber1, worx like a charm. Just wondering why +1 outside the []? I didn't find much on iBarShift. Did the JimDandy mql4 course so only got my toes wet, any other resources you can point me to?Ignored
I don't think this can be found in any of the documentation.
Other than search engines, MQL4 docs and MQL5 search I search through my own HD and see whats available.
This one didn't quite make sense at first.
normally you would code this way:
iStochastic(NULL,0,Kperiod,Dperiod,slowing,0,0,MODE_MAIN,i+1);
But you're on the same TF. When you want a different TF
iStochastic(NULL,TF,Kperiod,Dperiod,slowing,0,0,MODE_MAIN,ibarshiftresult+1);
The reason current candle works and not any previous is all TF's are using the 0 candle.