Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how to advance chart from within indicator

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

    how to advance chart from within indicator

    I would like to scroll through a chart in a "slide show " fashion, starting at Bar 1.

    For example, suppose I were to position the chart with the left edge at bar 1.
    Then, in response to a simple standard message box, have the chart automatically move to a new bar, say bar 1023, which was selected by the indicator logic. I can work out the indicator logic for selection and the message box details, but I do not know how to do the necessary effect on the horizontal scroll bar position from with the indicator. The Page up, Page down keys always go for a fixed increment. of bars, so they do not do what I need, since I want to page forward to a selected bar.

    Any ideas?

    #2
    Hello roland_nt,

    I am not aware of any supported method that you could be able to do something like this but you may want to look into overriding the Plot method to be able to help you with this. We have a reference sample that you may view by going to Tools -> Edit NinjaScript -> Indicators -> CustomPlotSample.

    Happy to be of further assistance.
    JCNinjaTrader Customer Service

    Comment


      #3
      a way to know Bar number of left and right edge

      Is there a way to know the bar number of the candle at the left and/or right edge of the current screen?

      Comment


        #4
        Hello roland_nt,

        Yes, but it is also unsupported.

        Here is a post that talks about how this can be done.
        JCNinjaTrader Customer Service

        Comment


          #5
          first bar last bar set

          JC:
          Thanks ever so much. This is very helpful for getting me close to what I want to do
          ..
          Is there an unsupported "Go To" bar number?
          Maybe something like
          ChartControl.FirstBarPainted = 1023;
          ChartControl.LastBarPainted; = 1053;
          Yeah I am aware you can't answer this question but maybe someone did elsewhere.
          You guys are the greatest.

          Comment


            #6
            Hello roland_nt,

            I have not seen any post about this. With that said, you may want to view or post in the following thread that goes over some unsupported items to see if a member has had some experience with this.
            JCNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            577 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
            553 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