Hello,
Please can anyone help fix my EA code I am trying to build, below are errors I am getting when running backtest:
'SymbolInfoInteger' - no one of the overloads can be applied to the function call Moving Average.mq5 40 8
could be one of 2 function(s) Moving Average.mq5 40 8
built-in: long SymbolInfoInteger(const string,ENUM_SYMBOL_INFO_INTEGER) Moving Average.mq5 40 8
built-in: bool SymbolInfoInteger(const string,ENUM_SYMBOL_INFO_INTEGER,long&) Moving Average.mq5 40 8
SymbolInfoInteger(_Symbol, SYMBOL_VOLUME_STEP, volumeDigits)
SymbolInfoDouble(_Symbol, SYMBOL_VOLUME_STEP, volumeDigits)
double volumeDigits; if(!SymbolInfoDouble(_Symbol, SYMBOL_VOLUME_STEP, volumeDigits)) return(0.0); // Return 0 if SymbolInfoInteger fails double lot = NormalizeDouble(LotSize, (int)(1/volumeDigits));
Appreciate the help.
For some reason, no trades are opening.
Please advise what am I missing from this code to achieve the below:
Entry Criteria:
Buy position - when candle closes above 89 SMA.
Sell position - when candle closes below 89 SMA.
Exit Criteria:
Buy position - when candle closes below 89 SMA.
Sell position - when candle closes above 89 SMA.
Compatible on MT5 for micro lots.
For some reason, no trades are opening.
Please advise what am I missing from this code to achieve the below:
Entry Criteria:
Buy position - when candle closes above 89 SMA.
Sell position - when candle closes below 89 SMA.
Exit Criteria:
Buy position - when candle closes below 89 SMA.
Sell position - when candle closes above 89 SMA.
Compatible on MT5 for micro lots.
It placed a few trades but not much (about 2). If the conditions to place a trade occurs in the first tick of the forming candle it would place a trade. Remove this condition to get it functioning as intended,
if(rt[1].tick_volume>1)
return;
from both the CheckForOpen() and CheckForClose()
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
Please can anyone help fix my EA code I am trying to build, below are errors I am getting when running backtest:
'SymbolInfoInteger' - no one of the overloads can be applied to the function call Moving Average.mq5 40 8
could be one of 2 function(s) Moving Average.mq5 40 8
built-in: long SymbolInfoInteger(const string,ENUM_SYMBOL_INFO_INTEGER) Moving Average.mq5 40 8
built-in: bool SymbolInfoInteger(const string,ENUM_SYMBOL_INFO_INTEGER,long&) Moving Average.mq5 40 8