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
      5 responses
      22 views
      0 likes
      Last Post trilliantrader  
      Started by Davidtowleii, Today, 12:15 AM
      0 responses
      3 views
      0 likes
      Last Post Davidtowleii  
      Started by guillembm, Yesterday, 11:25 AM
      2 responses
      9 views
      0 likes
      Last Post guillembm  
      Started by junkone, 04-21-2024, 07:17 AM
      9 responses
      70 views
      0 likes
      Last Post jeronymite  
      Started by mgco4you, Yesterday, 09:46 PM
      1 response
      14 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Working...
      X