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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        78 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        40 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        63 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        63 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        54 views
        0 likes
        Last Post CarlTrading  
        Working...
        X