Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Update indicator at scroll event

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

    Update indicator at scroll event

    What event is used to update indicator at scroll event (price backwards/forwards), as in this indicator:



    Any of the bundled indicators to learn from?

    Kindly, Fredrik

    #2
    Hello FREEN,

    Thank you for your note.

    You can look into the Power Volume indicators for indicators that would update based on moving the chart: http://ninjatrader.com/support/helpG...indicators.htm

    Comment


      #3
      The Volume Zones Indicator is the one running on historical data and the one I try to learn from how to update based on moving the chart events.

      The Plot() method is used for plotting. But I can´t see what event calls this method. Is the Plot() method called at all graphical chart events "behind the scenes"?

      Suggested readings on this?

      Comment


        #4
        Interesting, Someone has copied the indicator anaRegressionChannel that I have posted at Big Mike's a few years ago.

        The only thing needed to backdate indicators when you scroll horizontally is a custom plot. I have coded lots of these indicators, for example you can also have a look at the SessionPivots indicators which can be downloaded in this forum.

        If you wish to get a free copy of the Regression Channel indicator for studying the code of the custom plot, please let me know via private message.


        Originally posted by FREEN View Post
        What event is used to update indicator at scroll event (price backwards/forwards), as in this indicator:



        Any of the bundled indicators to learn from?

        Kindly, Fredrik

        Comment


          #5
          Thanks Harry, you´ve got a PM!

          If indicatorwarehouse.com copied you´re code and made a product of it I hope a sufficent dose of bad carma falls back on them. Nothing irritates me more than companies utilise the open source/information mentality for their own benefit. Even worse when patent or proprietary claims are made. That´s why I would never touch an Apple product!

          Comment


            #6
            Actually, I do not know. whether the code has been copied, but it is likely. The change was not difficult to do. Just a few lines, less than half an hour of work.

            I will send you the copy of the indicator.

            Comment


              #7
              What I would hope for was easily moving existing code from OnBarUpdate() to an event method something like OnRender() or OnChartScroll().

              Noticed there´s the "publicoverridevoidOnRender(ChartControlchartControl,ChartScalechartScale)" method in NT8. Maybe it´s time to migrate to NT8 rather than struggling with custom plotting in NT7?

              Comment


                #8
                This is brilliant, Harry. Thanks for sharing.

                - Gordon

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                579 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                334 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                101 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                554 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                551 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X