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 CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        53 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        35 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        103 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        182 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        171 views
        0 likes
        Last Post CarlTrading  
        Working...
        X