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 • 356 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
Jan Wind Thanks for sharing ! The Gain/Loss ratio is a bit low, 1,16, hardly offset the risks take...
drive whats the period ?
Lucas0000 Hola. estoy buscando un programador en proorder, para hacer un programa basado en el Q-trend...
rama what is the buy condition or sell condition for this can you suggest a code k1=1 buy and k1...
rama I would like to know at point 1 an alert or binary indicator so that I can place order
maxlys Bonjour Nicolas, merci pour ce code qui a l'air intéressant. Comment ajouter dans le code l'...
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...
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...
sir_i Bonjour à tous, Je suis nouveau sur le forum et sur la plateforme, pourriez-vous me dire com...
Nicolas Il faut simplement l'appliquer sur le prix.
sir_i Merci pour la réponse, je ne suis pas familier avec l'application de cette procédure simple,...
Vonasi There is another version of this indicator that can plot the same lines but onto an indicato...
Martin35 Hello Vonasi, do you think it is possible with PRT to code with the same principle as on thi...
Paul the last update can be found in topic Strategy DayOpen Straddle for DAX on page 14.
bertrandpinoy l instruction GRAPH pose problème sur PRT... pas vous? cordialement
Nicolas Supprimer simplement les lignes avec GRAPH pour passer en ProOrder, trading live.
Marcel The line is just a moving average line. The indicator reacts on the Parabolic SAR dots.
Mattzi I dont get the dots! What am i doing wrong? :)
Mattzi Ignore this comment ;)
fredfilm Hi Nicolas, how could we add a price screen to this? eg stock prices between $1 to $3 etc
MauroPro It is possible to apply this indicator ON the chart , because when I try to apply the formul...
Nicolas Yes, just apply it on the price chart by using the wrench on the left upper side of your pri...
MauroPro Hi Nicolas, thanks for the reply, I managed to apply the indicator on the chart.
Simba Greetings from germany! :) Can you told me your EXIT-strategy for this, please? :) Would ...
Eric If you have a high percentage winners and the trades are closed with take profit the spread ...
Casenova I Agree with you JaunJ, and Yes Eric, what you say makes sense too. Optimizing the Stop Loss...
ET Thanks for the system Casenova. In determining the high of the past 4 bars, is there a reaso...
ak5hay2 Works like crazy on bitcoin. Use different timeframes. Thanks a lot Doc!!!
richyowen Hi, great code thanks. Very new to this forum. Is there a way to add a 100point target on an...
lisamitch50 Morning all, Just backtested on quite a few instruments, worked well on backtesting, but tel...
reb Hello have you used this strat since last year ? live or Back test ? What are the results ?
beeb Yes last Year. But only back test
drysheep Hi all, did anyone test this strategy recently? As i dont get a single trade in the backt...

Top