Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trigger a indicator by clicking side button in my mouse, instead of middle boutton

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

    Trigger a indicator by clicking side button in my mouse, instead of middle boutton

    Hi team,

    I am trying to modify an indicator script of a risk ruler tool (https://ninjatraderecosystem.com/use...oad/riskruler/). Instead of clicking my mouse's middle button, I would like to trigger the risk ruler by clicking the side button of my mouse (attached below).

    From the old script, I think the trigger is the line "if (e.MiddleButton == MouseButtonState.Pressed)". How should I update it so that the indicator trigger could change to the side button? In other words, has Ninjatrader defined my side button so that I could replace the line above directly? Thanks.

    Click image for larger version

Name:	image.png
Views:	126
Size:	139.0 KB
ID:	1225128

    #2
    Hello morong0414,

    Thanks for your post.

    This is not a NinjaScript item so it would not be documented in the help guide. This is also not something that NinjaTrader manages, it is part of the WPF / C# framework.

    On the publicly available MSDN documentation linked here you could find information about the mouse button state enum: https://docs.microsoft.com/en-us/dot...tframework-4.8

    The items you see in that documentation should be able to be used with the WPF controls in NinjaTrader.

    Please let me know if I may be of additional assistance.​
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by wzgy0920, 04-20-2024, 06:09 PM
    2 responses
    26 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, Yesterday, 09:53 PM
    2 responses
    49 views
    0 likes
    Last Post wzgy0920  
    Started by Kensonprib, 04-28-2021, 10:11 AM
    5 responses
    192 views
    0 likes
    Last Post Hasadafa  
    Started by GussJ, 03-04-2020, 03:11 PM
    11 responses
    3,234 views
    0 likes
    Last Post xiinteractive  
    Working...
    X