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 Hwop38, 05-04-2026, 07:02 PM
        0 responses
        161 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        308 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        245 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        349 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        179 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X