Quote from unco:
Hi Tom,
I trade MXN spot sometimes, liquidity is poor outside US session (i'm based in Europe) and it can be difficult to find a reasonable spread. I suppose it's the same for the future. See attached chart (time is UK time) Orange dots are average volume.
I'm not sure to understand why you are not trading U0 or V0 for nrg contracts. Test something you already know? (poor slippage)
. However I understand than rolling every month is a pain in the @@@...
Very interesting thread !
Hi unco,
Thanks a lot for the compliments and your interesting question. Thanks also for the nice info on MXN.
Besides test purposes you mention (I have changed the algorithm to compute LMT prices of new orders), I also sort of wished to introduce "gradually" the readers to the various aspects of this approach. Strategy first, details (like rollover mechanisms) later.
I will show later how the robot does the rollover. It's not a pain in this case ;-)
The user can decide when and how to perform it, but for the rest it's completely automatic.
What the trader will see is a continuous price curve with a vertical line indicating where the rollover happened. All trading information
is "transferred" to the new instrument and the old one is closed.
The Rollover works as follows. Assume we are rolling over one of those energy futures instruments from December 2010 to January 2011.
The user has a period during which to perform the rollover (say 15-20 days): he would have various possibilities:
<b>NEW SESSION</b> (this is not a "rollover", clearly)
- If the trader thinks he wishes to close the whole session (PNL close to Realized), he can do it and restart a new folio.
<b>ROLLOVER of some instruments</b>
- If there are no positions open or little money invested, an instrument can just be dismissed. Opening a new one (new instruments can be added while trading).
(this is not a "rollover")
- If an instrument is "caught" in a situation where it's "investing" and we wish to continue trading it, without taking the losses, the bot does an "automatic rollover". In such a case it takes all the "trading information" of December instrument and literally <b>"clone"</b> it into the January instrument.
Then the 2 price curves are literally <b>"joined"</b> on the January instrument tickdata display (with a thick vertical line showing the "rollover instant"). At this point December contract is closed and trading continues on January contract, "as if" nothing happened (clearly we spend a little in commissions). This way, The possible "loss" due to closing (stopping) the open positions on December
will be "recovered" when January contract has a reversal, due to the fact that these positions are "reopened" at a further down (buys) or up (sells) location.
Hope this description is understandable. Anyway I will show later how the rollover works in practice. Let me know if this sounds reasonable.
Tom