Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnMouseMove Signature

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

    OnMouseMove Signature

    Has the signature changed for OnMouseMove()? According to the docs ChartAnchor example http://ninjatrader.com/support/helpG...hartanchor.htm

    Code:
    public override void OnMouseMove(ChartControl chartControl, ChartPanel chartPanel, ChartScale chartScale, Point point)
    {
       if (DrawingState == DrawingState.Editing)
       {
          if (MyAnchor.IsEditing)
          {
             //if anchor is editing, update anchor point
             MyAnchor.UpdateFromPoint(point, chartControl, chartScale);
          }
       }
    }
    ...it's expecting a "Point point", however, the signature created in the editor is looking for a "ChartAnchor dataPoint" and throwing this error on this function:
    Code:
    UpdateFromPoint(point, chartControl, chartScale);

    Cannot convert type 'NinjaTrader.NinjaScript.DrawingTools.ChartAnchor' to 'System.Windows.Point'
    Last edited by funk101; 10-02-2015, 08:05 AM.

    #2
    Hello,

    Thank you for the question.

    Unfortunately the link provided did not work so I am unsure of the specific help document you are referring to. Is this the document or is it a different document you had linked? http://ninjatrader.com/support/helpG...ub=OnMouseMove

    When I created a brand new script and viewed the other pages in the help guide for this, I get the following implementation:

    Code:
    public override void OnMouseUp(ChartControl chartControl, ChartPanel chartPanel, ChartScale chartScale, ChartAnchor dataPoint)
    Instead of Point ChartAnchor is used.

    the doc I provided has the incorrect implementation, if the link you provided is not what I had, I would like to get the correct link to report that for changes.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by usazencort, Today, 01:16 AM
    0 responses
    1 view
    0 likes
    Last Post usazencort  
    Started by kaywai, 09-01-2023, 08:44 PM
    5 responses
    603 views
    0 likes
    Last Post NinjaTrader_Jason  
    Started by xiinteractive, 04-09-2024, 08:08 AM
    6 responses
    22 views
    0 likes
    Last Post xiinteractive  
    Started by Pattontje, Yesterday, 02:10 PM
    2 responses
    21 views
    0 likes
    Last Post Pattontje  
    Started by flybuzz, 04-21-2024, 04:07 PM
    17 responses
    230 views
    0 likes
    Last Post TradingLoss  
    Working...
    X