Maybe this EA will help, it's using the trend buffer but in the hull variation it's buffer # 3, like you said in the hull histo the trend buffer is number 4 and 1 for green and -1 for red. Also another way to code it, is the histo version is using Hull slope, similar to this EA. Hope this helps!thangnguyen3d wrote: Thu Nov 26, 2020 3:30 am
Hi MrTools,
I am new to MQL4 and trying to code an EA that uses your "HMA Histo alerts" as a signal to trigger an order.
I want to read the trend buffer from the indicator but it returns "zero divide error".
As I understand from your mq4 file, the variable "trend" is in buffer 4. and the value = 1 when the histogram shows green. and -1 when the histogram shows red. (correct me if I am wrong)
so I am trying to read the trend value of the previous candle using this codeCan you please help me to correct it.Code: Select all
int trend = iCustom(NULL,PERIOD_H1,"HMA Histo alerts",PERIOD_H1,0,0,0,0,0,clrNONE,clrNONE,0,0,0,0,0,0,4,1);
Appreciate your help, sir.
Attachments forums
Re: HMA - Hull Moving Average Indicators MT4
mrtools, Thu Nov 26, 2020 4:01 am