Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 ZenCortexReal, Today, 08:52 AM
            0 responses
            0 views
            0 likes
            Last Post ZenCortexReal  
            Started by rocketman7, Today, 02:12 AM
            5 responses
            25 views
            0 likes
            Last Post rocketman7  
            Started by trilliantrader, 04-18-2024, 08:16 AM
            7 responses
            28 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by samish18, 04-17-2024, 08:57 AM
            17 responses
            66 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by briansaul, Today, 05:31 AM
            1 response
            15 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Working...
            X