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

    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
Gaspare Ciao Ivan si puo' inserire una strategia su questo indicatore per ottimizzare le variabil...
jacquesgermain sì da aggiungere
Maik2404 auf welchen Wert muss ich die Kompresionsperiode stellen?
jacquesgermain — Période de compression : ce paramètre détermine la période de rétrospection utilisée pour ...
Actaru5 Hi, I couldn't see the candles well. Changing the code solves the problem. from line 164 to...
LucasBest Thank you
Alai-n @LucasBest Hello, do you think it is possible to isolate moving averages? I would like to us...
Ciccarelli Franco Hai ragione, mi dava valori alti perchè usavo questo loss "SET STP LOSS 1xAverageTrueRange{1...
YvesRobert Hello davidelaferla, how do you put a stop loss and where exactly ? the moment you enter on ...
Hypersimo Buongiorno Davide a quale distanza inserire stop loss e tp nella strategia? grazie
Meta Signals Pro great feature ^^
Meta Signals Pro can you detail how you did that or refer to a link ? thanks
Roland57800 Bonjour Noobywan, si je comprends bien l'utilisation de ce code que je trouve particulièr...
Noobywan Bonjour, quand la question a été posée dans le forum à celui qui avait fait la requête en am...
Fabian This Code draws only a retangle if the condition has been confirmed and NOT before (in that ...
Manu L. Bonjour Nicolas, j'ai créé un screener avec l'aide à la prog en TF weekly mais je voudrai...
wtangsiri C'est exactement le même signal que donne le croisement et le décroisement de deux EMA (7 et...
PHAN100 bonjour, j'ai un bug sur le programme recopié prorealtime me dit qu'il y a un problème à ...
PHAN100 bonjour, bravo à l'auteur pour cet indicateur visuel sur le graphique, il nous reste à va...
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 !
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...
woktrade Superbe !
Vonasi An updated version with a bug fix can be found here: https://www.prorealcode.com/topic/dis...
snucke hey Vonasi is it possible you can help me get this indicator to show how much a market mo...
Nicolas Pour créer des alertes, vous pouvez suivre ce petit tutoriel : https://www.prorealtime.com/f...
thibault76 Bonjour Nicolas, cette stratégie est intéressante. Par contre, en 2022, le code ne fonction...
Nicolas Aucun message d'erreur pour ma part en version 11.1. Tu es certain de créer un code d'indica...
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?...

Top