I still have a few questions, for anyone knowledgeable, not just support staff:
- Everything I've seen appears to be a self-contained strategy with entries and exits. Coming from TradeStation, where I could program separate complex logic for entry orders and exit orders and then add them to a strategy, I'm wondering if I can do that here. Can I have a strategy containing only exit orders and add it to a chart along with another strategy that contains only entry orders? Or do they all need to be mashed into the same module?
- I've been relying on ATM for real-time trading. I know ATM isn't available for backtesting. But surely someone has figured out a way to duplicate this functionality within NinjaScript? Example ATM operations I would need are: enter 3 contracts, 20 tick initial stop, exit 1 contract at a time at 10, 20, 30 tick targets, auto-breakeven+2 ticks stop when reaching 10 tick target. Has anyone done something like that?
- If I have to write it myself, would it be feasible to do it with the managed order coding, or would I need to go with Unmanaged (I dread the bookkeeping code I'd have to write in that case)?
- If I have a SetStopLoss() active for a order for 3 contracts, and I exit one contract, does the active SetStopLoss() change its quantity accordingly without any intervention from me?
- I know orders die at the end of each bar unless I set them to live until cancelled. If I place the same order several times within the same bar as new tick data comes in, does it get replaced or do I need to cancel it myself first?
- I read in the documentation that when an order like EnterLongLimit() is working but unfilled, an opposing order like EnterShortLimit() will be ignored. If my strategy decides to place an order in the opposite direction, would the strategy have to cancel the original order first, even if both orders are generated on different ticks in the same bar?
I'm just trying to get an idea of what's involved with order management while backtesting on NinjaTrader.
-Alex

Comment