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 Hwop38, 05-04-2026, 07:02 PM
            0 responses
            175 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Started by CaptainJack, 04-24-2026, 11:07 PM
            0 responses
            331 views
            0 likes
            Last Post CaptainJack  
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            253 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            356 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            183 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Working...
            X