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 • 236 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
zilliq The reasons why I think it's time consuming and we loose time to try to do backests and Auto...
filiprb Hello Zilliq, You don't need a system to produce a walk forward test. You can easily create...
Philip Raphael It is incredible! Thanks for sharing, Doctrading!
Reiner
8 years ago
Nicolas You should join and read the forum thread about this strategy. There are plenty of different...
Reiner Hi djtaktik and welcome, I have answered your question in the related Pathfinder forum beca...
danver34 is this version the definitive one or from the original one have there been modifications to...
Reiner
8 years ago
Nicolas Overfit on past history obviously. But it doesn't mean that it would still underperformed in...
Francesco78 Thank you for the clarifications Nicolas, I am more aware of the meaning of the backtesting ...
CanAny1Trade Hi all, could a simple indicator be made to mark the traditional Pit based ORB? I'm tryi...
Fabio Anthony Terrenzio this strategy works only in a well defined trend
brosly Good afternoon I am trying to get the complete code of lex strategy made by adolfo since I s...
dreif123 hi Adolfo, is Alex Auto Trading Botindex working on DAX as well ? if so , can you post the...
hvluthy@sunrise.ch I'm very interested to try out your strategy, but as a bloody newbie I need some help regard...
Scalp Hola Adolfo, tengo una variante de tu estrategia, pero no se programar, me puedes ayudar al ...
ALZ Hi, I tested this strategy and that doesn't work.. strategy is losing.. Does anyone curr...
Nicolas Ahah, I'm not the author of this one :) I know you are a great coder Wilko, why don't you p...
Wilko Thanks for the flattery! I will, I promise.  /F
Nicolas Still don't have seen anything from your own :) You promised me! Ahaha 
Andres Uffff, I didn't adjust the different index spreads. With the heavy spread of Italy It's nega...
davidp13 Good day. I know this was posted such a long time ago, but I though rebuilding the system on...
davidp13 Also to note that the one position in my code does not close the other, which as far as I kn...
verdi55 Strategies for sale usually are not worth their money, 'cause if they were, the author would...
triss1965@gmail.com Thats not cool at all.
demha sak Hello, I improved your algorithm by adding long positions: ``` DEFPARAM CumulateOrders = ...
Dave Hi, I'm new to coding and have been trying to modify the code a little to backtest an idea I...
Nicolas Better use the forums for coding assistance please. You'll get more results there for sure.
Dave Apologies - only just learning the site layout. Maybe you could delete the post?
Nicolas FR/Bonjour Steftonio, non pas de frais overnight calculé sur la durée du backtest, c'est une...
avatar
Anonymous Any reason why in 2016 this system is doing very bad respect the previous years?
Nicolas "very bad" is relative to the account equity. I do not forward test this strategy since I po...

Top