zeeyeetee:
Hi,
I'm new using MQL4,
for instance, current gold price is 1200, I would like to place an sell order,(maybe called pend order), when the price going down to 1190, should I use ordersend, OP_SELLLIMIT or OP_BUYLIMIT or OP_BUYSTOP or OP_SELLSTOP
thanks in advance.
OP_SELLSTOP
Keith Watford:
thanks,
OP_SELLSTOP
Jozsef Bognar:
thanks, i've collected your graphic,
I've got OrderSend Error: 3 with following code when doing the backtesting, could you please help me again. thanks ticketSell = OrderSend(NULL,OP_SELLSTOP, lots, SellPrice,100, SellPrice+stoploss*Point, SellPrice-takeprofit*Point,"Sell Trade",magic, clrRed); if(ticketSell < 0) { Alert("OrderSend Error: ", GetLastError()); } else { Alert("Order Sent Successfully, Ticket # is: " + string(ticketSell)); }

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
Hi,
I'm new using MQL4,
for instance, current gold price is 1200, I would like to place an sell order,(maybe called pend order), when the price going down to 1190, should I use ordersend, OP_SELLLIMIT or OP_BUYLIMIT or OP_BUYSTOP or OP_SELLSTOP
thanks in advance.