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 Hwop38, 05-04-2026, 07:02 PM
      0 responses
      147 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      299 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      243 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      341 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      173 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X