As simple as it gets: EURUSD 2h ATR strength

As simple as it gets: EURUSD 2h ATR strength

This is a really simple system in its base form. It has no filters or money management. I submit it only to show what can be done with VERY simple entry & exit rules. I’m pretty sure this could be developed further into an implementable system.

The basis is EUR/USD on 2h timeframe. It might work on other assets, I haven’t tried yet.

The system will initiate a long if there is a green body exceeding ATR(20)*2. It will exit the long on another green body exceeding ATR(20)*2, or on the 9th bar after entry, or if a short position is initiated.

The system will initiate a short if there is a red body exceeding ATR(20)*2. It will exit the short on another red body exceeding ATR(20))*2, or on the 9th bar after entry, or if a long position is initiated.

There you go, as simple as that. Good luck with your adaptations!

 

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

  1. Wilko • 10/05/2017 #

    Just a quick note. The first line should read AverageTrueRange[20](close), not [14]

  2. Inertia • 10/05/2017 #
  3. victormork • 10/05/2017 #

    How does the backtest change with AverageTrueRange[14](close)? Better, worse, unchanged?

  4. Wilko • 10/05/2017 #

    If I remember correctly, best backtest results were achieved with ATR(21). Slightly worse with 14, but not materially

  5. Francesco78 • 10/05/2017 #

    Great system, I love its simplicity. Thank you.

  6. SAM • 10/05/2017 #

    Hy, thank-you for share-it…
    Ex-cuse me for the trivial question,
    I understood the condition LognEntry ,but why the condition “close -open>ATR*2 ” is also in the condition “LongExit” ?
    thank-you

    Close – Open is the thame as LognEntry?

  7. Wilko • 10/05/2017 #

    Hi Sam,
    Thank you for the comment. I ageee completely and do not find your question trivial. Please allow me to check the code and come back with an answer. I can spontaneously say that this is not the same as codes I have implemented (yes, I do run variations on this idea live on several markets). Let me have a look and revert with an explanation.
    Kind regards,
    Fredrik

  8. Ricx • 10/05/2017 #

    There is no SL to this system, right?
    If I want to add one, how would I add it?

  9. Wilko • 10/05/2017 #

    In the IF-clause containing the BUY or SELLSHORT instruction you could add a line containing SET STOP….. etc.

  10. Wilko • 10/05/2017 #

    In answer to SAM: The Logic of the cover clause containing the same logic as the entry-clause is simply to hold the position until such time that another impulse (=1-bar movement larger than the ATR-hurdle) causes the system to exit. This idea came from watching the charts.

  11. JanWd • 10/05/2017 #

    Tried the code, nice concept, seems to work quit well for US/EUR 2hrs, Other markets seems not to fit very well, at least to what I tried.

  12. JR1976 • 10/05/2017 #

    Simple and nice code , congrats !!!
    Seems work well with TIme frame 1 h

  13. phanz • 10/05/2017 #

    Hi all,
    Sorry revisiting an old post. This algo is simple, and simplicity is the ultimate sophistication. I am wondering if anyone has any adaptation of this strategy? I tried putting a bid on retracement instead of buying straight away at the next candle’s opening. But because this strategy is momentum, pull back is shallow and missing key opportunities. If anyone has more thoughts on this, will appreciate if you can share. Tks.

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar

+2 more likes

Related users ' posts
Iván Hi! You should change $rbox, $gbox and $bbox variables. Also r,g,b for last box.
finplus Thanks Ivan.
roccafragius Ivan, I just want to say you.. very very great job!!!! Thank you so much for this indicator!...
Doddge Hola Iván, ¿sería posible crear un screener que indique cuándo las velas coloreadas del indi...
RTR Ivan thank you for the pro-screener. I a trying to understand how to write the signals from ...
Iván Hi, Lines 62 and 63. These lines define buy and sell conditions.
Iván
3 months ago
Xenotrax A première vue, sa à l'air d'être un indicateur très puissant sur de petites temporalités, j...
merri Bonjour Nicolas, Comment transformer cet indicateur en bot sur PRT ?
Nicolas Cela a déjà été fait, voir ce sujet: https://www.prorealcode.com/topic/strategia-con-lindica...
StephFor //ind1 = ZigZagPoint[2*averagetruerange[200]](close) avr = 3 //3% ind1 = ZigZag[avr](close...
Manu L. @Steph un grand merci pour ton aide mais :-( J'ai copier le code tel quel mais cependant j...
AlphaMauss Je n'ai pas réussi à faire fonctionner l'indicateur avec le code fourni en commentaire sur P...
Nicolas Oui c'est possible. Merci de ne pas poster des demandes qui sont hors sujets. Pour les deman...
Igor Merci pour cet itf. Question : comment faire pour instruire un screener ?
Nicolas tester le croisement du Close avec la première valeur de l'indicateur : "TrailingStop", faci...
supertiti Bonjour Nicolas, Je ne comprend pas bien , le trend change de couleur quand les prix sont a...
Nicolas Oui ce serait possible, cependant l'indicateur est bien prévu pour conserver la couleur de l...
supertiti Quand tu pourras si tu peux nous coder la troisième couleur cela améliorerait les trades cou...
Nicolas remplacer les valeurs de coloured(0,255,0) par coloured(r,g,b) et ajouter ces noms de variab...
mohamed merci Nicolas!
sacram14 Merci Nicolas pour ce set-up que je ne connaissais pas ! J'ai tenté de reprendre le code pou...
Nicolas Just add it on the price series.
yomisadiku Hello Nicolas, Can I use high and low price at lines hh=max(hh,close) and ll=min(ll,close) ...
Nicolas Yes you can do that, the impact will be that the trailing stop line will be much close to th...
murre87 No Stoploss?
bousalahane Hi Rajesh Deshpande, Thank you for this code, I see that the code is perfect, but the posit...
Bibi83 Bonsoir à tous Je viens de backtest la stategie sur EUR/USD en graphique 1H sur 1 mois et ...
LucioleLucide Clean view, thanks for sharing
dertopen hi where i can found the window for candle configuration?
paolosab69 Ciao! . I have seen the pictures that explain this metod but i don't understand when is mome...
Thomas
5 years ago
Thomas Como? no intiendo. Can you write in english . It works! Download the itf file.
Thomas New Version comin soon...
CHARLESRACHELLE OLA NAO SERVE PARA MT4?
juanj
5 years ago
juanj I have actually completely redesigned this indicator with loads of improvements, so will res...
Janfi Hello, I'm new to ProRealCode and I do not understand the following summation[n](indicator...
Kaci It seems he's just checking that the previous MACD is < 0 for maximum one period ? I'...
Daniel Martin Hi do you know how have and entry after the second cross? There is crosses below 0 and cross...
Maik2404 es sind leider nur long Positionen und keine Short zu erkennen.
Maik2404 Vytautas: es bleibt aber nur bei long Auslösungen
ullle73 this one is not a winner, have backtested it on almost all pairs, does not have an edge

Top