SVKParticipant
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
JSParticipant
Senior
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