Ticket = OrderSend(Symbol(), OP_BUYSTOP, Lots, NormalizeDouble(Open[x] + (2 * Point), Digits), Slippage, StopLossLevel, TakeProfitLevel,....
Ticket = OrderSend(Symbol(), OP_SELLSTOP, Lots, NormalizeDouble(Open[x] - (2 * Point), Digits), Slippage, StopLossLevel, TakeProfitLevel,....
where [x] may be:
0 = Current Open bar
1 = Previus Open bar
etc....
and
you can use OP_BUY and OP_SELL only for send market order....if you send order at for example Open[x] + (2 * Point), you must use OP_BUYSTOP or OP_SELLSTOP
thank I did, and now I want time expiration is 1 hour
Ticket = OrderSend(Symbol(), OP_BUYSTOP, Lots, NormalizeDouble(Open[x] + (2 * Point), Digits), Slippage, StopLossLevel, TakeProfitLevel,"cmt",MagicNumber,TimeCurrent()+3600,Red);
I use TimeCurrent()+3600 is right because I read in document this order calculates in second time so (1 hour = 3600 s).
And I want to backtest data, so traders can tell me "Configuration PC system" to play backtest: OS Win7 64bit or 32bit, RAM .... CPU ..... in MQL4. Is there web or software to do that ?
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
Hi, traders
I build EA with OrderSend like this