BreakOut – SAR – Index – 15m – (DJIA-DAX-PXI)

BreakOut – SAR – Index – 15m – (DJIA-DAX-PXI)

Hi everyone!

This strategy buy or sell if price breaks max or min night range with an “spread” difference (optimized by variable “s”), and then is stopped at SAR crosses.

It has money-management included, system will calculate risk before setting up orders and join with the contracts updated with “STRATEGYPROFIT” var.

I’m thinking to trade it real mode and maybe you could help me to improve it, is my really first one you know…

Best wishes!

No confusing closes at bar 0. +info

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. Nicolas • 04/25/2016 #

    Hello, and thank you Adolfo for your library contribution.
    How much trades do the strategy have done since January this year?

  2. Adolfo Onrubia • 04/25/2016 #

    Hello, I’m glad to see it published! 
    505 Trades, also added a screenshoot with detailed report
    http://www.prorealcode.com/wp-content/uploads/2015/07/Informe-detallado-1-Breakout-djia-15m.png

  3. Doctrading • 04/25/2016 #

    Hello,
    Nice code, I was just looking to make a similar code on Parabolic SAR !

  4. Adolfo Onrubia • 04/25/2016 #

    Hi Doctrading!
    Then you would like to see this:
    REM INDICATOR
    mySAR = SAR[0.02,0.02,0.2]

    REM CONDITIONS
    c1 = mySAR >= High
    c2 = mySAR <= Low

    IF Not OnMarket THEN
    IF c1 THEN
    BUY 1 CONTRACT AT mySAR STOP
    ENDIF
    IF c2 THEN
    SELLSHORT 1 CONTRACT AT mySAR STOP
    ENDIF
    ENDIF

    IF LongOnMarket THEN
    mySTOP = mySAR
    IF Close >= TradePrice(1) THEN
    mySTOP = mySAR
    SELLSHORT AT mySTOP STOP
    ELSE
    SELLSHORT AT mySTOP STOP
    ENDIF
    ENDIF

    IF ShortOnMarket THEN
    mySTOP = mySAR
    IF Close <= TradePrice(1) THEN
    mySTOP = mySAR
    EXITSHORT AT mySTOP STOP
    ELSE
    EXITSHORT AT mySTOP STOP
    ENDIF
    ENDIF
    Very funny results on DAX last year 🙂

  5. Andres • 04/25/2016 #

    Thank you very much for the code, Adolfo.
    Andrés.
     

  6. gutta11 • 04/25/2016 #

    This seems nice!But in the back test, I just got like 30 trades the last year! And -80%Do you have an idea what´s wrong here?Thank you very much!
     

  7. Adolfo Onrubia • 04/25/2016 #

    Hi gutta11!
    Should be more because our timezones are different? System is tested at GMT+1. 
    I don’t know why you get this results, maybe we will find some help from our bests pro’s!
    Adolfo.

  8. Nicolas • 04/25/2016 #

    Maybe you could explain parameters to everyone Adolfo? I know there are the spread one which is important i believe? thanks 🙂

  9. Adolfo Onrubia • 04/25/2016 #

    Yes! I will, after dinner 🙂 

  10. Adolfo Onrubia • 04/25/2016 #

    Ups, how can edit posted code? Can I?
    This strategy at 08:00h GMT+1 sets a max/min range at highs and lows (dhigh,dlow). At 09:00h set stop orders at dhigh/dlow stop +/- Spread ( variable to set how many points away the limit we set the orders), if price is still into the range. At this step orders are placed and waiting to be executed. If price already breaks those limits, the inmediatly join the market with “AT MARKET” orders. After that, a cross over or under “SAR” (parabolic SAR indicator price) will stop positions.
    PIPSTOP = distance between recent highs and lows (last hour), in order to set an emergency STOP pLOSS.
    Also included money management, you can set your initial capital and your desired % of risk in variables “capital” and “riesgo”.
    Already now i’m very excited while working with the next version of this system, with a “JACKPOT” profit objective! I want to ear your questions, thanks!
    Adolfo

  11. ALEALE • 04/25/2016 #

    Hello
    could you help to set variables c,s,r, thanks

  12. Adolfo Onrubia • 04/25/2016 #

    Hi, fisrtly thanks for your interest on it. 🙂
    Variable “c” is to set your initial capital (i.e. 1000€)“r” is to set the maximum risk percentage we want (i.e 0,03)
    and “s” is the maximum stop loss distance in pips.
    Hope it helps you!
    Adolfo

  13. Adolfo Onrubia • 04/25/2016 #

    Ups! Sorry. Variable “S” is to set an specific Spread if needed. Could be “0”, or the distance you want to wide orders.

  14. Meta Signals Pro • 04/25/2016 #

    Hi,
    For me there is a mistake here L32

    maxriesgo = round(equity*riesgo) => round(equity*(riesgo/100)

avatar
Register or

Likes

avatar avatar avatar
Related users ' posts
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?
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...
JanWd Thank you for the coding, it seems promising. FTSE gives for the short term (5 min) promis...
Jan Wind 21.04.2019: I retested the strategy for the DAX 5 minutes , it works fine for 10.000 bars, b...
bertrandpinoy hello Francesco, are you still working on this strategy?
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
Nicolas
8 years ago
Loop Hi All! Would it be possible to have the same indicator with the MACD calculated with the DE...
Nicolas Why not, but do you think it would make such a noticeable difference?
Loop Good question Nicolas! That's why I was curious to check it! MACD based on DEMA is usually m...
Nicolas Restart your platform in order to be sure to use the last version, there was a version rollb...
bertrandpinoy bonjour voud pouvez m envoyer le code modifier par vous?
Nicolas Désolé , je ne comprends pas votre question.
DEIO Hi sublime06, I tank you for the compliments, but first of all I STRONGLY want to warn yo...
bertrandpinoy Bonjour Deio excusez moi je ne comprend pas le principe du SL et du TP sur votre strategie.....
bertrandpinoy bonjour avez vous un TP et SL pour cette strategie? merci
Nicolas si il n'y a pas de stoploss définit dans le code, alors c'est normal :)
bertrandpinoy bonjour merci pour la réponse. Oui b sur ... est il possible que le SL soit coder sous une a...
Nicolas ok mais pourquoi poser la question ici ? Pour des questions non spécifique à cette article, ...
Abz  hi , you need to add the indicator from the "price" menu in chart
Francesco Thank you Abz!
phanz Hi Nicolas, this is an interesting strategy. For long position, I assume entry when prices ...
SAM
8 years ago
Elsborgtrading By adding the inside bar breakout failure candle, which is the next bar after the inside bar...
DegoodBoby very nice indicator but pls how can we use the indicator without the text (inside bar/brea...
ShaunG Hi Elsborgtrading thanks for this indicator. I was initially looking for a "IDnr4" which I c...
pascal3431 Salut Doc , Je ne vois pas ce qui fait office de stop dans ce code .. un retour dans le nua...
Doctrading Bonjour, Il s'agit juste d'une stratégie où on est toujours en position : soit à l'achat / ...
pascal3431 Bonjour, après quelques essais sur EUR/USD au M15 en rajoutant(car sinon on est en perte) u...
Doctrading Nice Job ! Here is my version of the code :  KBO = 0 Tenkansen = (highest[9](high)+lowe...
gefinance Thanks for this code. The only thing left missing is the time lapse, otherwise, lots of old...
danhei Hi I am tryong to figure out how trist strategy works. I am new to pro real time. Can some...
Plop61 Hello,Thank you for sharing this beautiful strategy.Is it possible to indicate the code for ...
NoName Thank you very much for this fascinating trading system. It is still proving to be extremely...
larouedegann best with this hour IF TIME =081000 THEN plushaut=highest[2](high) plusbas = lowest[2](lo...
CanAny1Trade Hi! I'm trying to put together a similar indicator but struggling. I want to mark the NY Pit...
ALE Hi Pat This code was nothing more than an experiment
pat95162 Hi Ale Do you have same results as me ? The strategy works very well in 2017 and now in 2-...
Nicolas Built on the history means that it suits the history. Always develop ideas in In-Sample peri...
Nicolas Line 10: Volume of current candlestick must be at least 1.5 higher than the previous one and...
bibifricotin Bonjour Nicolas je viens d'essayer ce screener mais j'obtiens des résultats curieux .Aujourd...
Nicolas Décalage si compte gratuit fin de journée ?
Cosmic1
9 years ago
Cosmic1 Lets discuss here: https://www.prorealcode.com/topic/cac-breakout-ported-to-other-markets/
rejo007 hello, anybody use thi strategy for a long time? thanks
abacus23 Hi, I have been trading this strategy and it seems to work quite well recently. Is there a...
Elsborgtrading No that is wrong :) 1st runs always- then only run 2nd if 1st is on market with positions(ar...
Elsborgtrading It can only be fully automated if IG change minimum SLto 7 at night on DAX multi timefra...
Elsborgtrading A small example. the strategy would have opened 3 position on Dec 4th 2016 and keept it for ...
Cosmic1
9 years ago
Cosmic1 @JadeDB What times are you putting in?
sincitytrader I tried this one out recently,  and wasn't profitable for me.
Cosmic1 Yes, not great lately. I stopped this live at the end of last year. Will wait to see when th...

Top