I'm trying to code an EA which opens two separate orders so they can be managed independently (my broker doesn't allow partial scaling in and out of positions).
The order code contains these two lines:
ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage,0,0,"EA v1.0",16384,0,Green);
ticket2=OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage,0,0,"EA v1.0",16384,0,Green);
It seems that the second order doesn't get filled. Am I going about this the wrong way? Thanks!
The order code contains these two lines:
ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage,0,0,"EA v1.0",16384,0,Green);
ticket2=OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage,0,0,"EA v1.0",16384,0,Green);
It seems that the second order doesn't get filled. Am I going about this the wrong way? Thanks!