DAX 5MN SHARK AUTOTRADING BOT

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #32393 quote
    larouedegann
    Participant
    Master

    Voici un code basé sur le MACD tendance HEATMAP disponible en librairie.Ajouté a la martingale piquemouche.voilà ce que cela donne<  

    DEFPARAM CUMULATEORDERS = FALSE
    DEFPARAM FLATBEFORE = 090000
    DEFPARAM FLATAFTER = 171500
    
    
    
    //MACD tendance heatmap
    p = 12
    q = 26
    r = 9
    dema1=TEMA[p](close)
    dema2=TEMA[q](close)
    mymacd = dema1-dema2
    dema3 = DEMA[r](mymacd)
    signal = dema3
    vert = mymacd >= signal
    rouge = mymacd <= signal
    
    
    ONCE Ordersize = 1
    n=2
    ONCE badtrades = 0
    
    c1 = rouge[1] and vert
    c2 = vert[1] and rouge
    
    
    IF TIME  > 090000 and  c1 THEN
    IF positionperf(1)<0 then
    badtrades = badtrades+1
    IF badtrades<3 then
    ordersize = ordersize+1
    ELSIF badtrades MOD 3 = 0 then
    oversize = oversize*2
    ENDIF
    ELSIF positionperf(1) >=0 then
    ordersize = 1
    badtrades = 0
    endif
    BUY ordersize*n contracts AT (low+2) limit
    endif
    
    if TIME > 090000 and c2 THEN
    IF positionperf(1)<0 then
    badtrades = badtrades+1
    IF badtrades<3 then
    ordersize = ordersize+1
    ELSIF badtrades MOD 3 = 0 then
    oversize = oversize*2
    ENDIF
    ELSIF positionperf(1) >=0 then
    ordersize = 1
    badtrades = 0
    endif
    SELLSHORT ordersize*n contracts AT (high - 2) limit
    ENDIF
    
    SET STOP LOSS 5
    SET TARGET PROFIT 9
    #32435 quote
    zilliq
    Participant
    Master

    Attention je viens de tester tu as du faire un backtest “normal”, fais un backtest en mode tick par tick tu verras les résultats sont complètement différents

    Bien à toi

    Zilliq

    Ps: Par expérience quand les résultats sont “trop beaux” il y a une erreur quelque part

    #32474 quote
    Nicolas
    Keymaster
    Master

    En effet, c’est pour cela que j’ai déplacé ton post dans le forum larouedegann, désolé mais tu as certainement oublié de cocher la case “tick par tick” 🙂 ça m’arrive aussi parfois ! ahah

    #32780 quote
    larouedegann
    Participant
    Master

    sniffffff !!!!je vais quand même la tester quelque temps.

    le tick by tick fonctionne t il maintenant …

    #32783 quote
    Nicolas
    Keymaster
    Master

    Oui il fonctionne, c’était le trailing stop d’IG qui était mal répercuté dans les backtests. D’une façon générale, tous les backtests devraient être faits avec le mode tick par tick enclenché ! Il donnera une vision toujours plus réaliste des résultats probables obtenus dans le passé.

    #32796 quote
    larouedegann
    Participant
    Master

    et uniquement sur 500 chandeliers ! 🙂

    #34874 quote
    GraHal
    Participant
    Master

    Is this dead in the water larouedegann?

    I’m having a clear out and found it in my list. I’ve deleted it, but if it has any prospects or you have reworked it then ass a comment and I’ll be back 🙂

    GraHal

    #34890 quote
    JC_Bywan
    Moderator
    Master

    the danger of “s” and “d” keys being too close from each other on a keyboard… 🙂

    GraHal thanked this post
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.

DAX 5MN SHARK AUTOTRADING BOT


Support ProOrder

New Reply
Author
Summary

This topic contains 7 replies,
has 5 voices, and was last updated by JC_Bywan
8 years, 8 months ago.

Topic Details
Forum: Support ProOrder
Language: French
Started: 04/18/2017
Status: Active
Attachments: 2 files
Logo Logo
Loading...