Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Horizontal scroll

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

    Horizontal scroll

    Dear Support,

    Could you please assist with the following? I'm trying to scroll the chart horizontally to a given value via NinjaScript Indicator and I think I'm really close. If I change it and print it, I can see an updated value but it doesn't take any effect. I'm trying to create an indicator that jumps on the start of each session so that the backtesting is faster and I don't have to scroll manually. Thanks in advance, your help is greatly appreciated.

    Code:
            public override void Dispose()
            {
                if(ChartControl != null)
                {
                    HScrollBar hs = (HScrollBar)ChartControl.Controls["scrChart"];
                    if(hs != null)
                    {
                        hs.Value = 20000;
                        Print(hs.Value);
                    }
                }
            }

    #2
    pepino,

    Unfortunately this code would be considered unsupported at this time. If you need any help with this a NinjaScript consultant may be able to assist.

    Adam P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    574 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    333 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    553 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    551 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X