Replies: 3 comments 2 replies
-
To use pysystemtrade as intended, the solution would be to roll to the contract you actually want to trade. If you don't want to do that for some reason, I think you could also use balance trades. Don't generate any "real" orders, or if instrument orders are already generated, just clear them from the stack. Do a contract balance trade, which will allow you to specify a contact. Then do an instrument balance trade to bring instrument and contract positions back in sync. |
Beta Was this translation helpful? Give feedback.
-
Thanks. When I tried to roll, nothing appeared to happen, but it might take a day I'm not sure. But since I hadn't entered a trade yet I suspect this did nothing. I did a balance trade and now this is showing in the simulation, so I think I'm now on the right track. Thank you for your help. I don't know if there is a better way to handle this; in my case the March contract expires in 4 days and I don't see a point in entering in March and then rolling to May very shortly after. My multiple file will still show the prior month for a few days but will catch up soon. |
Beta Was this translation helpful? Give feedback.
-
Just enter a balance trade then you can specify the contract:
|
Beta Was this translation helpful? Give feedback.
-
Background
I'm running PST using manual trading. I'm able to use IB after the US stock market closes. I am using Barchart for data and manually entering trades. I realize I'm not necessarily using PST the way that it was designed but I'm hopeful that someone can help me find an acceptable work around until I can figure out how to open a second account or some other option that doesn't break the system that I'm already trading (incompatible with ib_insync).
Question:
What is the best way to record a trade in a different month than the simulation uses? For example, if the current month the PST is using for a specific instrument is March and I want to actually enter the trade in May due to volume or open interest or saving on commissions/slippage.
I can use the order stack to make contract orders, and then I can manually fill these orders. If I want to manually fill an order with a different contract month, the "20" option to manually enter a trade doesn't allow me to select a different contract, at least that I'm aware of. Is there a way to do this?
Can I get the fill from IB at the end of the day and then "import" this so PST shows my position in the month that I actually traded?
Thanks for any help.
Beta Was this translation helpful? Give feedback.
All reactions