In AutoTrading is a phantom (dummy) contract and a live (replay) contract possible?
I've played with a number of bots, mostly simple SAR ones that do not make money, but they still show a positive # of ticks on a high 80% of trades before moving adversely. I.e., very few trades are entered at the top or bottom of the move (except in the worst chop). So naturally I add a target and stop loss to catch the initial surge and limit my downside. But then, of course, the simple algo increases the total number of trades, and I am worse off than I started.
So my question is, can a bot have that first contract not actually trade live (or replay), but be used as a signal to the second contract to enter live (replay), the second contract having the stop loss/target requirements on it, but the second contract, after closing out, would not take another action, until the first contract signaled it again?
Is this a common mis-perception of trade analysis or am I on to something here?
The following 2 users say Thank You to rpm123 for this post:
I do it in Sierra Chart, so I'm pretty sure you can do it in Ninja. I just create a separate calculation with a virtual position using natural entries and exits and control the units with a series of if statements then make my entry the same as the virtual entry but exit on fixed stops and targets.
I have sort of done this. My development stuff tests its own performance using "internal trades." I wanted to be able to invoke OnBarUpdate from within the strategy without potentially actually initiating a trade.
Far from elegant, I ended up creating algorithms parallel to the commonly-called structures in NT (such as Performance and Position). In NT you have Position.MarketPosition types. Essentially, I added a new type myInternalPositon.myInternalPosition type that declares Flat, Long, and Shrot positions for the internal/virtual trades. Doing this, writing stop and target catch logic for the internal trades, and writing a wrapper around OnBarUpdate enables the strategy to backtest and optimize itself.
With the same logic, you could by default operate in the internal/virtual mode. Once you hit a certain success criteria, you could automatically switch on for real.
You can do it in NT, it just is not elegant.
The following 2 users say Thank You to serac for this post:
I can do this using one strategy as a "master trader" placing sim trades and another as the "slave trader" placing sim or live trades. So for every strategy you would have two running at once, one controlling the other.
If anyone is interested PM me to discuss payment.
The following user says Thank You to MrYou for this post: