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 Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            607 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            353 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            105 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            560 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            561 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X