Hi kkrisz, firstly what I’d really prefer to do is find out how prorealtime’s scripting language can discover what the currently selected timeframe is. There has to be a way surely! If I can do that, then I can configure the settings for each indicator and have it automatically adjust when the user changes timeframes the same as I’ve done for MT4 - no manual changes required.
Secondly, the Stochastic is actually the one indicator that doesn’t need different values for each timeframe. I have, however, modified it to work exactly as it does in MT4. Change the programming code in the indicator to this:-
s0 = Average(SmoothedStochastic3 *s, 3 *k)
s1 = Average(SmoothedStochastic4 *s, 4 *k)
s2 = Average(SmoothedStochastic5 *s, 5 *k)
s3 = Average(SmoothedStochastic6 *s, 6 *k)
s4 = Average(SmoothedStochastic7 *s, 7 *k)
s5 = Average(SmoothedStochastic8 *s, 8 *k)
s6 = Average(SmoothedStochastic9 *s, 9 *k)
return s0 as “SR 0”, s1 as “SR 1”, s2 as “SR 2”, s3 as “SR 3”, s4 as “SR 4”, s5 as “SR 5”, s6 as “SR 6”
Set k to 1, and s to 3. I’ll update the prorealtime pdf with the changes, but I’d very much like to upgrade the other indicators as well.