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 Hwop38, 05-04-2026, 07:02 PM
    0 responses
    175 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    331 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    253 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    356 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    183 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X