MACD PLATINUM ON CHART

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

    Bonjour à tous,

    On a rangé le parasol et les tongues ?

    J’utilise ce MACD depuis sa création et personnellement je le trouve pas mal , serait il possible de le convertir

    pour qu’on puisse l’appliquer directement sur le graphe des prix ?

    merci pour votre aide

    bonne journée et bons trades

     

    //PRC_MACD Platinum | indicator
    //29.09.2016
    //Nicolas @ www.prorealcode.com
    //Sharing ProRealTime knowledge
     
    // --- settings
    //short = 12
    //long = 26
    //signal = 9
    // --- end of settings
     
    EMAshort1 = exponentialaverage[short](close)
    EMAshort2 = exponentialaverage[short](EMAshort1)
    DifferenceShort = EMAshort1 - EMAshort2
    ZeroLagShort = EMAshort1 + DifferenceShort
     
    EMAlong1 = exponentialaverage[long](close)
    EMAlong2 = exponentialaverage[long](EMAlong1)
    DifferenceLong = EMAlong1 - EMAlong2
    ZeroLagLong = EMAlong1 + DifferenceLong
     
    ZeroLagMACD = ZeroLagShort - ZeroLagLong
     
    signal1=ExponentialAverage[signal](ZEROLAGMACD)
    signal2=ExponentialAverage[signal](signal1)
    DIFFERENCE2=signal1-signal2
     
    SignalMACD=signal1+DIFFERENCE2
     
    if signalMACD>=zerolagMACD then
     r=255
     g=69
     b=0
    else
     r=54
     g=224
     b=208
    endif
     
    drawbarchart(signalMACD,zerolagMACD,signalMACD,zerolagMACD) coloured(r,g,b)
     
    if zerolagMACD crosses over signalMACD or zerolagMACD crosses under signalMACD then
     drawtext("●",barindex,signalMACD,Dialog,Bold,12) coloured(r,g,b)
    endif
     
    RETURN ZeroLagMACD coloured(54,224,208) style(dottedline,1 ) as "Zero Lag MACD", SignalMACD coloured(255,69,0) style(line,2) as "Signal MACD", 0 coloured(100,100,100) as "zero line"
    MACD-PLAT-on-chart.jpg MACD-PLAT-on-chart.jpg
    #77272 quote
    Matriciel
    Participant
    Master

    Bonjour Titi,

    J’espère que cela te conviendra.

    //PRC_MACD Platinum | indicator
    //29.09.2016
    //Nicolas @ www.prorealcode.com
    //Sharing ProRealTime knowledge
    
    // --- settings
    //short = 12
    //long = 26
    //signal = 9
    // --- end of settings
    
    EMAshort1 = exponentialaverage[short](close)
    EMAshort2 = exponentialaverage[short](EMAshort1)
    DifferenceShort = EMAshort1 - EMAshort2
    ZeroLagShort = EMAshort1 + DifferenceShort
    
    EMAlong1 = exponentialaverage[long](close)
    EMAlong2 = exponentialaverage[long](EMAlong1)
    DifferenceLong = EMAlong1 - EMAlong2
    ZeroLagLong = EMAlong1 + DifferenceLong
    
    ZeroLagMACD = ZeroLagShort - ZeroLagLong
    
    signal1=ExponentialAverage[signal](ZEROLAGMACD)
    signal2=ExponentialAverage[signal](signal1)
    DIFFERENCE2=signal1-signal2
    
    SignalMACD=signal1+DIFFERENCE2
    
    if signalMACD>=zerolagMACD then
    r=255
    g=69
    b=0
    else
    r=54
    g=224
    b=208
    endif
    
    if zerolagMACD crosses over signalMACD or zerolagMACD crosses under signalMACD then
    drawtext("●",barindex,close,Dialog,Bold,12) coloured(r,g,b)
    endif
    
    RETURN
    #77297 quote
    supertiti
    Participant
    Master

    Bonjour Matriciel

     

    Le code va très bien , c’est juste ce que je voulais. J’avais initié quelques codes mais sans réel succès ( trop de signaux).

    juste un point peut-être perfectible , avons nous la possibilité de rapprocher les signaux longs et courts des cours de clôture ?

    les points courts au dessus des cours de clôture et les points longs en dessous seraient le top !.

    merci beaucoup pour ton aide

    cordialement

    ci joint une valeur d’actualité : Air France

    Air-France-platinum.jpg Air-France-platinum.jpg
    #77313 quote
    Matriciel
    Participant
    Master

    Comme ceci ?

    //PRC_MACD Platinum | indicator
    //29.09.2016
    //Nicolas @ www.prorealcode.com
    //Sharing ProRealTime knowledge
     
    // --- settings
    //short = 12
    //long = 26
    //signal = 9
    // --- end of settings
     
    EMAshort1 = exponentialaverage[short](close)
    EMAshort2 = exponentialaverage[short](EMAshort1)
    DifferenceShort = EMAshort1 - EMAshort2
    ZeroLagShort = EMAshort1 + DifferenceShort
     
    EMAlong1 = exponentialaverage[long](close)
    EMAlong2 = exponentialaverage[long](EMAlong1)
    DifferenceLong = EMAlong1 - EMAlong2
    ZeroLagLong = EMAlong1 + DifferenceLong
     
    ZeroLagMACD = ZeroLagShort - ZeroLagLong
     
    signal1=ExponentialAverage[signal](ZEROLAGMACD)
    signal2=ExponentialAverage[signal](signal1)
    DIFFERENCE2=signal1-signal2
     
    SignalMACD=signal1+DIFFERENCE2
     
    if signalMACD>=zerolagMACD then
    r=255
    g=69
    b=0
    else
    r=54
    g=224
    b=208
    endif
     
    if zerolagMACD crosses over signalMACD then
    drawtext("●",barindex,Low-1*pipsize,Dialog,Bold,12) coloured(r,g,b)
    endif
    
    if zerolagMACD crosses under signalMACD then
    drawtext("●",barindex,High+1*pipsize,Dialog,Bold,12) coloured(r,g,b)
    endif
     
    RETURN
    swapping and Nicolas thanked this post
    PRC.jpg PRC.jpg
    #77337 quote
    supertiti
    Participant
    Master

    pil poil ce que je souhaitais! un grand merci pour ton aide

     

    Allez a la sieste , ici a Cadiz 44 degres ,,,,le break est obligatoire

    bonne am

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

MACD PLATINUM ON CHART


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
supertiti @supertiti Participant
Summary

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

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 08/01/2018
Status: Active
Attachments: 3 files
Logo Logo
Loading...