Using the Performance object is useful to monitor overall trade performance of a strategy, in particular for halting trading in the event a maximum profit or loss is triggered. This works well for orders submitted directly from Ninja Script but it does not track performance of Atm strategy positions that are created by a NinjaScript strategy. Sure, there are the following methods to track individual Atm performance:
- GetAtmStrategyUnrealizedProfitLoss(string AtmStrategyId)
- GetAtmStrategyRealizedProfitLoss(string AtmStrategyId)
Given the continued strong interest in bringing Atm functinality within NinjaScript despite the availablility of more advanced approaches, it would be most useful to have the overall PnL tracking capability for Atm orders be at parity with those methods already available for ATI orders and Ninja Script non-Atm orders.
Comments (including alternative workarounds) by Ninja Support or other users are most welcome. Thanks for listening.
Whitmark
Comment