• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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:
    https://ninjatrader.com/support/help...s/?8_0_0_9.htm

    ...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 mestril, Today, 06:00 AM
      0 responses
      3 views
      0 likes
      Last Post mestril
      by mestril
       
      Started by Goolden, Today, 05:47 AM
      0 responses
      4 views
      0 likes
      Last Post Goolden
      by Goolden
       
      Started by kujista, Today, 12:59 AM
      0 responses
      6 views
      0 likes
      Last Post kujista
      by kujista
       
      Started by Gerik, Today, 12:14 AM
      0 responses
      5 views
      0 likes
      Last Post Gerik
      by Gerik
       
      Started by Bionian, Yesterday, 11:47 PM
      0 responses
      6 views
      0 likes
      Last Post Bionian
      by Bionian
       
      Working...
      X