Curr 5min vol stop value to be based on the most recently completed 5 min bar i.e. the value would not change for 1 min bars within the same 5 min bar.
I copied the Vol stop indicator and changed it to use 5 min data.
Main changes that I made to make it multi timeframe were to use:
Closes e.g. Closes[1][0]
*ATR(BarsArray[1],aTRperiods
I am not sure about:
SignalClose = MIN(Closes[1],(aTRperiods))[0]; if that should be [1];
Plotset.Set(SignalClose + (aTRmultiplier*ATR(BarsArray[1],aTRperiods)[1]));
I am not sure if it should be [1])); or [0]));
Also how to solve the issues below.
Issues
Flipping when it should not and sometimes value changes within the same 5min bar.
Tried various ideas to fix it but I have not come up with the right code yet.
Could someone please assist to debug it.
Files with original code and my 5 min version are attached. Screen shot also attached.
Comment