Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cancel chart trader button click

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

    Cancel chart trader button click

    Hi,

    Is there a way to Cancel a chart trader button click?

    I can add an additional event to the button click to check my own rules for entering a trade and that works fine, but how to cancel the original click of the button if the rules are not met without affecting normal operation? I know you can cancel click events of buttons, but in this case, I'm not sure the original event can/should be overridden? I'd like to use the original buttons, rather than adding more buttons, if possible.

    Thanks for any pointers.

    #2
    Hello pjsmith,

    Thanks for your post.

    As we would not own the original event method for submitting orders in Chart Trader and cannot unsubscribe that method from the click event, I would suggest removing the button from the grid and replacing it with your own button that uses your own click event.

    Let me know if you are having trouble setting something like that up.
    Last edited by NinjaTrader_Jim; 11-16-2021, 08:30 AM.

    Comment


      #3
      An idea I'd not thought of yet! Thank you. Sounds like a reasonable solution.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      42 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      29 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      46 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      38 views
      0 likes
      Last Post CarlTrading  
      Working...
      X