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
Nicolas
6 years ago
Nicolas Merci, faire une demande dans le forum approprié.
Pere Thanks for this good indicator Nicolas. I would like to make the upper and lower limits mor...
Nicolas because fractals are known 2 bars later! that's why I used rectangle to plot them in the past.
Alai-n Merci pour ce travail...
patmaba merci Alai-n. C'est ma première participation sur prorealcode, merci pour à toi pour ton co...
longtrade Can this be converted to a screener?
GraHal Is this the Discussion Topic you need @Gregg https://www.prorealcode.com/topic/scalping-i...
bertrandpinoy bonjour Nicolas y a t il une possibilité de signal sonore dès qu une vente ou un achat serai...
Nicolas Oui cela nécessitera une adaptation du code cependant, merci de formuler une demande sur le ...
Nicolas Oui pourquoi pas? :)
claudiofred Bonjour Nicolas, merci encore pour ce super indicateur. se demander s'il est possible d'écr...
Nicolas Screener déjà présent sur le forum ici: https://www.prorealcode.com/topic/indicador-lastmans...
bazilou pouvez expliquer donchian bias merci
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 ...
jobswaps vaya eres increible
jobswaps sigue subiendo mas contenido
Brisvegas If it seems to good to be true it is . Any long only system started at multi year lows will...
Nicolas https://www.prorealcode.com/topic/ayuda-screener-indicador-perfect-trend-line/#post-51291
Manu L. Bonjour Nicolas, suite a une de mes precedentes demande dans le forum indicateur, j'ai touv...
AntoGH C'est selon moi le meilleur indicateur, que j'ai vu, si vous trouvez mieux dîtes moi car dif...
Jiacky mma = average[per,1](close) should be mma = average[per,1](close * 1000). Otherwise TDF will...
Trading_En_El_Ibex35 El screener no busca acciones que estén en máximos absolutos , busca acciones en las que el...
Andraxx lo de volumen aceptable, lo dices en relación al Ibex 35 supongo. Porque se margen de volume...
Juanjo Hola Queria preguntarte si la idea de maximos anuales es tuya, o bien está basada en el sis...
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 ...
phanz i backtested it with 10K units of EURUSD 1 hour i get an equity curve that is going one way ...
EchnatonX Hallo Im Demomodus bei IG habe ich das Problem, dass oft keine Orders ausgeführt werden kön...
Jan EchnatonX, nice late answer of me: Make the stop loss a percentage of the close, like 100/...
guleny Hello I made some optimization to make it better. But there are 5 transacttion which incr...
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...
Roberto Blázquez Hi David, I just saw your strategy and it's good!!! I'm going to try it from today in real a...
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 There's a few threads on the forum about backtest and live trades being different at times. ...
ET I agree with verdi55. As it is now, the code will only test for a breakout on the upside (li...
Philipjonasson are u still active Wing?
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?

Top