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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    173 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    91 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    129 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    208 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    186 views
    0 likes
    Last Post CarlTrading  
    Working...
    X