Page 1 of 1

refreshing the chart from within Neo indicator

Posted: Mon Aug 21, 2006 3:14 am
by michal.kreslik
NeoTicker object hierarchy is quite a bit hazy, but after some time spent studying and taming it, the solution is here :)




Code: Select all

                // C#.NET
                App MyNeoTickerApp = new App();
                FunctionWindow MyFunctionWindow = MyNeoTickerApp.ActiveWindow;

                if ((string)MyFunctionWindow.ClassName() == "Chart")
                {
                    FWTimeChart MyTimeChart = (FWTimeChart)MyFunctionWindow;
                    MyTimeChart.CompleteRecalc();
                }


Michal Kreslik

Posted: Tue Aug 29, 2006 5:17 pm
by michal.kreslik
The shortcut is:

Code: Select all

            App MyNeoTickerApp = new App();
            ((FWTimeChart)MyNeoTickerApp.ActiveWindow).CompleteRecalc();