Modification heikin smooth candles

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #225496 quote
    MadFest
    Participant
    New

    Bonjour, dans cet indicateur que j’ai trouvé sur la plaeforme, dans les reglages il y a l’option pour activer ou desactiver les bordures des bougies et j’aimerais modifier le code pour qu’elles soient tout le temps activées car lorsque je redemarre la plateforme c’est desactiver et je dois tout le temps le remettre, et avec 6 graphs en permanence c’est assez fastidieux, quelqu’un saurait comment faire ?

    merci par avance

     

    code :

     

    //PRC_HPT Heikin Ashi Smoothed | indicator
    //25.04.2017
    //Nicolas @ http://www.prorealcode.com
    //Sharing ProRealTime knowledge
    //translated from MT4 indicator code

    //—settings
    MaPeriod=3
    MaPeriod2=1
    //—end of settings

    once maOpen=Open
    once maClose=Close
    once maLow=Low
    once maHigh=High

    if barindex>0 then
    maOpen=(maOpen[1]*(MAperiod-1)+Open)/MAPeriod
    maClose=(maClose[1]*(MAperiod-1)+Close)/MAPeriod
    maLow=(maLow[1]*(MAperiod-1)+Low)/MAPeriod
    maHigh=(maHigh[1]*(MAperiod-1)+High)/MAPeriod

    haOpen=(ExtMapBuffer5[1]+ExtMapBuffer6[1])/2
    haClose=(maOpen+maHigh+maLow+maClose)/4
    haHigh=Max(maHigh, Max(haOpen, haClose))
    haLow=Min(maLow, Min(haOpen, haClose))
    if (haOpen<haClose) then
    r=0
    g=191
    b=255
    ExtMapBuffer7=haLow
    ExtMapBuffer8=haHigh
    else
    r=255
    g=10
    b=0
    ExtMapBuffer7=haLow
    ExtMapBuffer8=haHigh
    endif
    ExtMapBuffer5=haOpen
    ExtMapBuffer6=haClose

    ExtMapBuffer1=weightedaverage[MAperiod2](ExtMapBuffer7)
    ExtMapBuffer2=weightedaverage[MAperiod2](ExtMapBuffer8)
    ExtMapBuffer3=weightedaverage[MAperiod2](ExtMapBuffer5)
    ExtMapBuffer4=weightedaverage[MAperiod2](ExtMapBuffer6)
    endif
    DRAWCANDLE(ExtMapBuffer3,ExtMapBuffer2,ExtMapBuffer1,ExtMapBuffer4) coloured(r,g,b)

    short = ExtMapBuffer7[1]>ExtMapBuffer8[1] and ExtMapBuffer7[2]<ExtMapBuffer8[2] and ExtMapBuffer7[0]>ExtMapBuffer8[0]
    long = ExtMapBuffer7[1]<ExtMapBuffer8[1] and ExtMapBuffer7[2]>ExtMapBuffer8[2] and ExtMapBuffer7[0]<ExtMapBuffer8[0]

    RETURN long as “long signal”, short as “short signal”

    #225736 quote
    Jean FX
    Moderator
    New

    Simply replace the line:

    DRAWCANDLE(ExtMapBuffer3,ExtMapBuffer2,ExtMapBuffer1,ExtMapBuffer4) coloured(r,g,b)
    par
    DRAWCANDLE(ExtMapBuffer3,ExtMapBuffer2,ExtMapBuffer1,ExtMapBuffer4) coloured(r,g,b) bordercolor(“black”)

    Here it will have a black candlestick border, if you want another colour you will have to modify

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

Modification heikin smooth candles


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
MadFest @madfest Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Jean FX
2 years, 1 month ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 12/20/2023
Status: Active
Attachments: No files
Logo Logo
Loading...