Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Skip / Jump / Shift in Chart

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

    Skip / Jump / Shift in Chart

    Hello, is here any way to jump on bar with specific Index and have it on the right side of the chart?

    Something like:

    Code:
    protected override void Initialize() {
     gotoBar(500); //Initialize chart on bar 500 - I will not use fixed numbers of course
    }
    Thanks!

    #2
    Hi pepino3131, first of all welcome to our forums here - that's unfortunately not possible as you could not control the chart setup / loading via NinjaScript. For your calculations you could start the OnBarUpdate() on a specific bar with CurrentBar - http://www.ninjatrader.com/support/h...currentbar.htm
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thank you Bertrand for quick response. Maybe it would help, if I describe purpose of my question.
      I want to make an indicator which will help me with discretionary backtest. I have hundrets of mechanical patterns in time but I want to filter them so I want to skip quickly from pattern to pattern using shortcuts and don´t see right side of chart. Sure I could go throught the chart bar by bar but it would be very time consuming. With this indicator I woulud be able to notice quicky GOOD signal / WRONG signal and skip to the next one. Everything is ready (pattern recognition, bar index, key press detection) except scrolling. Thanks again.

      Comment


        #4
        You're welcome - unfortunately I would not a pointer on how do that from inside the code, however for quick chart scrolling you could for example try the page up / dn buttons, or holding the Ctrl key pressed while scrolling with your mouse wheel.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by srbdoc, Today, 04:36 PM
        1 response
        32 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by jimmy12, 01-02-2023, 05:06 PM
        3 responses
        57 views
        0 likes
        Last Post jimmy12
        by jimmy12
         
        Started by tommmm, 02-27-2019, 05:19 AM
        4 responses
        804 views
        0 likes
        Last Post akaSurreal  
        Started by TallTim, Today, 06:13 AM
        2 responses
        39 views
        0 likes
        Last Post TallTim
        by TallTim
         
        Started by givemefood, Today, 06:09 PM
        0 responses
        30 views
        0 likes
        Last Post givemefood  
        Working...
        X