MACD in version 10.3

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #129145 quote
    aland
    Participant
    Average

    In the last few hours I tried several MACD codes and indicators using the forum but none of them seem to comply with the IG MACD values

    In the IG charts they show (MACD line minus Signal), but I can’t recreate these values in the code

    What I need is just to know if the histogram is positive or negative (binary parameter)

    this is my last unsuccessful try.

    GRAPH myMACDline-myMACDline[1]
    myMACDline = MACDLine[12,26,9](close)

    This is of course the same:

    myMACD=exponentialaverage[12](close)-exponentialaverage[26](close)

     

    any hints?

    #129177 quote
    GraHal
    Participant
    Master

    Try the link below from Log 204 in the Snippet Library

    https://www.prorealcode.com/topic/hi-im-paul-from-england/page/2/#post-122670

    Snippet Link Library

    aland thanked this post
    #129220 quote
    Nicolas
    Keymaster
    Master

    signal line is the EMA9 of your mymacdline variable.

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

MACD in version 10.3


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
aland @aland Participant
Summary

This topic contains 2 replies,
has 3 voices, and was last updated by Nicolas
5 years, 10 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 04/30/2020
Status: Active
Attachments: No files
Logo Logo
Loading...