Austin, TX
Experience: Advanced
Platform: TradeStation
Trading: Futures
Posts: 839 since Mar 2011
Thanks Given: 124
Thanks Received: 704
|
Here's the issue.
I'm starting to get into inter-day trading of commodity futures.
I'm using automated trading strategies (ATS).
I need a clever way to manually (or automatically) exit a current position if the current contract relinquishes volume superiority to the new contract.
Once that happens, I will manually re-enter the position on the new contract. On the settings tab, I can instruct TS to "adopt real world position" and manage the order from that point on.
The only problem is that the previous position that was prematurely exited (due to rollover) had an entry point and a trade duration history that's lost in this swap over.
Most of my strategies utilize multiple exit orders....some of which feature activation levels/thresholds.
In essence..."If maxpositionprofit > threshold, then begin...."
Once I manually enter the new position and enable the ATS, it will adopt and manage the new position (on the new contract). However, I'd like it to manage the position with the old entry point to reference so that some of these activation criteria for exit features are in play. (i.e. if my old position was up 150 ticks, and I have a trailing stop that activates at 100 ticks, then I'd like my new position on the new contract to immediately adopt a trailing stop, not wait for the new strategy to reach the threshold again).
So, issue A) Identifying newer contract volume superiority and liquidating current position.
Issue B) Referencing the "old" position entry point to manage the trade from that point on.
Because I'm manually entering the new position (on a new chart/symbol) it's not unreasonable to have to manually enter the old entry price into an input field.
The code would have to be boolean, where if no entry price was entered into the input field, the ATS would operate normally as if every trade were a fresh/new entry.
Any ideas would be a great help.
As it stands now, if I'm trading with extended positions, I have to manually struggle through the rollover trades until the trade is complete and out of the way then start the ATS fresh. That's not such a big deal, except my exit management tends to be pretty complex and CL can move so fast it's tough to keep up with calculations....
Automating will help to ensure that my live-forward performance more closely matches my strategy performance during continuous symbol backtests.
"A dumb man never learns. A smart man learns from his own failure and success. But a wise man learns from the failure and success of others." |
|