2 첨부 파일 안녕하세요,
여기 좀 도와주세요! 부디!
내 ea는 통화로 잘 작동하지만 WTI에는 어려움이 있습니다.
분명한 설명없이 백 테스팅에서 단순히 오류 131을 반복합니다!
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)
인쇄 중 (EA 오픈 주문 성공 심볼 () M 마침표 ());
else 인쇄 오류 (Error opening order Err :, GetLastError ());
EA 첨부
https://www.koreaforex.kr/attachment...8194386128.mq4