So, I've created a strategy that only fires when flat. Only problem is that Position.MarketPosition reflects ONLY on a position that the strategy has created!. In other words, If I enter a position manually, the strategy wont pick it up!.
Ive tried several methods to pick up the current position of the instrument that the strategy is running on:
Positions (doesn't work)
Accounts.Positions (returns all positions of all accounts)
It seems as though Instrument.Position is what I would need, but does that exist?, or is there another method anyone else has used to find the position of the current instrument of the strategy, without being triggered by the strategy itself?
A classical rookie fault. You are trying to mix a discrete == unmanaged approach with a standard NT strategy == managed approach.
For sorting it out start with NinjaTrader Version 7 . If you still want to go on with unmanaged positions that - from the NT point
of view - drop from anywhere into the account, you will have to write your own syncs. For that start with NinjaTrader Version 7 .
P.S.: In the FIO download section you find additional order & position management examples.
Last edited by choke35; August 26th, 2016 at 05:07 PM.