MM CROISEMMENT 3points

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #74134 quote
    edhitraderedhitrader
    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
    NicolasNicolas
    Keymaster
    Legend

    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
    NicolasNicolas
    Keymaster
    Legend

    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 NicolasNicolas
8 years, 4 months ago.

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