Difficult to see the code …. Post it correctly
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
I try to open orders in the same time (Buy and BuyLimit),but after second positions , buylimit sending does not work.Works only a Buy order. That is mean buycount >buylimitcount , but the point its buycount = buylimit in the first time Please , can you some one help me, where is the mistake ?
This is my code :
some code
if(Ask>=NextBuyPrice)
if(signal=="buy")
{
int buyticket= OrderSend (_Symbol,OP_BUY,0.01,Ask,3,Ask-1000*_Point,Ask+1000*_Point,NULL,0,0,Green);
int buyticket1=OrderSend(_Symbol,OP_BUYLIMIT,0.01,Ask-(countBuyLimitPosition()*200*_Point)-((countBuyLimitPosition()+1)*400*_Point),0,Ask-1000*_Point,Ask+1000*_Point,NULL,0,0,Green);
NextBuyPrice=Ask+200*_Point;
}
Why buyticket1 works perfectly only for two positions, and after that its gone.... see the picture