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, 05-11-2026, 05:56 AM
            0 responses
            28 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 05-10-2026, 08:12 PM
            0 responses
            20 views
            0 likes
            Last Post CarlTrading  
            Started by Hwop38, 05-04-2026, 07:02 PM
            0 responses
            183 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Started by CaptainJack, 04-24-2026, 11:07 PM
            0 responses
            337 views
            0 likes
            Last Post CaptainJack  
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            261 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X