MM CROISEMMENT 3points

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #74134 quote
    edhitrader
    Participant
    Average

    Bonjour  est il possible d’avoir un code pour le croisement des moyennes mobile  7 zero retard et 30 zero retard avec un stop a 3 points a la vente ou a l’achat

    merci

    #74286 quote
    Nicolas
    Keymaster
    Master

    Oui c’est possible. Ce genre de stratégie est très facile à programmer avec la création assistée:

    [youtube]https://youtu.be/ud24IHiN14U[/youtube]

    #74287 quote
    Nicolas
    Keymaster
    Master

    Le code de la stratégie:

    //ZeroLag Fast MA:
    PeriodF = 7
    DataF = Close
    lagF = ROUND((PeriodF-1)/2)
    dF = (DataF+(DataF-DataF[lagF]))
    F = exponentialaverage[periodF](dF)
     
    //ZeroLag Slow MA:
    PeriodS = 30
    DataS = Close
    lagS = ROUND((PeriodS-1)/2)
    dS = (DataS+(DataS-DataS[lagS]))
    S = exponentialaverage[periodS](dS)
    
     
    c1 = F crosses over S
    c2 = F crosses under S
    
    if c1 then 
     buy at market 
    endif 
    
    if c2 then 
     sellshort at market 
    endif 
    
    set stop ploss 3
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

MM CROISEMMENT 3points


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
edhitrader @edhitrader Participant
Summary

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

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 06/22/2018
Status: Active
Attachments: No files
Logo Logo
Loading...