Any help ?
I doubt that the symbol's name are picked arbitrarily by a broker.
For sure it's different between brokers but for one broker it should not be a problem, I did it for AMP.
Hi,
I want to implement an automated EA that do rollover contracts few fays before expiration, using symbol name and SYMBOL_EXPIRATION_TIME I know when i decide to rollover, the piece that i'm missing is how to "guess" what is the n next expiry contract name, let each hour I check if I enter to rollover windows that I decide (ex 5 days before expiry time), I close the current positions and orders and I need to know what is the next expiry to the current contacts to re-open the orders/pos.
I can list the what is in the market watch window but I need a way to correlate the current/next contract, it could be done manually by filling a database using all contracts but it's not a very smart way to do it.
Any idea if the next contract can be simply retrieved on various futures (ES, CL, grain, ...)
Thanks
I doubt that the symbol's name are picked arbitrarily by a broker.
For sure it's different between brokers but for one broker it should not be a problem, I did it for AMP.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
I want to implement an automated EA that do rollover contracts few fays before expiration, using symbol name and SYMBOL_EXPIRATION_TIME I know when i decide to rollover, the piece that i'm missing is how to "guess" what is the n next expiry contract name, let each hour I check if I enter to rollover windows that I decide (ex 5 days before expiry time), I close the current positions and orders and I need to know what is the next expiry to the current contacts to re-open the orders/pos.
I can list the what is in the market watch window but I need a way to correlate the current/next contract, it could be done manually by filling a database using all contracts but it's not a very smart way to do it.
Any idea if the next contract can be simply retrieved on various futures (ES, CL, grain, ...)
Thanks