Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    JimNinjaTrader Customer Service

    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 bmartz, Today, 09:30 AM
      2 responses
      11 views
      0 likes
      Last Post bltdavid  
      Started by f.saeidi, Today, 11:02 AM
      1 response
      3 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by geotrades1, Today, 10:02 AM
      4 responses
      12 views
      0 likes
      Last Post geotrades1  
      Started by rajendrasubedi2023, Today, 09:50 AM
      3 responses
      16 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by lorem, Today, 09:18 AM
      2 responses
      11 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X