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 CarlTrading, 03-31-2026, 09:41 PM
            1 response
            94 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            51 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            81 views
            2 likes
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            75 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            62 views
            0 likes
            Last Post CarlTrading  
            Working...
            X