Hello,
just a little help here! please!
My ea works fine on currencies but have difficulty with WTI.
It simply repeat error 131 in backtesting without any obvious explanations!
Void DoOpenOrders(int orderType,double price)
//-------------
if(! AllowEAOpenOrders) return(0);
if(GetOrdersTotal(orderType)gt;0) return(0);
if(! IsTradeAllowed()) return(0);
//int SLpoint=k_SL*ATR;
double lots=GetLots();
string orderComment=DoubleToStr(lots,GetL());//#29992;#20110;#24179;#21322;#20179; =GetLots()
//if(orderType==OP_BUY) price=Ask;
//else if(orderType==OP_SELL) price=Bid;
//---------
int ticket=OrderSend(Symbol(),orderType,lots,Normalize Double(price,Digits),Slippage,0,0,,MagicNum,0,Gold );
if(ticketgt;0)
Printing (EA Open Order Succeed. Symbol() M Period());
else Printing (Error opening order Err:,GetLastError());
EA attached
https://forexintuitive.com/attachmen...8194386128.mq4