Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trouble Converting 6.5 code to 7

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

    Trouble Converting 6.5 code to 7

    I get an error on this code when trying to compile under v7 Works fine under 6.5

    int rangeX = ChartControl.GetXByBarIdx(CurrentBar) - (ChartControl.BarSpace/2) ;

    Error Code CS1501

    #2
    Please ensure to check our code breaking changes docs regarding the ChartControl's -

    Contains critical information including but not limited to migration, installation, connections and changes.

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      Please ensure to check our code breaking changes docs regarding the ChartControl's -

      http://www.ninjatrader-support2.com/...ad.php?t=21016
      Read the document, could find no reference to my question.

      Comment


        #4
        You will need to review the section pertaining indicator > overriding the plot methd -

        Code:
         
        x/y positions should now be accessed by this code: 
         
        int x = ChartControl.GetXByBarIdx(BarsArray[0], idx);
        int y = ChartControl.GetYByValue(this, val);

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        599 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        344 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        558 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        557 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X