Look at this thread https://www.mql5.com/en/forum/174228 as I think it is exactly what you want.
Besides I used ATR Stop here https://www.mql5.com/en/forum/173249
And this indicator for example https://www.mql5.com/en/forum/174228 and some more on the thread link https://www.mql5.com/en/forum/174228
And this one https://www.mql5.com/en/forum/172924 and many other threads.
Thank you for your reply newdigital.
I have downloaded v1.1 of the ATR Stops indicator and can see that there are differences between that and the BAT ATR indicator.
I guess that I'm not worried about how it works, but instead I am interested in whether or not it can be implimented into a workable system.
Can this be coded for MTF, or does the dirty/repaints scenario that fxbs referred to still apply?
I can see a likely advantage to trading a faster timeframe with a stop derived from a slower timeframe and would like to try backtesting that.
edit: I forgot to attach the ATR Stops indicator
I replied because you posted your formula and this thread https://www.mql5.com/en/forum/174228 was started with this formula:
For Long: HHV(H - 2.5*ATR(5),10)
For Short: LLV(L + 2.5*ATR(5),10)
So, read this thread from the beginning https://www.mql5.com/en/forum/174228
As I understand it may be related to this indicator (as new version) https://www.mql5.com/en/forum/173255 or chandelier exit indicator (very old one).
As to MTF so I saw some indicator coded in MTF ... difficult to find as this MTF thread is big one ... MTF chandelier exit may be ... do not remember now sorry.
You can try to continue this thread https://www.mql5.com/en/forum/174228 and may be some people will reply.
Thanks newdigital, although I'm not too sure what you meant about posting my formula. This is only my 4th post on the forum and I don't recall posting a formula. Could you have meant someone else?
Anyway, I've read the threads so thanks for the links.
I've searched the site and found a MTF Chandelier. At least that gives me something to start playing around with.
Unfortunately I can't find anything about MTF ATR Stops other than than Post 222 of this very thread.
It doesn't appear from the follow up posts that oneprint had any luck in solving the problem.
seems like instead of comparing current value with previous somebody set it up to compare current values with the future values
so, like with solar wind (dirty) case - indi lies (repaints)
CurrUp=Close - (iATR(NULL,0,ATRPeriod,i) * Factor);
PrevUp=Close - (iATR(NULL,0,ATRPeriod,i-1) * Factor);
It was fxbs posted.
That's no problem, newdigital.
I've looked at the code for Chandelier Stops and it looks to be derived directly from ATR Stops with some minor modifications to the settings.
Thanks again for your help.
strange thing with this Bat atr v1:
when you change:
PrevUp=Close - (iATR(NULL,0,ATRPeriod,i+1) * Factor);
- nothing happens - indi works absolutely the same (same values, forward) - weird
... for(int i=BackPeriod; i>=0; i--) - counted bars disappeared too...
somebody been messing with this indi - who knows what else missing - where could be original version?
Pussy Galore, that's not a problem 2 put mtf, thing is - you can't trust this indi and i don't want anything to do with it also - better find another one... - sorry, Pussy
btw. some Shafts also here https://www.mql5.com/en/forum/176577
i tried to make and MTF indicator of the ATR stops but for some reason it only displays the sell channel!
oh, man - they put it on MQL codebase as is
they migh think that's Igorad's...
here you go- ATRstops_v1.1_MTF.mq4 (2.6 KB)
works with ATRStops_v1.1 (exact file name; not ATRStops_v1.1....etc)
Would you please change the attached file into MTF?
Thanks a lot!