Dax Short only – intraday trading strategy – timeframe 15 minutes

Dax Short only – intraday trading strategy – timeframe 15 minutes

Dear All,

I think it is the good timing to share with you the following strategy.

“Dax Short 15′” is nothing really complicated but works fairly.

  • TF 15′
  • Instr. DAX
  • Tested on “tick by tick”
  • Tested with 200k bars.
  • 1 pt spread.
  • WF hasn’t been done.

Kindly note that I am not the coder of the century 😉 however I’ll be delighted to help as much as I can.

Thank you.

 

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. jebus89 • 10/13/2017 #

    what timezone? not getting similar results 🙂

  2. JR1976 • 10/13/2017 #

    Hi Inertia ,
    first of all , congrats for the good strategy
    one questions : the average 2000 in the code Time frame 15min, rapresent the Average 100 in Daily Time frame ?

    thanks

  3. Inertia • 10/13/2017 #

    Thank you JR1976.
    It was not meant to be a conversion from a daily TF but mostly a “larger and round” filter for this 15’TF.
    However, i did an excel breakdown as attached (fyi)…

  4. lysan2 • 10/13/2017 #

    Thank you Inertia.
    Can you think if it’s possible to applicate this strategy (Long Only) ?

  5. Inertia • 10/13/2017 #

    Sorry lysan2, the exact one for long only doesn’t work well.
    Perhaps, you may have to look with roughly the same trigger for entries but on a smaller TF to possibly find an edge.
    thx.

  6. andreag76 • 10/13/2017 #

    Long version… not very good

    //DEFPARAM Preloadbars = 3000
    DEFPARAM CumulateOrders = False
    DEFPARAM FLATBEFORE = 090000
    DEFPARAM FLATAFTER = 210000
    noEntryBeforeTime = 090000
    timeEnterBefore = time >= noEntryBeforeTime
    noEntryAfterTime = 213000
    timeEnterAfter = time 2)
    indicator3 = ExponentialAverage[mafilter](close)
    c3 = (close > indicator3)
    indicator4 = ExponentialAverage[mafilter](close)
    indicator5 = ExponentialAverage[mafilter](close)
    c4 = (indicator4 > indicator5[1])

    IF (c1 AND c2 AND c3 AND c4) AND timeEnterBefore AND timeEnterAfter AND not daysForbiddenEntry THEN
    buy ordersize CONTRACT AT MARKET
    ENDIF

    //trailing stop
    trailingstop = TS//Best 30

    //resetting variables when no trades are on market
    if not onmarket then
    MINPRICE = close
    priceexit = 1
    endif

    //case long order
    if longonmarket then
    MINPRICE = MIN(MINPRICE,close) //saving the MFE of the current trade
    if tradeprice(1)-MINPRICE>=trailingstop*pointsize then //if the MFE is higher than the trailingstop then
    priceexit = MINPRICE+trailingstop*pointsize //set the exit price at the MFE + trailing stop price level
    endif
    endif

    //FINE LONG

    //exit on trailing stop price levels
    if onmarket and priceexit>0 then
    EXITSHORT AT priceexit STOP
    SELL AT priceexit STOP
    endif

    SET STOP Ploss SL
    Set Target PProfit TP

  7. Inertia • 10/13/2017 #

    @Andreag76
    Thank you but your code is broken.
    Variables are missing and the trailing stop, if long only should be MAXPRICE instead of MINPRICE.
    However, yes the long version on a TF 15′ doesn’t work well enough.
    Kind regards,

  8. Vieux Marin • 10/13/2017 #

    Hi,
    What do you think about this ?

    //————————————————————————-
    // Code principal : Dax Short 15′
    //————————————————————————-
    //———————————–
    // Code principal : Dax Short 15′
    //————————————————————————-
    // Définition des paramètres du code
    // From Inertia
    //Last optimization 26/07/2017

    DEFPARAM Preloadbars = 3000
    DEFPARAM CumulateOrders = False
    DEFPARAM FLATBEFORE = 100000
    DEFPARAM FLATAFTER = 180000
    noEntryBeforeTime = 100000
    timeEnterBefore = time >= noEntryBeforeTime
    noEntryAfterTime = 213000
    timeEnterAfter = time < noEntryAfterTime
    daysForbiddenEntry = OpenDayOfWeek = 1 OR OpenDayOfWeek = 3 OR OpenDayOfWeek = 6 OR OpenDayOfWeek = 0

    REM Variables
    // Taille des positions
    REINV = 1
    LEVIER = 5
    IF REINV = 0 THEN
    N = 1
    ELSIF REINV = 1 THEN
    capital = 500 + strategyprofit
    N = round(capital / 500)*LEVIER
    ENDIF
    ordersize = N

    mafilter = 250 // 2000
    TS = 30 // 30
    SL = 45 // 45
    TP = 110 // 110

    //MACD settings
    a = 12 // 12
    b = 26 // 26
    c = 9 // 9

    // Conditions pour ouvrir une position en vente à découvert
    indicator1 = MACD[a,b,c](close)
    c1 = (indicator1 CROSSES UNDER 0)
    indicator2 = MACDline[a,b,c](close)
    c2 = (indicator2 < 0)
    indicator3 = ExponentialAverage[mafilter](close)
    c3 = (close < indicator3)
    indicator4 = ExponentialAverage[mafilter](close)
    indicator5 = ExponentialAverage[mafilter](close)
    c4 = (indicator4 =trailingstop*pointsize then //if the MFE is higher than the trailingstop then
    priceexit = MINPRICE+trailingstop*pointsize //set the exit price at the MFE + trailing stop price level
    endif
    endif

    //exit on trailing stop price levels
    if onmarket and priceexit>0 then
    EXITSHORT AT priceexit STOP
    SELL AT priceexit STOP
    endif

    SET STOP Ploss SL
    Set Target PProfit TP

  9. Inertia • 10/13/2017 #

    Thank you.
    Sorry, there is a bug on line 52…

  10. Vieux Marin • 10/13/2017 #

    //————————————————————————-
    // Code principal : Dax Short 15′
    //————————————————————————-
    //———————————–
    // Code principal : Dax Short 15′
    //————————————————————————-
    // Définition des paramètres du code
    // From Inertia
    //Last optimization 26/07/2017

    DEFPARAM Preloadbars = 3000
    DEFPARAM CumulateOrders = False
    DEFPARAM FLATBEFORE = 100000
    DEFPARAM FLATAFTER = 180000
    noEntryBeforeTime = 100000
    timeEnterBefore = time >= noEntryBeforeTime
    noEntryAfterTime = 213000
    timeEnterAfter = time < noEntryAfterTime
    daysForbiddenEntry = OpenDayOfWeek = 1 OR OpenDayOfWeek = 3 OR OpenDayOfWeek = 6 OR OpenDayOfWeek = 0

    REM Variables
    // Taille des positions
    REINV = 1
    LEVIER = 3
    IF REINV = 0 THEN
    N = 1
    ELSIF REINV = 1 THEN
    capital = 500 + strategyprofit
    n = (capital / 500)*LEVIER
    N = round(n)
    ENDIF
    ordersize = N

    mafilter = 2000 // 2000
    TS = 30 // 30
    SL = 45 // 45
    TP = 110 // 110

    //MACD settings
    a = 12 // 12
    b = 26 // 26
    c = 9 // 9

    // Conditions pour ouvrir une position en vente à découvert
    indicator1 = MACD[a,b,c](close)
    c1 = (indicator1 CROSSES UNDER 0)
    indicator2 = MACDline[a,b,c](close)
    c2 = (indicator2 < 0)
    indicator3 = ExponentialAverage[mafilter](close)
    c3 = (close < indicator3)
    indicator4 = ExponentialAverage[mafilter](close)
    indicator5 = ExponentialAverage[mafilter](close)
    c4 = (indicator4 =trailingstop*pointsize then //if the MFE is higher than the trailingstop then
    priceexit = MINPRICE+trailingstop*pointsize //set the exit price at the MFE + trailing stop price level
    endif
    endif

    //exit on trailing stop price levels
    if onmarket and priceexit>0 then
    EXITSHORT AT priceexit STOP
    SELL AT priceexit STOP
    endif

    SET STOP Ploss SL
    Set Target PProfit TP

  11. tecknozic • 10/13/2017 #

    Bonjour Inertia, cette sais-tu si cette stratégie fonctionne sur un compte IG à “risque limité” ? Car je crois qu’il y a une restriction sur le fonctionnement des trailing stops. Mais peut-être que ton code contourne cette restriction de par sa conception ? Merci.

    • Inertia • 10/13/2017 #

      Bonjour tecknozic…. Je ne sais pas… Désolé.
      Bonne chance 😉

  12. teddy58 • 10/13/2017 #

    This system is the only one running on my PC, which i didn´t developed my myself. My forcast was correct, the system makes money !! Gratulation, you understand the DAX.

  13. xpiga • 10/13/2017 #

    Hi! Is this system still working good? Anyone has it in the live account? It looks great.
    Thank you for sharing

  14. Paul_Going Dutch • 209 days ago #

    Proformence will be beter with other starting hours and closing hours @Inertia

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar

+5 more likes

Related users ' posts
JohnScher Short variant, see at https://www.prorealcode.com/topic/late-lunch-trade-dax40-strategy/
DANY Hi JohnScher, Thanks a lot for your contribution. Consider this release to avoid overfit...
JohnScher Thank you so much for exploring the Late Lunch Strategy. For discussion and in answer to yo...
BenJuice JohnScher, merci de partager ta stratégie. Je suis nouveau dans ce domaine, sur ton code q...
JohnScher As a percentage of the price, here 2%. StopLoss as well as TargetProfit. SL and TP come ...
Wilko I absolutely love the simplicity of this mean-reversion strategy. Well done!
Patrice210 bonjour STANKO, effectivement la première ligne apparait en anomalie et je ne comprend pas v...
KumoNoJuzza Hi guys, Thanks @Stanko and everyone for your contributions. I have been playing around ...
Stanko Hi KumoNoJuzza, thanks for the post. I also tried your code with Dax and the performance is ...
snucke i dont think you understod the question. i did not ask about the band pass indicator. i as...
thomas2004ch Hi, Is this startegy suitable for daily SPY? Regards
ebous64 Je cherche à traiter des effets de bords avec un encadrement ajustable des variables. Vous a...
JohnScher Postscript: It's running in the live right now. One position after the other is opened. ...
ullle73 nice!! how's it been since your last post on going live? :)
thomas2004ch Hi, Is this strategy suitable for daily SPY? Regards
wally Hola soy nuevo en el mudo robots. Alguien seria tan amable de poner el archivo itf.file ya q...
Darren Nash I found this works well on the DOW
thomas2004ch Hi John, Is your strategy suitable for daily SPY? Regards
cdc.andersson Hello, I´m trying to paste the code and start testing but can´t get it to work in PRT. Shoul...
Lupo32 Thank You Aaron
superfalcio I'm having no more issue on the new Prorealtime release 11.1
FXmike hey my friends, thank you for this great code. my problem is he make no trade open. backtest...
FXmike Can i put a Action that my start contract is smaller than 1 ? 0.3 or 0.5 ? In wich Position...
phoentzs I wrote the code for M15 back then and also variants in H1 and M1. Everything works so far....
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...
Ludwig Bonjour Merci pour le code, je souhaite intégrer un break even et mette en place un réinves...
superfalcio hello, this strategy is pretty interesting, anyway on index after diferent suggestion and im...
Fralex Hello everyone I optimized the original “LongOnly-DAX-4H-TMA-Channel” algorithm over a pe...
Dom Hello, hello....je commence le trading et découvre par la même occasion le codage....et ce n...
Nicolas Merci, ça fait plaisir !
Be-n Bonjour tout le monde ! Dans l'indicateur de tendance, j'ai du mal à saisir la nuance entre ...
YvesRobert @robertogozzi. It's done. Thank you
YvesRobert Hello Roberto, some questions about your strategy. 1 - Do the 2 lines SET TARGET pPROFIT T...
robertogozzi 1. The 2 lines SET TARGET pPROFIT TP and SET STOP pLOSS SL are always executed, each bar. Bu...
avatar
Anonymous Hi robertogozzi - thank you very much for sharing this strategy. I have performed various ...
robertogozzi Thank you samsampop.
Dotan Hello guys I really appreciate this coding effort but can I use this code for Mt5 Forex Trad...
Gubben So far so good. After a long drawdown it was winning four times in five weeks. Since 24 jul...
pat95162 Salut Pourquoi je n'ai pas les même résultats que vous
UkCoopDownUnder Any hints for us, on which variables we should be optimising ? As of November 2020, the cu...
Peter I recognized a possible problem with the timeframe / Defparam variables. As far as I know, t...
superfalcio Hello Peter, it is long time i have been watching this strategy, very good and interesting ...
Peter I indeed do have different modified strategies in the market. In the past my variants perfor...
JJ Tec Hola. Me gustaría contactar contigo para ver la estrategia..
nilsla1981 Has someone already tested in real ?
Lucas0000 Hola. estoy buscando un programador en proorder, para hacer un programa basado en el Q-trend...
JOKAMAURICE Thank you but I don't really understand. The values don't fit with what I see on my chart. I...
Alberto Aguilera Hi! Thanks for your strategy Anyone can check it with 200 bars?
TempusFugit Hi, this simple system for DOW and only shorts has worked quite well, maybe because of its q...
phoentzs Unfortunately, I never pursued this strategy further. Maybe I should take a look with what ...
darbes Hi How does it go on live ? JC
antonio73 Balmora74, io vedo che funziona anche su timeframe ad 1 minuto con piccole ottimizzazioni, t...
Juananantoniorodriguez hola buenas, a este sistema automático, Cómo se le podría poner un stoploss de beneficio sim...
Exalaxe Hey, i just noticed you optimized this strategy. Could i see your new version, please?
Andrea.1981 sorry i add my code but it not enter why i dont know
Andrea.1981 this is code simply stop , and you can see another version for stop / Codice principale...

Top