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.
public override void Dispose() { if(ChartControl != null) { HScrollBar hs = (HScrollBar)ChartControl.Controls["scrChart"]; if(hs != null) { hs.Value = 20000; Print(hs.Value); } } }
Comment