if ( signal=="sell" && PositionsTotal() < 1 && OrdersTotal() < 1 ) request.action =TRADE_ACTION_PENDING; // type of trade operation request.symbol =_Symbol; // symbol request.volume =2; request.type =ORDER_TYPE_SELL_STOP; request.sl = NormalizeDouble(pricedata[1].high + sll * _Point,_Digits); request.tp = NormalizeDouble(pricedata[1].low - tpp * _Point,_Digits); request.price =NormalizeDouble(pricedata[1].low - 5 * _Point,_Digits); // price for opening request.deviation=1; // allowed deviation from the price request.magic =magic; OrderSend(request,result);The if statement only effects the action. Enclose action through send with braces.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Ordersend is keep opening way to many orders at once (like 100-200 orders ), How can i just make one order per signal ?!