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 thowar9, 03-03-2021, 11:48 PM
        18 responses
        1,288 views
        1 like
        Last Post tanagoswami  
        Started by Sadarar, Today, 09:13 AM
        0 responses
        15 views
        0 likes
        Last Post Sadarar
        by Sadarar
         
        Started by RMin101, 05-24-2023, 01:50 PM
        34 responses
        154 views
        0 likes
        Last Post Atomic
        by Atomic
         
        Started by ny10013, Today, 06:45 AM
        1 response
        11 views
        0 likes
        Last Post QuantKey_Bruce  
        Started by Atomic, Today, 06:40 AM
        0 responses
        16 views
        0 likes
        Last Post Atomic
        by Atomic
         
        Working...
        X