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 • 188 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
avatar
unkown ;-) sfido chiunque a riuscirci!
avatar
unkown infatti basta leggere i post degli altri....
nicola papangelo ciao Francesco vorrei contattarti su facebook o in privato. Grazie
hartgeld Hallo Atxeel, sehr interessanter Code, habe das installiert und funktioniert. Danke! Kannst ...
atxeel Hallo hartgeld, die Ziele sind schlicht, bspw. die Range beträgt 10 Punkte, dann ist das Zie...
Maik2404 wie kann ich den Code bekommen Paul?
jens_kittner Works with US Crude at 1h as well!
Jean-Claude REGIS Je préconise de regarder les graphiques H1 et M15 pour visualiser la tendance de fond et d'...
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.
TraderFelix
6 years ago
Bebbo Thank you for your contribution. I have tested your system on some instruments and I like i...
bertrandpinoy bonjour j ai tente l installation mais PRT m indique que ce code ne peut etre utilisé qu en ...
Nicolas en effet, il faut utiliser l'éditeur de code ProBacktest, il ne s'agit pas d'un indicateur m...
Xusto Hello, Fully Agree, I will update it with your advice. Btw Can would you like share you co...
Niklas johansson hägglund do you now if it's possible to use this strategy with this code in tradingview also?
Alexander9 This code for metastock ?, can for amibroker . Thanks
Petersson Kristian Hi when I do back test I get 0 results, what do I do wrong? Trade Well Chris
JohnScher Yes i did before, see library/strategys/repulse and dpo https://www.prorealcode.com/proreal...
JohnScher Don't know what you're doing wrong. Import ITF and observe time zone settings. This should...
osupero https://www.screencast.com/t/2fCW8fkGsOeZ....solo posiciones largas por ahora
osupero https://www.screencast.com/t/MIaSZ2PRg
ALZ Hi JohnSher, Nice but not the same result Do you have the last itf of it ? Good result i...
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...
FULVIO09 Attualmente non c'è sufficiente volatilità : la condizione "C0 = AverageTrueRange[1500](Clos...
vlongobardo67 Ma io intendevo in backtest ! Scusa non l’ho menzionato.
ciniselloftse salve fulvio .il trading sistem e sempre profittevole?
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...
Yannick TradingDayLong = dayofweek = 1 or dayofweek = 2 or dayofweek = 3 or dayofweek = 4 or dayof...
Marlon Hey JohnScher, your code works fine, but my results aren't as good as yours. Even if I use ...
DarioMazza Bha... this code dont work. gg
ALE
6 years ago
settival CIAO ALE CREDO DI AVER SETTATO PER BENINO LO SCALPING INDICATOR MA NON VISUALIZZO I SEGNALI ...
graff.laetitia Hello, I'm sorry to bother you, I'm new to trading, I managed to download the indicator but ...
Alby118 i can get it to work? dax 1 min. upload indicator on the4 chart. thank you
Yannick Hello There is a mistake in trailing stop code, I think that this should fix the problem s...
Paul About the trailing-stop the way it's coded. That works for backtesting only, just look at th...
Jonny sorry paul, but system says that is not possible to put many stop order combined...what have...
BC
6 years ago
TempusFugit Thanks Bin, nice code, I can use several ideas of the way you build it
DarioMazza Thanks Bin, great concentration, i understand the first idea, but may u indicate me the asse...
Bin Hi Mazza This robot is optimized for DAX30.
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 ...
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...
stratobast Good afternoon everyone. Thanks Doctrading for your work. I have an issue while using this ...
stratobast My bad guys. I understood what was the problem. The indicator uses highs and lows for the Re...
samwarduk Has anyone tried this on Bitcoin GBP1? The results look amazing but every time mine trie...
gackeen Scusa Pier, scusate tutti, sono nuovo. Ho caricato il file e mi viene restituito il messaggi...
JR1976 HI Nicolas , I tried to copy paste but not import directly and the code works well I hav...
mcosta This code doesn't work on 10.3 platform(IG), neither with copy/paste nor with itf import, an...
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?

Top