Ecart entre deux MM

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #187540 quote
    overspinoverspin
    Participant
    Junior

    Bonjour,

    je souhaiterais inclure dans ma stratégie un paramètre de tendance,

    celui ci serait défini par l’écart grandissant ou se rétrécissant entre deux moyennes mobiles

    j’ai regardé sur les anciens sujets mais je ne trouve pas de piste avez vous une idée pour m’aider ?

    Merci

    #187722 quote
    JC_BywanJC_Bywan
    Moderator
    Master

    Bonjour, voici pour définir un écart et regarder s’il diminue ou s’il augmente:

    mm1=Average[20](close)
    mm2=Average[50](close)
    
    ecart=abs(mm1-mm2)
    
    if ecart<ecart[1] then// les mm se rapprochent
    
    endif
    
    if ecart>ecart[1] then// les mm s'écartent
    
    endif
    #188213 quote
    NicolasNicolas
    Keymaster
    Legend

    C’est un MACD, tout simplement.

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

Ecart entre deux MM


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
overspin @overspin Participant
Summary

This topic contains 2 replies,
has 3 voices, and was last updated by NicolasNicolas
4 years, 9 months ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 02/04/2022
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...