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 rocketman7, Today, 01:00 AM
      0 responses
      1 view
      0 likes
      Last Post rocketman7  
      Started by wzgy0920, 04-20-2024, 06:09 PM
      2 responses
      27 views
      0 likes
      Last Post wzgy0920  
      Started by wzgy0920, 02-22-2024, 01:11 AM
      5 responses
      32 views
      0 likes
      Last Post wzgy0920  
      Started by wzgy0920, 04-23-2024, 09:53 PM
      2 responses
      74 views
      0 likes
      Last Post wzgy0920  
      Started by Kensonprib, 04-28-2021, 10:11 AM
      5 responses
      193 views
      0 likes
      Last Post Hasadafa  
      Working...
      X