PositionUpdate
<< Click to Display Table of Contents >> PositionUpdate |
PositionUpdate can be used for subscribing to position update events.
Note: Remember to unsubscribe if you are no longer using the subscription.
PositionUpdate
/* Example of subscribing/unsubscribing to position update events from an Add On. The concept can be carried over to any NinjaScript object you may be working on. */ public class MyAddOnTab : NTTabPage |
Tip: The core MarketPosition e.Position is considered flat when Operation.Remove is seen, thus any related tracking in your logic you want to trigger or update should be aware. An Operation.Update would be seen if there was no flat state in between, i.e. on a reverse of the position. |