I have try your code, here the result when i backtest on EURUSD M30 and setting EA TimeFrame H4 [br] if I use the code you gave, EA OP Buy or Sell 8 candles after the Buy signal or Sell signal appears and this happens in all OP. but if i backtest on EURUSD M30 and setting EA TimeFrame current everything works fine. anyone can help?mrtools wrote: Sat Jan 25, 2020 4:07 am Maybe try
Code: Select all
double Value01 = iCustom(_Symbol,TimeFrame,"HMA Histo 1.01 (mtf + alerts + lines)", 0, HMAPeriod, HMAPrice, HMAMethod, HMASpeed, HistoWidth, UpHistoColor, DnHistoColor, alertsOn, alertsOnCurrent, alertsMessage, alertsSound, alertsEmail, alertsPushNotif, verticalLinesVisible, linesOnNewest, verticalLinesID, verticalLinesUpColor, verticalLinesDnColor, verticalLinesStyle, verticalLinesWidth, 0, 1); double Value11 = iCustom(_Symbol,TimeFrame,"HMA Histo 1.01 (mtf + alerts + lines)", 0, HMAPeriod, HMAPrice, HMAMethod, HMASpeed, HistoWidth, UpHistoColor, DnHistoColor, alertsOn, alertsOnCurrent, alertsMessage, alertsSound, alertsEmail, alertsPushNotif, verticalLinesVisible, linesOnNewest, verticalLinesID, verticalLinesUpColor, verticalLinesDnColor, verticalLinesStyle, verticalLinesWidth, 1, 1); double Value02 = iCustom(_Symbol,TimeFrame,"HMA Histo 1.01 (mtf + alerts + lines)", 0, HMAPeriod, HMAPrice, HMAMethod, HMASpeed, HistoWidth, UpHistoColor, DnHistoColor, alertsOn, alertsOnCurrent, alertsMessage, alertsSound, alertsEmail, alertsPushNotif, verticalLinesVisible, linesOnNewest, verticalLinesID, verticalLinesUpColor, verticalLinesDnColor, verticalLinesStyle, verticalLinesWidth, 0, 2); double Value12 = iCustom(_Symbol,TimeFrame,"HMA Histo 1.01 (mtf + alerts + lines)", 0, HMAPeriod, HMAPrice, HMAMethod, HMASpeed, HistoWidth, UpHistoColor, DnHistoColor, alertsOn, alertsOnCurrent, alertsMessage, alertsSound, alertsEmail, alertsPushNotif, verticalLinesVisible, linesOnNewest, verticalLinesID, verticalLinesUpColor, verticalLinesDnColor, verticalLinesStyle, verticalLinesWidth, 1, 2);
Attachments forums
Re: HMA - Hull Moving Average Indicators MT4
krikil86, Sat Jan 25, 2020 10:52 am