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 trilliantrader, 04-18-2024, 08:16 AM
      4 responses
      18 views
      0 likes
      Last Post trilliantrader  
      Started by mgco4you, Today, 09:46 PM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by wzgy0920, Today, 09:53 PM
      0 responses
      9 views
      0 likes
      Last Post wzgy0920  
      Started by Rapine Heihei, Today, 08:19 PM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by Rapine Heihei, Today, 08:25 PM
      0 responses
      10 views
      0 likes
      Last Post Rapine Heihei  
      Working...
      X