Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

v8.0.0.9 => DrawingTools.ChartAnchor breaks Draw.Line

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

    v8.0.0.9 => DrawingTools.ChartAnchor breaks Draw.Line

    Hi,

    I am using a simple snippet as follows to track where my SL and TP are set:

    Code:
    if (!Flat && tgtLong != 0)
    			{
    				Draw.Line(this,"TgtLong"+CurrentBar,1,tgtLong,0,tgtLong,Brushes.Green);
    Draw.Line(this,"TgtShort"+CurrentBar,1,tgtShort,0,tgtShort,Brushes.Green);
    Draw.Line(this,"SLLong"+CurrentBar,1,slLong,0,slLong,Brushes.Red);
    Draw.Line(this,"SLShort"+CurrentBar,1,slShort,0,slShort,Brushes.Red);								
    				
    			}
    Since upgrading to 8.0.0.9 my strategy fails with an error "method not found ...ChartAnchor ctor...". I am assuming it relates to the above code and the code-breaking changes around ChartAnchor mentioned here:


    ...but the documentation on Draw.Line hasn't changed. Could someone point me in the right direction?

    Thanks and best regards,
    Frank

    #2
    Hello Frank,

    Thanks for your post.

    We've just released beta 10 last week and you should update and test at beta 10. The bars ago parameter works fine for the examples you are showing. Here is a link to the beta 10 announcement post: http://ninjatrader.com/support/forum...ad.php?t=84041
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Hi Paul,

      The problem seems to be resolved in v8.0.0.10.

      Thanks.
      Frank

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by rtwave, 04-12-2024, 09:30 AM
      2 responses
      20 views
      0 likes
      Last Post rtwave
      by rtwave
       
      Started by tsantospinto, 04-12-2024, 07:04 PM
      5 responses
      67 views
      0 likes
      Last Post tsantospinto  
      Started by cre8able, Today, 03:20 PM
      0 responses
      6 views
      0 likes
      Last Post cre8able  
      Started by Fran888, 02-16-2024, 10:48 AM
      3 responses
      49 views
      0 likes
      Last Post Sam2515
      by Sam2515
       
      Started by martin70, 03-24-2023, 04:58 AM
      15 responses
      115 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X