Timing a close order - Forex

tea42

Junior member
Messages
10
Likes
0
Is it feasible to automate a closing order, eg 1 hour later than the original opening trade ? Can this be done with a ) a spread betting firm, b) other types of forex broker ?
 
If you want to use MQL4 look at the OrderOpenTime() function, add the relevant number of seconds to the return value and when that time arrives call OrderClose().

For other platforms it depends on what automation facilities are available. Most spread betting firms do not seem to keen on providing facilities for automated trading.
 
This begs the question - WHY?
I wish to minimise the time spent waiting for the intended short-term trade to develop its potential without keeping me at the computer, or having to rendez-vous with the trading system at what might be a difficult time, eg watching out for the teatrolley or its metaphorical equivalents.
I would not be happy doing this too often in thin or weak markets for obvious reasons .
 
If you want to use MQL4 look at the OrderOpenTime() function, add the relevant number of seconds to the return value and when that time arrives call OrderClose().

For other platforms it depends on what automation facilities are available. Most spread betting firms do not seem to keen on providing facilities for automated trading.

Thank you , GC1.
 
Top