MACD Histogram trading conditions based on 5-minute timeframe

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #201314 quote
    SVKSVK
    Participant
    Junior

    Hi all,

    unfortunately I’m not capable to solve or comprehend MACD histogram so I would appreciate your support or suggestion of different histogram.

    Issue is quite simple and despite reading every english thread about MACD I’m non wiser.

    I’m using 2 time frames 10 sec & 5 min.

    10 sec timeframe shall not trigger buy if 5 minute MACD histogram is lower then previous 5 minute histogram.

    I’m not talking marginal number. Previous histogram value 0.9 – current histogram value 0.5 and buy is still triggred 🙁
    I have tried (5 minute, updateonclose) and without updateonclose without any luck 🙁

    I have following piece of code:

    //MACD Histogram
    MacdInd = MACD[12,26,9](close) > MACD[12,26,9](close)[1]

    Thank you very much for your help

    MACD-Histogram.jpg MACD-Histogram.jpg
    #201393 quote
    JSJS
    Participant
    Master
    Hi @SVK

    Maybe this will help?

     
    DefParam CumulateOrders = False
    
    TimeFrame (5 minutes)
    Ind1 = MACD[x1,x2,x3](close)
    Ind2 = Ind1[1]
    
    TimeFrame(10 seconds)
    If Ind1 > Ind2 then
    Buy 1 contract at Market
    Else
    Sell at Market
    EndIf
Viewing 2 posts - 1 through 2 (of 2 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 Histogram trading conditions based on 5-minute timeframe


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
SVK @svk Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by JSJS
3 years, 11 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 09/24/2022
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...