I would propose having some object that could be polled from the strategy to tell if orders are enabled/disabled asynchronously.
For example there could be a toggle switch on the chart that contained the enable/disable state. So when a setup materializes, the user could enable the trigger if the setup looks valid. This toggle state should be accessible from the NinjaScript as well so it could be disabled after the trade.
Another option is to use a text object on the chart, but currently I dont think there is anyway to querry a user added text object on the chart. If it was possible, then the strategy could querry the text object, and if there enable the trade. The user would have to add the text obj as the setup became valid.
I like the option of an enable toggle switch better.
Is this something that is possible? If not, can it be added in the future?

Comment