Maybe a lot size of 0.1 is not allowed by the broker on UK100
GumRai:
Maybe a lot size of 0.1 is not allowed by the broker on UK100
Thanks for letting me realise this GumRai. I see on specifications the minimal lot size is 1.0 for UK100.
Maybe a lot size of 0.1 is not allowed by the broker on UK100
// Sell order condition if(close < ma && sellCount == 0 && gSellTicket == 0) { // Close buy order for(int order = 0; order <= OrdersTotal() - 1; order++) { bool select = OrderSelect(order,SELECT_BY_POS); if(OrderType() == OP_BUY && OrderMagicNumber() == MagicNumber && select == true) { // Close order bool closed = OrderClose(OrderTicket(),OrderLots(),Bid,Slippage,clrRed); if(closed == true) { gBuyTicket = 0; order--; } } } // Open sell order gSellTicket = OrderSend(_Symbol,OP_SELL,LotSize,Bid,Slippage,0,0,"Sell order",MagicNumber,0,clrRed); gBuyTicket = 0;
Hi. In the block //sell order condition, you put "gBuyTicket = 0;". Why do you put it back again "gBuyTicket = 0;" in the block // open sell order? Would not it be enough to put "gBuyTicket = 0;" in the block // open sell order? Thank you very much.

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
Why in the following code do I get OrderSend error 131 on UK100 but not on EURUSD?