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 kinfxhk, 07-13-2026, 10:18 AM
        0 responses
        34 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 09:50 AM
        0 responses
        29 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 07:21 AM
        0 responses
        36 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-11-2026, 02:11 AM
        0 responses
        33 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        143 views
        0 likes
        Last Post SalmaTrader  
        Working...
        X