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?

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

  1. Wilko • 290 days ago #

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

  2. Inertia • 285 days ago #
  3. victormork • 284 days ago #

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

  4. Wilko • 284 days ago #

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

  5. Francesco78 • 281 days ago #

    Great system, I love its simplicity. Thank you.

  6. SAM • 277 days ago #

    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 • 277 days ago #

    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 • 272 days ago #

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

  9. Wilko • 272 days ago #

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

  10. Wilko • 272 days ago #

    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 • 203 days ago #

    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 • 79 days ago #

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

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
stefou102 Thx Nicolas! trying to test this indicator in an automated strategy but I'm becoming crazy b...
stefou102 mystoploss=call "Adaptative ATR-ADX"(MedianPrice) GRAPH mystoploss as "Adapt"
Nicolas In this case, I suggest to add the indicator's code directly into your strategy.
AGTrader Interesante, muy visual Doc. Felicidades!!!
Caribeengeek Bonjour j’avais vu que vous proposiez d’écrire des codes pour ceux qui s’y connaisse pas Mai...
Caribeengeek Les devises unité
Nicolas Merci d'utiliser le forum pour les demandes de programmation personnalisée
JanWd You might try to use this strategy for platinum, looks good for the short run. (I only found...
PaulFM Hi Francesco, nice strategy. Do you know if there are any members on this site that sell pro...
ALE Hello Paul, please visit my website : www.automatictrading.it Thanks Ale
jebus89 Big thanks for sharing this :) Seems to work as expected, good stuff.
Nicolas Super ! Merci pour le retour, à très prochainement dans le forum Anglais dans ce cas :)
David29 Bonjour Nicolas, super indicateur? comment faire pour le transformer en stratégie ?
Nicolas Bonjour, merci d'ouvrir un sujet spécifique dans le forum.
juanj The last fractal will be coordinate 1 and the high/low of the candle that generates an angle...
juanj And the point of violation is the close of the candle that violates the line by generating a...
juanj For the latest version of the strategy or to follow updates and developments see the thread ...
CKW Thanks Francesco for sharing. Equity curve in overall looks great and testing it on demo :)...
Francesco78 Hi CKW thanks for your comment and for spending time on the steategies. The framework is ver...
poonsl2828 Hi! Francesco I have test it on GBP/USD but it only have a trade on 9 Jun which i backtes...
Jean-Pierre Poulain When I buy and when I sell ?
Nicolas The featured image of the post do not deserve the indicator you are right, I attached other ...
Nicolas It is described in the post already :) The BUY/SELL signals are quite similar of what you ca...
imokdesign Hi Everybody, when I look at the strategy I felt the need to implement a Moneymanagement-Sy...
Inertia newlevel then multiplier=multiplier+1 oldlevel=newlevel newlevel=strategyprofit+startequi...
Inertia Hi Bjoern, I was playing around with your code this morning (EUR/USD 5'). Thank you to the...
fabio407 Thanks, Nicolas. Very useful. Would you tell me where to find what result conveys the functi...
Nicolas This is not an instruction of the programming language but a variable from this indicator (l...
fabio407 OK. I didn't notice it. Many thanks, Nicolas!
albertocampagna Sei grande Nicolas :-)
SAcht Dear Nicolas, Great work, thank you very much!I would love to use the indicator in ProScree...
SAcht btw: The above-posted ProScreener is supposed to show stocks for which the center line has i...
victormork Hi, I would just like to share my own take on this strategy. I'm using 30 min on EURUSD but ...
mckubik Thanks. I will run a Test. 
poonsl2828 Hi! bjoern May i know what timing should i change for time zone (Singapore (GMT +8:00) ...
Nicolas Pierre Louis Hello Ale, What do you think of ? : cp = 115 tgl = 1 tgs = 25 have a good day ...
Nicolas Pierre Louis oh yes I forgot : dc = 18 :)
ALE why do you want to works the trading system with a trailing stop long of 1 point and the tra...
Nicolas Yes, but that's a translation of the original code someone asked in forums.
crolakstrading hi Nicolas.. please is there's a way to fix this? what am i doing wrong? iis everyone else g...
crolakstrading what can i do to change this in to the right daily ATR? is it something to do with the timez...
Laurent7533 Bonjour, J'aimerais utiliser cet indicateur dans un autre indicateur mais quand j'utilise l...
Degardin Arnaud Ajoute ceci à la strategie pour gerer les sorties dans le proorder: //ATR TRAILING STOP //...
Degardin Arnaud pardon... IF LONGONMARKET and close < ATRts THEN SELL AT MARKET ENDIF IF SHORTONMAR...
Dimi.A Awesome mate.
mora87 Hi David and Nicola, I'd like to share idea with you guys which is related to David's Idea. ...
Nicolas Please ask for custom coding in forums instead.
Nicolas Use the wrench of the price chart! Upper left of the window
Dymjohn The wrench shows options for the components of the indicator not how to show in the main cha...
Nicolas http://www.prorealcode.com/topic/overlapping-indicators/  

Top