EURUSD volatility breakout strategy

EURUSD volatility breakout strategy

Hi everyone.

I came up with this relatively simple strategy that gives nice results on EUR/USD and DAX on a 1 hour and 30 min timeframes.

The idea behind is the following:

I define the quantity of averagerange that represent the average of the last 3 days high/low range on price.

  • I take a long position if the 1 period ATR crosses above the averagerange  with a corresponding bull candle (volatility break on the upside)
  • I take a short position if the 1 period ATR crosses above the averagerange with a corresponding bear candle (volatility break on the downside)

Walk forward results are attached

Best

Francesco

 

 

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. ALE • 06/06/2017 #

    Thanks Francesco, another good idea!

    • Francesco78 • 06/06/2017 #

      thank you Ale! Im starting to test it on other currency pairs and commodities and the results are quite promising. Ill open a thread once I have something concrete.

  2. ALE • 06/06/2017 #

    Ok! 

  3. 897148 • 06/06/2017 #

     I have imported Francesco’s EUR/USD breakout system but unfortunately does not seem to work.
    I just copied and pasted into PRT but get  gains of $0.10 per winning trade and losses of $56.59 per losing trade ( 59.72% winning trades. This on 1hr chart over 20 months from 06 Oct 2015 to 13 June 2017. Overall loss of $1636.7

  4. Francesco78 • 06/06/2017 #

    897148 
    I think it has to do with how EURUSD is quoted. if you see EURUSD = 11218 then it should work. If you see EURUSD = 112.18 then you need to account for this difference in the definition of the profits taking level
    So you need to change the code in the follwing way
    line 35 
    ///exit conditions
    set target pprofit pr*100

  5. 897148 • 06/06/2017 #

    Thanks Francesco. Tried *100 ( no change) and *10000 ( improvement but still woeful).

  6. 897148 • 06/06/2017 #

    Francesco apologies. I had spread set for a South African Index system and hadn’t changed it.
    Seems OK now . Regards

  7. Francesco78 • 06/06/2017 #

    great!

  8. PrinceMyshkin • 06/06/2017 #

    Hi Francesco, thanks for the interesting code.
    I am trying to learn to code and to improve my understanding of indicators. So, I have been trying to dissect other people’s codes. I’m still new so please forgive me if my comments are irrelevant!
    I was interested that you chose a 3 day (72hr) period for your ATR calc. Was there a theoretical reason for this?
    I have played around with the period and was interested by the results. Basically, efficiency improves (a bit) as the period increases (up to a point). Initially I was intrigued by this, but then after I thought about it I realised that I had probably just discovered that ATR doesn’t change much for EURUSD? Maybe I was effectively over optimising ATR. I suspect that the fact that your system works with a variety of ATR periods is a sign of robustness.
    p = 480 Gain 17.94%, Number of trades: 136, winning 58.82%, gain:loss 1.69, time in market 3.84%
    p= 600 G 20.15%, N o t: 137, winning 60.58%, g:l 1.82, t i m 3.88%
    p= 1200 G 22.95%, N o t: 130, winning 61.54%, g:l 1.99, t i m 3.66%
    p=2400 G 24.33%, N o t: 132, winning 59.85%, g:l 2.03, t i m 3.75%
    Also shorter p=14: G 24.95%, n o t: 248, winning 53.23%, g:l 1.67, t i m 6.51%
    Kind Regards

  9. Francesco78 • 06/06/2017 #

    hello Prince Myshkin. Thank you for the time you spent on my code. Im currently travelling, will reply to your question next week.

  10. PrinceMyshkin • 06/06/2017 #

    Enjoy your travels!

  11. Francesco78 • 06/06/2017 #

    Hi Prince Myshkin
    I was interested that you chose a 3 day (72hr) period for your ATR calc. Was there a theoretical reason for this?
    No, the 72hrs just represent a sort of average of the price range over the last 3 days. I did not optimize this variable as you can see from the code, it was just something I wanted to have a reference point.  The fact that the performance of the algo stay positive by changing the period is an encouraging fact, thanks for pointing that out.
    Best 
    Francesco 
     

  12. CKW • 06/06/2017 #

    Thanks Francesco for sharing.
    Equity curve in overall looks great and testing it on demo :). I observed some positions are in continuous losses e.g. Apr – Mid July 2017. I have tried optimized parameters but my case won’t improve the situation. Perhaps more filter may be required…

  13. Francesco78 • 06/06/2017 #

    Hi CKW thanks for your comment and for spending time on the steategies. The framework is very general and works on several assets. I think the best think is to employ many of this strategies to achieve diversification rather than trying to obtein the perfect equity curve on 1 single strategies. that being said any ideas will be mostly welcome! have a great day

  14. poonsl2828 • 06/06/2017 #

    Hi! Francesco

    I have test it on GBP/USD but it only have a trade on 9 Jun which i backtested it to current date of 2 Sep. How do i enable yr strategy to generate more trade.

  15. ullle73 • 06/06/2017 #

    why not use 1h chart? has 95% hitrate

  16. ullle73 • 06/06/2017 #

    i see most of positions are only 1 pip before exit?

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
yeoreum Thank you very much for the screener, it reminds me on Minervini VCP. How to change th...
reecet any codes like this but in minutes and hours rather than days?
PHAN100 bonjour, je viens de tester ce screener, je constate une anomalie...il ne renvoie pas l'e...
Oxxoz Re bonjour Vivien, Il me smeble que 3 mois, c'est 60 séances. Cordialement,
Vinks_o_7 thanks ...and It can be used on a monthly and weekly basis by changing just the duration in ...
nicko Many Thanks Viv. It looks good
Nokis Bonjour Vivien, Comment je peux faire pour adapter ton code afin: De cibler les sociétés q...
sam00075 I tried it today and it gave great results. So a big Thanks !
luxrun sorry, add prt code add doesn't work
robertogozzi Don't worry about PRT code, I can't make it work either! Great for pointing that out, it's ...
Khaled @Luxrun, good morning, you mentionned "y = exponentialaverage (x)", isn't the period of the ...
luxrun One question, Roberto: the two AvgT are variable, could you explain to me what they regulate...
robertogozzi AvgT stands for Average Type, it's a parameter for the AVERAGE keyword (https://www.prorealc...
Bard Hi @Vonasi, this is an excellent tool! I noticed you times by 180 and was wondering why? W...
Bard I have no idea what is wrong with the posting on this website. I have problems editing posts...
Bard And now my first post displays okay? It literally had copies of my orig post all added toget...
robertogozzi Yes, you can use any setting that suits you best! As to which one... it depends on the inst...
DaxRider grazie Robnerto
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...
carpentier Joffrey Bonjour à tous, Avant tout merci pour ce travail, cependant je suis bloqué quand je l'insta...
carpentier Joffrey Re, C'est ok, j'ai trouvé mon erreur... Cependant sur quel base peut on calculer son CALC...
Aragorna Hi Nicolas, How is it possible to use it in a higher timeframe plotted on a lower timeframe?...
Vonasi Sure that is possible. I will code it and make a post in the English ProBuilder forum and pu...
Vonasi Vama v2 with Hull moving average included can be found here: https://www.prorealcode.com/top...
JMat45 Thank you, Vonasi.
Bard Very interesting approach Vonasi! I'm getting a 404 error when trying to download though?
Vonasi I just tested and I was able to download with no error.
Psari Hi Vonasi, I am a newbie and was wondering whether you could possibly help me with this pro...
Vinks_o_7 Thanks again Vonasi !
Bard Thank you, this is a great tool @Vonasi, especially for those that used to like shorting Ind...
Aragorna Hi Vonasi, is there a reason why it does not work anymore in new version ePRT Platform? tha...
sycomore Ça ne fonctionne sur aucune valeur, je dois être trop con...
Nicolas il faut appliquer l'indicateur sur le prix.
AntoGH Je crains de ne pas comprendre... Cela indique la probabilité de la prochaine bougie ou donn...
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 ...
Bard I've also just noticed that changing the "Bands Deviation" setting from 1.25 to eg 3 doesn't...
bartekz Hi @Nicolas, Really impressed by your work. I am trying to replicate the Wave-PM indicator t...
Nicolas You don't have to replicate it, download the file and import it into your platform.
Vonasi Yes that was the issue. I have posted an updated ITF file here: https://www.prorealcode.com/...
crolakstrading @vonasi Thank you for fixing the issue! This is a great indicator.
gregoire good evening vonasi , I had made the request to create this indicator a few years ago and I ...
tobytarczy Hi Vonasi, Sounds lovely, I race yachts around europe myself. Most regattas cancelled unfor...
mlouys Hello Vonasi thank for your work ! A question how can we do it for minutes ( or 15 min or x ...
Vonasi I think that would be possible but probably in a whole new indicator as detecting when a new...

Top