zeeyeetee: I have a OP_SELLSTOP, how to setup expiration for 15 mins?
The two ways you could do it:
- Just before the OrderSend(), read the current server time with TimeCurrent() and add to it 900 seconds (15min) and use that as your Expiration value.
- Alternatively, place the order without an expiration, then read in its open-time and then add 900 seconds (15min) and then modify the order and set the expiration.
Fernando Carreiro:
The two ways you could do it:
- Just before the OrderSend(), read the current server time with TimeCurrent() and add to it 900 seconds (15min) and use that as your Expiration value.
- Alternatively, place the order without an expiration, then read in its open-time and then add 900 seconds (15min) and then modify the order and set the expiration.
thanks,
it works perfectly
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 have a OP_SELLSTOP, how to setup expiration for 15 mins?
thanks