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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    83 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    45 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    65 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    68 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    56 views
    0 likes
    Last Post CarlTrading  
    Working...
    X