MACD divergence strategy

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #211483 quote
    8278sv
    Participant
    New

    Hi

    I’m still quite new to the world of prorealtime and was hoping someone could help. I’m trying to code a strategy based on macd divergence. The default one does not correspond to what I was expecting.  If you see attached I was expecting bars to show up on corresponding to the circles – both sell signals. Is there a bespoke code for macd divergence?

    Screenshot-2023-03-13-at-14.27.53.png Screenshot-2023-03-13-at-14.27.53.png
    #211485 quote
    robertogozzi
    Moderator
    Master

    You can search this forum for the words DIVERGENCE, DIVERGENCES or MACD. You’ll find some, but I fear none will match what your eyes SEE on the chart.

    Divergences can be programmed based on some lookback periods, say 20 or 30 etc…, they will all perform differently despite the same code is running.

    8278sv thanked this post
    #211511 quote
    8278sv
    Participant
    New

    How hard would it be to take the macd divergence mt5 code and convert it to prorealcode??

    https://www.mql5.com/en/code/1806

    #211530 quote
    robertogozzi
    Moderator
    Master

    I don’t know, as I can’t convert that language. Request a conversion at https://www.prorealcode.com/free-code-conversion/.

    8278sv thanked this post
    #217772 quote
    ProRealAlgos
    Participant
    Junior

    How hard would it be to take the macd divergence mt5 code and convert it to prorealcode??

     

    I’m attaching here a SMACD Divergence indicator you can use. Just add it to your price chart or system code and adapt the parameter values for your timeframe and index.

    SMACD.itf SMACD-Divergence.itf
    #217784 quote
    robertogozzi
    Moderator
    Master

    @ProRealAlgos.com

    please do not attach HIDDEN CODE. This forum is devoted to sharing knowledge. Thank you 🙂

    #217793 quote
    ProRealAlgos
    Participant
    Junior

    As I’ve seen loads of strategies on this forum that include hidden indicators I thought it was ok.
    But duly noted, I will not be sharing any indicators with hidden code even though it may be a very useful trading tool like this SMACD divergence indicator.

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

MACD divergence strategy


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
8278sv @8278sv Participant
Summary

This topic contains 6 replies,
has 3 voices, and was last updated by ProRealAlgos
2 years, 7 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 03/13/2023
Status: Active
Attachments: 3 files
Logo Logo
Loading...