MACD based on Heikin Ashi close

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #136442 quote
    hobby trader
    Participant
    Junior

    Hi,

    Does anyone know of a MACD indicator that is based on HA candle close?

    Thanks

    Steve

    #136450 quote
    robertogozzi
    Moderator
    Master

    There you go:

    once xOpen = open
    xClose     = (open + close + high + low) / 4
    if barindex > 0 then
        xOpen  = (xOpen + xClose[1]) / 2
    endif
    //xLow     = min(low,min(xClose,xOpen))
    //xHigh    = max(high,max(xClose,xOpen))
    //
    ONCE FastAvg = 12
    ONCE SlowAvg = 26
    ONCE SigAvg  = 9
    //
    MyMACD       = ExponentialAverage[FastAvg](xClose) - ExponentialAverage[SlowAvg](xClose)
    MySignalLINE = ExponentialAverage[SigAvg](MyMACD)
    RETURN MyMACD,MySignalLINE,MyMACD - MySignalLINE
    #136455 quote
    hobby trader
    Participant
    Junior

    That was quick! Top man, Thank you

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

MACD based on Heikin Ashi close


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by hobby trader
5 years, 8 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 06/18/2020
Status: Active
Attachments: No files
Logo Logo
Loading...