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 AaronKoRn, Today, 09:49 PM
    0 responses
    1 view
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Today, 08:42 PM
    0 responses
    6 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Today, 07:51 PM
    0 responses
    8 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,975 views
    3 likes
    Last Post jhudas88  
    Started by rbeckmann05, Today, 06:48 PM
    0 responses
    9 views
    0 likes
    Last Post rbeckmann05  
    Working...
    X