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 chbruno, Today, 04:10 PM
      0 responses
      3 views
      0 likes
      Last Post chbruno
      by chbruno
       
      Started by josh18955, 03-25-2023, 11:16 AM
      6 responses
      436 views
      0 likes
      Last Post Delerium  
      Started by FAQtrader, Today, 03:35 PM
      0 responses
      6 views
      0 likes
      Last Post FAQtrader  
      Started by rocketman7, Today, 09:41 AM
      5 responses
      19 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by frslvr, 04-11-2024, 07:26 AM
      9 responses
      127 views
      1 like
      Last Post caryc123  
      Working...
      X