Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnMouseUp() usage

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

    OnMouseUp() usage

    Hi

    I'm trying to use OnMouseUp() to trigger an action in a strategy, but I can't get it to compile. I get error CS0115 "no suitable method found to override". I'm obviously missing something simple.

    This custom drawing tool that uses it compiles fine.


    What am I missing? A "using" declaration? Is OnMouseUp() available within the Strategies namespace?

    Here's the code I have in the strategy class:
    Code:
    [SIZE=2]        public override void OnMouseUp( ChartControl chartControl, ChartPanel chartPanel, ChartScale chartScale, ChartAnchor dataPoint )
            {
                Print( "Mouse up event!" );
            }
    [/SIZE]
    Cheers
    Tony

    #2
    Hello Jellybean,

    Thank you for your post.

    OnMouseUp() would not be available in Strategies. You can view what is available in Strategies at the following link: http://ninjatrader.com/support/helpG...s/strategy.htm

    Comment


      #3
      Hello Jellybean,

      Product Management provided some insight here. You could go through the ChartControl in the Strategies:
      Code:
      ChartControl.MouseUp
      Make sure ChartControl is not null first if it was loaded from the Strategies tab for example:
      Code:
      if (ChartControl != null)

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      672 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      379 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      111 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      575 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      582 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X