Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Confirming Ninja Orders

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Confirming Ninja Orders

    I know you can not use the confirm option with Ninja orders due to the blocking. However, there needs to be some way to deal with this.

    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?

    #2
    Thanks for your suggestion. We'll add it to the list.

    Comment


      #3
      I would suggest a that a more flexible approach might be to allow a strategy to define buttons on the associated chart, which would call some method (say OnButtonPressed) with an indication of which button was clicked on.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by cmoran13, Yesterday, 01:02 PM
      0 responses
      31 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      22 views
      0 likes
      Last Post PaulMohn  
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      162 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      95 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      151 views
      2 likes
      Last Post CaptainJack  
      Working...
      X