Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Loop MarketDataEvents

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

    #16
    Hi,

    I got that working so far, problem is the functionality is confilcting with other mouse related functions, for example opening the right click menu when using the right mouse button, or selecting chartobjects by clicking the left button. besides that, i get an error from time to time, which disables the normal functionality, showing a little sign at the location of the cursor and the selection of chartobjects is disabled. How can i get the functionality to trigger only, clicking the left button, when no chart object is or can be selected and not to interfere with other functionalities?

    thanks

    Comment


      #17
      Hello keepsimple,

      By using ChartPanel.MouseLeftButtonDown instead of ChartPanel.MouseDown you can prevent the right-click from triggering this method.

      However, any objects on the chart will be part of the ChartControl and will trigger the method when any object is clicked. As this is a generic event, this may not be possible to do. (You could look to see if any bar or object is covering that x and y position based on the price of that bar or drawn object)
      Chelsea B.NinjaTrader Customer Service

      Comment


        #18
        Thanks,

        used DoubleClick, no issues till now.

        Regards

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by rocketman7, Today, 02:12 AM
        0 responses
        5 views
        0 likes
        Last Post rocketman7  
        Started by dustydbayer, Today, 01:59 AM
        0 responses
        1 view
        0 likes
        Last Post dustydbayer  
        Started by inanazsocial, Today, 01:15 AM
        0 responses
        4 views
        0 likes
        Last Post inanazsocial  
        Started by trilliantrader, 04-18-2024, 08:16 AM
        5 responses
        22 views
        0 likes
        Last Post trilliantrader  
        Started by Davidtowleii, Today, 12:15 AM
        0 responses
        3 views
        0 likes
        Last Post Davidtowleii  
        Working...
        X