I've goggled extensively and come up empty and was wondering if anyone has come across the following issue.
For Brokers that offer trading on futures, the symbol naming system is like this; #CLK5 which is 'May 2015 Light, Sweet Crude Oil Futures'.
The K5 part of the symbol name changes depending on which delivery date you are looking at, as is the convention with futures. The symbol stops being valid altogether after the delivery date.
What if you wanted your EA to look at the nearest delivery date for Light, Sweet Crude Oil continuously, so that you could trade it continuously as if it were only one instrument, as opposed to a series of expiring different instruments?
How would you code your EA to look for the appropriate symbol?
As always, very grateful for any responses.
They are effectively different instruments, with different price and spread, and they overlap their trading periods. If you need a continuous chart, look for CFD rather than futures.
To add comments, please log in or register