Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ChartControl error in migration from 6.5 to 7.0

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

    ChartControl error in migration from 6.5 to 7.0

    I was trying to convert a NT6.5 indicator to NT7 and ran into a problem. The following code is not recognised in NT7

    int
    leftMostPos = ChartControl.GetXByBarIdx(sbarNum) - halfBarWidth ;

    The error I get is:

    No overload for method 'GetXByBarIdx' takes '1' argument.

    Anyone have any ideas how to fix?

    thanks

    #2
    Unfortunately the method your are referring to was not supported with NT6.5 nor is it supported with NT7.

    Hint: Searching the forum for that method might help.

    Comment


      #3
      I searched for ChartControl in the forum and found 131 related posts mentioning this topic. Seems to me this is something you should support.

      Please consider.

      Thank you.

      Comment


        #4
        Hi Velocity,

        ChartControl.GetxByBarIdx(Bars,idx) does exist.
        The Bars parameter is needed now because of multi-instrument charts.

        Regards
        Andreas

        www.zweisteintrading.eu
        (NinjaTinyMobileTrader: access Ninja via your mobile phone)

        Comment


          #5
          Getxbtbaridx

          int x = ChartControl.GetXByBarIdx(BarsArray[0], idx);
          int y = ChartControl.GetYByValue(this, val);

          ps if you have nt7 watch out for when you add second chart to panel - I couldn't get this to work correctly and it's unsupported.

          Comment


            #6
            Thanks guys!

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            47 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            23 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            33 views
            1 like
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            50 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            42 views
            0 likes
            Last Post CarlTrading  
            Working...
            X