refreshing the chart from within Neo indicator

C# discussion

Moderator: moderators

User avatar
michal.kreslik
rank: 1000+ posts
rank: 1000+ posts
Posts: 1032
Joined: Sat May 13, 2006 2:40 am
Reputation: 0
Location: Monte Carlo, Monaco
Real name: Michal Kreslik
Gender: Male
Contact:

refreshing the chart from within Neo indicator

Postby michal.kreslik » Mon Aug 21, 2006 3:14 am

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

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.

User avatar
michal.kreslik
rank: 1000+ posts
rank: 1000+ posts
Posts: 1032
Joined: Sat May 13, 2006 2:40 am
Reputation: 0
Location: Monte Carlo, Monaco
Real name: Michal Kreslik
Gender: Male
Contact:

Postby michal.kreslik » Tue Aug 29, 2006 5:17 pm

The shortcut is:

Code: Select all

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


Return to “C# coding for NeoTicker”