you cant in Mt4 ! you have to close and open a new one
lyes :
you cant in Mt4 ! you have to close and open a new one
you cant in Mt4 ! you have to close and open a new one
mmm ok thank you.
I have an error message #130 and I don't understand what is it...
I trade on the EUR/USD forex.
if (OrderType()==OP_BUY && OrderSymbol()==Symbol()&& OrdersTotal()==1)
{
OrderClose(OrderTicket(),OrderLots(),Bid,0,Green);
}
ticket=OrderSend(Symbol(),OP_SELL,lots,Bid,3,1.40,1.30,"Ordre Court",0,0,Red);
This mistake comes from the stopprofit and stoploss, but I don't see what. I tries mpany values...
Thanks
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
OrderSelect ( i, SELECT_BY_POS, MODE_TRADES ) ) {if ( OrderSymbol() == Symbol() ) { if (OrderType() == OP_SELL ) { cmd = OP_BUY; // buy // Close sell order OrderClose(OrderTicket(), OrderLots(), Ask, Slippage, Blue); } } } if(cmd==OP_BUY) { // buy if ( OrderSend( Symbol(), OP_BUY, lots, Ask, Slippage, 0, 0, "Opened Buy Order", 0, 0, Orange ) > 0 ) Print ( "Opened Buy Order at ", Ask );