DOW Breakout 15Min

DOW Breakout 15Min

Firstly, a big thank you to Nicolas for this great site and for originally introducing us to the CAC Breakout using the same code here.

I set about testing this strategy on other markets due to the fact you can backtest 8 years of data with 200,000 units on the 15Min time-frame. The other massive plus is no fake profits and only 9, 0 bars in 1700 trades! 🙂

The DOW is slightly different to the CAC and DAX breakout. It did not like the first 30 min range but prefers the first hour range BUT we exclude the first 15min candle as you can see from the modifications to the code.

In this version I am using a fixed position size but you can activate the re-invest system if you are happy with that. It makes for an interesting ride!

I stuck to the rules of not over optimising/curve fitting by using an IN/OUT sample as documented here. This ran from Jun 2009 – May 2014.

The results above are £1 Per Point, £1000 Start and 1.8 Spread.

I am live trading this with real money with minimum stakes to test.

All times in the code are UK so please adjust to your timezone.

I have some more of these ported to other markets but need to spend a little more time getting them right before posting in the library. Expect them soon.

I have not had enough time to test different time frames. Maybe I will try that next if time allows.

Good luck and enjoy your trading.

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. Cosmic1 • 09/06/2016 #

    From Wikipedia: 
    The ProRealTime software embeds a programming language named ProBuilder derived from the language BASIC. It allows the creation of customs indicators, strategies and market scans. It is also used in the ProBacktest, ProScreener and ProOrder modules of ProRealTime.

    • GAMMA • 09/06/2016 #

      thank you

    • GAMMA • 09/06/2016 #

      how I can change to C## I used ninja trader all the prog have to me in C##
      thank you in advance

  2. GAMMA • 09/06/2016 #

    thank you for detail I open the ac now and used it very soon

  3. GAMMA • 09/06/2016 #

    I try to run in prorealtime and it do not give any  profit and loss, I change the time in computer to uk time, may be I am missing some thing
    need you advise

  4. Cosmic1 • 09/06/2016 #

    You need to change the time in the code rather than your computer. What timezone are you in?

  5. GAMMA • 09/06/2016 #

    usa /new york

  6. Cosmic1 • 09/06/2016 #

    DEFPARAM FlatAfter = 153000
    LimitHour = 150000
    StartHour = 101500
    if time = 094500 then
    I think that is correct. Test and let me know.

    • GAMMA • 09/06/2016 #


  7. Yngve • 09/06/2016 #

    can someone explan to me what these variables mean
    MaxAmplitude =
    MinAmplitude =
    OrderDistance =
    PourcentageMin =or direct me to a later conversatin on this site where it is explaned?In advance, thank you/Yngve

  8. Cosmic1 • 09/06/2016 #

    Hi Yngve,
    Amplitude relates to the range of the price action for the given times stipulated. 45mins in this case. You could relabel these to MinRange and MaxRange.
    Orderdistance is the amount of points before the breakout level that the order will be set.
    PourcentageMin (should be spelt PercentageMin) is the minimum % of the range that the price has to retrace to validate the breakout. Hope that helps?

  9. GAMMA • 09/06/2016 #

    I try as per your advise and change the time to usa time still no luck, may be I am doing some thing wrong? please advise ?

  10. Cosmic1 • 09/06/2016 #

    Post the code you are using, will try and figure it out. What broker?

  11. sammut • 302 days ago #

    Hey Cosmic, 
    Do you typically add a daylight savings adjustment in your code when running back tests over multiple years of data? I’m not sure if I’m the only one who does this however I hope I’m not missing out on a simpler way 🙂

  12. Cosmic1 • 302 days ago #

    Hey Sammut,
    I have never done this but I thought about it before but didn’t do anything about it! I just adjust manually at those times of the year that we mismatch with the US. It does of course affect the backtest slightly.
    How do you achieve it in your code? I would like to update the blackest to take account of this.
    @Nicolas, any insight in to this?

  13. sammut • 301 days ago #

    I have attached my version of your DOW breakout strategy. Main bits for DLS adjustments are as follows:
    IF ((Month = 3 and Day > 7) and (Month = 3 and Day < 15)) or ((Month = 11 and Day >= 1) and (Month = 11 and Day < 8)) THEN
    //Period over which Daylight savings takes place, no trading during this time
    TradingDay = 0
    DLS = 0
    elsif (Month = 3 and Day >= 15) or ((Month > 3) and (Month < 11)) THEN
    //DLS applies as New York is forward an hour during this period
    // New York time is (GMT - 4)
    DLS = -10000
    // No DLS
    // New York time is (GMT - 5)
    DLS = 0

    LimitHour = 204500 + DLS
    I also use different variables in my code, probably as I do not have PRT professional yet and have limited data to test on 🙁
    Thanks for posting your code Cosmic, it has been the first algo I have traded live with!

  14. Cosmic1 • 301 days ago #

    Looks like a good bit of code. I will take a look later. I’d really like to get this algo back on and running but over the last 10 months or so it has been flat and choppy. Same story with the DAX. I stopped it a few months ago now and have looked since but can’t find a set of variables or equity curve that I’m happy with. What variables are you running?

  15. sammut • 296 days ago #

    Hey Cosmic, I am just in the process of re-evaluating my variables due to, as you say, some recent choppy rides. The parameters I optimise are below:


    I dont change MaxAmplitude as I want to fix my maximum risk at this stage. I optimise additional variables StartHourStep and RangeExtendStep.I am just realising that I am not able to attach my code in this post for some reason. If you send over your email I can forward my code (.itf files) for you to check out and discuss

  16. Cosmic1 • 293 days ago #

    Lets discuss here:

  17. rejo007 • 149 days ago #

    anybody use thi strategy for a long time?

Register or


avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
mr blue I have a similar approach running - but yours is also very smart - thanks for sharing!
beeb Hello, nice that you like the strategy. For 1 minute I have chosen to avoid the first mi...
beeb Thanks
1 month ago
swapping Toujours aussi prolifique Nicolas ;) Ce sera donc du Darvas à la sauce Forex, excellent je ...
juanj Kinda reminds me of Renko Trading
Alai-n Merci pour ce travail...
patmaba merci Alai-n. C'est ma première participation sur prorealcode, merci pour à toi pour ton co...
wintreb Un outil très visuel et utile Merci
darbes Hi Nicolas How could I use the indicator in a strategy ? Coding do not recognize the indica...
Nicolas What do you want to do exactly? Because dots are plotted afterwards..
TempusFugit Masala, thanks for your contribution. I don´t like the offmarket spreads neither ;) I unders...
Uveus Tempus, me da un error al validar el codigo, sobre la variable N. Al crear el indicador me ...
TempusFugit Hi Uveus, I am guessing you inserted the code of the indicator into the system code, is ...
Jessar Hallo Leute, es wäre interessant aus dieser Strategie mit Hilfe von diesen indikator https:/...
verdi55 Funny. Just try this one on NASDAQ 100 (or any other big index) since 2009. Starting capital...
rama what you see on probacktest is like dreaming on a day time (not even sleep), most of the str...
primo1 Bonjour Nicolas, sur quelle échelle de temps minimum tu utilises l indicateur je pense...
primo1 Bonjour Nicolas Pour créer la strategie comment peux tu traduire l"apparition des points....
Nicolas Exemple dans ce sujet du forum ProOrder :
gabri Hello, I am not sure to understand the screener completely. If you are looking for a screen...
Trading_En_El_Ibex35 El screener no busca acciones que estén en máximos absolutos , busca acciones en las que el...
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 ...
JM David, Thanks a lot and next week I begin the test of this strategy in real... You have ot...
rejo007 hello david, i'll try it could you tell me wich strategy do you use in real? thanks
David Somogyi Hello, I have a couple of DAX strategies of breakout and mean reversion. I'll try to post...
juanj To follow new developments or get the latest version of this strategy please visit the forum...
tahar Hello Juan, I wanted to test Universal Strategy via a demo account on PRT but nothing happen...
BravoDelta @juanj wondering if you may help me please. I am looking for a simply strategy to use on the...
Wing I do not run this strategy myself, currently. As for why it is not taking trades live: Do yo...
dkinse Hey, Yes it´s running in 30 m timeframe. I had it running and it made two trads in januar...
Wing There's a few threads on the forum about backtest and live trades being different at times. ...
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...
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...
Juan Salas Hi Francesco, Yes, this is pretty much the question. The system ask me a number of contract...
Francesco78 ok sounds good, you can put min size = 1 and go for the seasonable breakout too, also you ca...
JR1976 HI all , anyone test 200k bar for this great code ?
Frytconcord Hello Have you tested this code in real? Fractal breakout intraday Stratégie EUR / USD 1H
Frytconcord Bonjour j'ai testé votre code, vraiment impressionnant. J'ai envie de le tester en reel. Ma ...
ALE I have added the last version in the forum