DISAPPEARING MOVING AVERAGE (trading rush)

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #164258 quote
    alimemar
    Participant
    Junior

    salut j’espère que vous allez bien

    Il ya quelques temps je suis tombé sur une moyenne mobile crée par la chaine “trading rush” sur youtube et elle est disponible gratuitement sur trading view.

    l’idée est très simple mais extrêmement efficace, c’est une moyenne mobile exponentielle qui disparaît en range et ré-apparait une fois que le trend est relancé avec une formule simple et basique

    je vous met quelques liens et aussi le code de base (version trading view)

    pourriez vous m’aider à le traduire en PRT svp?

    merci infiniment

    //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    //Created by Trading Rush

    // © Trading Rush

    //@version=4

    study(title=”Trading Rush Moving Average”, shorttitle=”TR EMA”, overlay=true, resolution=””)

    len = 200

    src = close

    ema1 = ema(src, len)

    maColor = if(close[5] > ema1[5] and close[10] > ema1[10] and close[15] > ema1[15] and close[20] > ema1[20] and close[30] > ema1[30] and close[40] > ema1[40] and close[50] > ema1[50] and close > ema1)

    color.green

    else if(close[5] < ema1[5] and close[10] < ema1[10] and close[15] < ema1[15] and close[20] < ema1[20] and close[30] < ema1[30] and close[40] < ema1[40] and close[50] < ema1[50] and close < ema1)

    color.red

    else

    color.new(color.white, 100)

     

    plot(ema1, title=”TR EMA”, color=maColor, linewidth=4)

    Screenshot-2021-03-15-at-19.33.10.png Screenshot-2021-03-15-at-19.33.10.png
    #164269 quote
    fifi743
    Participant
    Master

    bonsoir,

    c’est ce que tu cherche

    ema1 = average[200,1](close)
    
     if(close[5] > ema1[5] and close[10] > ema1[10] and close[15] > ema1[15] and close[20] > ema1[20] and close[30] > ema1[30] and close[40] > ema1[40] and close[50] > ema1[50] and close > ema1) then
    //green
    R=0
    V=102
    B=0
    A=255
    elsif(close[5] < ema1[5] and close[10] < ema1[10] and close[15] < ema1[15] and close[20] < ema1[20] and close[30] < ema1[30] and close[40] < ema1[40] and close[50] < ema1[50] and close < ema1) then
    //red
    R=204
    V=0
    B=0
    A=255
    
    else
    
    A=0
    endif
    return  ema1 coloured(R,V,B,A)
    Nicolas thanked this post
    #164613 quote
    alimemar
    Participant
    Junior

    oui  Merci infiniment

    c’est exactement ce que je voulais, sauf que là du coup c’est pas une moyenne mobile exponentielle, c’est une MM simple n’est ce pas?

    et ne s’affiche pas sur le prix, comment pourrais je le mettre sur le même graphique que le prix s’il te plait?

    merci encore

    #164615 quote
    alimemar
    Participant
    Junior

    c’est tout bon j’ai pu le régler, merci beaucoup!!

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

DISAPPEARING MOVING AVERAGE (trading rush)


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
alimemar @alimemar Participant
Summary

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

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 03/15/2021
Status: Active
Attachments: 1 files
Logo Logo
Loading...