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
ottimo Thank you Nicolas, great indicator, N. 1
tikigai Merci Nicolas! First Happy new Year 2020. Very good indicator BUT (yes the french "oui, m...
Nicolas Whats prorealtime version? Did you try in version prior to v11? indicator's call and loop ca...
Marcos Alvarez Dominguez Hello Nicolas, is it possible to stablish a bullish screener for this indicator when the cen...
Nicolas Please open a topic in the screener section to ask for this specific query.
zaher123 Hello, the indicator doesn't show up anything on the screen, any suggestions please?
Nicolas Apply it on the price chart. The indicator plot just one single line. There are two in the...
jamesoc Hi Nicolas, do you happen to know if there is an indicator that can be applied to charts, to...
gustavobp Buenos dias Nicolas, al agregar tu indicador no me reconoce la variable Price ni en la linea...
bharatjai Script 'Adaptive ATR' has been saved line 24: no viable alternative at input 'lr' Gettin...
Nicolas download the itf file and import it into your platform.
Francis3332 Bonjour à tous, J'aime beaucoup cet indicateur et j'aimerais pouvoir l'utiliser sur la dern...
AGTrader Interesante, muy visual Doc. Felicidades!!!
Andraxx simplemente impresionante Dom...te sigo en youtube. Me ha gustado tu canal. Gracias por comp...
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
Francesco78 Jan Wind, I obtain it from the backtest
Kris75 Hi Francesco, The results are totally different with the tickbytick mode; it becomes a losin...
UkDownUnder Takes to long!
jebus89 Big thanks for sharing this :) Seems to work as expected, good stuff.
WarningTrading Comment peut on la comparer ? comme ceci ? cela ne me donne plus le message d'erreur manque...
sally31120 Bonjour, je n'arrive pas à créer ce screener close > supertrend extended2[1] la réponse...
Nicolas voir ce sujet pour un screener basé sur Supertrend Extended: https://www.prorealcode.com/top...
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 ...
phanz i backtested it with 10K units of EURUSD 1 hour i get an equity curve that is going one way ...
poonsl2828 Hi! Francesco I have test it on GBP/USD but it only have a trade on 9 Jun which i backtes...
ullle73 why not use 1h chart? has 95% hitrate
ullle73 i see most of positions are only 1 pip before exit?
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) ...
Samitha Prasanna Hi ALE, would you be able to provide the values for the below part of the code (time >=1...
Player Bonjour, J'ai testé cette stratégie sur EurUSD en 1 heures sur 10000 unités et le résultat ...
Player Vue du rapport du Backtest https://ibb.co/8BMrBz6

Top