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 sjsj2732, Yesterday, 04:31 AM
      0 responses
      39 views
      0 likes
      Last Post sjsj2732  
      Started by NullPointStrategies, 03-13-2026, 05:17 AM
      0 responses
      290 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      289 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      135 views
      1 like
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      96 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Working...
      X