Correct, that would be a case where this may be used. If you plan to use NinjaScript properties and you are not specifically inside one of the NinjaScript data events (OnMarketData, OnBarUpdate, OnMarketDepth) you need to use this. The help guide example shows a timer which is another case but is more complex of an example, you mainly just need what I had provided to surround your code when you use it somewhere that's not market data driven.
If the event handler you are referring to is also where you want to collect the price/submit the order, that would be a good place for surrounding the code with the Trigger
I look forward to being of further assistance.
Comment