2 Załącznik (-i) Cześć,
Mała pomoc tutaj! Proszę!
Mój ea działa dobrze na walutach, ale ma problem z WTI.
To po prostu powtórz błąd 131 w backtestingu bez oczywistych powodów!
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, NormalizeDouble (price, Digits), Slippage, 0,0,, MagicNum, 0, Gold);
if (ticketgt; 0)
{
Drukuj (EA Open Order Succeed. Symbol () M Okres ());
}
else Drukuj (Błąd otwierania zlecenia Err:, GetLastError ());
}
Dołączono EA
https://www.forex-instant.com/attach...8194386128.mq4