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 pechtri, 06-22-2023, 02:31 AM
      10 responses
      124 views
      0 likes
      Last Post Leeroy_Jenkins  
      Started by judysamnt7, 03-13-2023, 09:11 AM
      4 responses
      59 views
      0 likes
      Last Post DynamicTest  
      Started by ScottWalsh, Yesterday, 06:52 PM
      4 responses
      36 views
      0 likes
      Last Post ScottWalsh  
      Started by olisav57, Yesterday, 07:39 PM
      0 responses
      7 views
      0 likes
      Last Post olisav57  
      Started by trilliantrader, Yesterday, 03:01 PM
      2 responses
      22 views
      0 likes
      Last Post helpwanted  
      Working...
      X