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 trilliantrader, 04-18-2024, 08:16 AM
        4 responses
        18 views
        0 likes
        Last Post trilliantrader  
        Started by mgco4you, Today, 09:46 PM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by wzgy0920, Today, 09:53 PM
        0 responses
        9 views
        0 likes
        Last Post wzgy0920  
        Started by Rapine Heihei, Today, 08:19 PM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by Rapine Heihei, Today, 08:25 PM
        0 responses
        10 views
        0 likes
        Last Post Rapine Heihei  
        Working...
        X