MACD based on Heikin Ashi close

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

    Hi,

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

    Thanks

    Steve

    #136450 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    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 traderhobby 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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 traderhobby trader
6 years, 3 months ago.

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