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 CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      51 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      30 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      99 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      177 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      170 views
      0 likes
      Last Post CarlTrading  
      Working...
      X