PENTE DE MOYENNE MOBILE normalisée

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #179686 quote
    supertiti
    Participant
    Master

    Bonsoir à tous,

    J’ai trouvé sur le site de Marc Doctrading un code qui nous propose une pente de moyenne mobile.

    J’aimerai pouvoir le modifier de façon à ce que cette pente évolue autour du 50 d’un indicateur borné qui va de zéro à cent.

    Si quelqu’un peut faire cette conversion ?

    voici le code original :

    http://www.doctrading.fr/pente-de-moyenne-mobile/

    Pente-PRC.jpg Pente-PRC.jpg
    #179700 quote
    Nicolas
    Keymaster
    Master

    Pour cela on normalise les valeurs sur les X dernières bougies, telle une stochastique, voici le code:

    // Variables
    Normalisation = 100
    P = 21 // période MM
    N = 10 // nb bougies
     
    MM = exponentialaverage[P](close)
     
    IF MM >= MM[N] THEN
    Slope = (MM - MM[N]) / MM[N]
    ELSIF MM < MM[N] THEN
    Slope = (MM - MM[N]) / MM
    ENDIF
     
    scale = highest[normalisation](slope)-lowest[normalisation](slope)
    norm = (slope-lowest[normalisation](slope))/scale*100
    
    RETURN norm
    pente-normalisee.png pente-normalisee.png
    #179719 quote
    supertiti
    Participant
    Master

    Bonjour Nicolas

    Un grand merci pour le code, je l’ai installé de suite et il fonctionne à la perfection en espérant qu’il serve à d’autres membres chacun avec sa stratégie adaptée.

    Campéon !

    Bonne journée

    PENTE-RSRMA-NORMALISEE.jpg PENTE-RSRMA-NORMALISEE.jpg
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

PENTE DE MOYENNE MOBILE normalisée


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
supertiti @supertiti Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by supertiti
4 years, 5 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 10/14/2021
Status: Active
Attachments: 3 files
Logo Logo
Loading...