Jump to content
Software FX Community

ChartFX Financial - Newbie in ChartFX


User (Legacy)

Recommended Posts

Posted

Hello i am trying the ChartFx for the first time and it works great but I 

have some questions:

A am trying to adjust ChartFX to my language. I am trying to change the

name of the commands. It works fine with this code:

chart1.Commands[(int) SoftwareFX.ChartFX.CommandID.Color].Text = "Litir";

I have Financial extension and I need to change the commands there also. I

can't find the CommandID for the Chart FX Financial packace. For example I

want to change the text/name of the Studies button on the Financial toolbar

how do I do that?

I am using The rules to pass the data as you descripe in the manual.

finext.DataBinding.LowSeries = 3;

finext.DataBinding.OpenSeries = 1;

finext.DataBinding.CloseSeries = 4;

finext.DataBinding.HighSeries = 2;

finext.DataBinding.VolumeSeries = 0;

This works fina with day to day prices but I want to look up IntraDay

informations. Then I use another set of Data and I only pass the closing

price data. Is this enough?? Am I supposed to use ForceIndtradayCalc undur

Compress?? Anyway if I do it like this no values are shown on X-Axis??

Best regards

Kristj

Posted

Hello,

The Crucial methods here are Financial.GetFinCommandID using the enum

FinCommandID

AND the Analytical.GetAnalyticalCommandID using the enum AnalyticalCommandID

Using these two methods we can get the Command from the Chart Commands

Array.

The Financial Extension is heavy on the User Interaction and thus there are

MANY commands

some which appear to overlap. Some commands are Financial Global Commands

and some are Analytical Specific.

So for example there is a Studies command in the Toolbar which is disabled

when you activate a Japanese Gallery.

And there are also Studies commands when the Analytical is activated.

See this Snippet:

// This command text will ONLY show up when you get tooltips on the ToolBar

int id = finext.GetFinCommandID(FinCommandID.Studies);

chart1.Commands[id].Text = "Toolbar Studies";

// Only can see this when you right-click on Prices Pane.

id =

finext.Gallery.Analytical.GetAnalyticalCommandID(AnalyticalCommandID.PriceStudies);

chart1.Commands[id].Text = "Price Studies Pane";

// Only can see this when you right-click on Technical Indicator like

Volume.

id =

finext.Gallery.Analytical.GetAnalyticalCommandID(AnalyticalCommandID.TechnicalStudies);

chart1.Commands[id].Text = "Technical Studies Pane";

So basically if the command is "Visible" (not enabled/disabled) when a

non-analytical chart is active it will be in the FinCommandID enum.

Regarding your second question,

If I am understanding you correctly you are trying to do intra-day but are

passing only daily data. This is a contradiction. Intra-day is for when you

have data hour-by-hour.

IntraDay charts together with compression is not a by-design feature and its

behaviour may vary.

ForceIntraDayCalc is a method that tries to optimize your calculations. If

you are passing data hour-by-hour but only want to see week-by-week we only

force the intraday calculations when we absolutely need it, like a user

defined button or the toolbar menu. It makes for better performance if you

pass detailed data but don't use it.

Does this help?

-charles

P.S. the chartfx.extensions newsgroup is a much better place to post

messages like this.

"Kristj

Posted

Thank you Charles this helps alot this is very good explainatons that you 

wrote..

Now I can change the toolbar and the context menu to my language

I have the right kind of data for the intraday chart but I will work on it a

little bit more until I ask you again?

Thank you very much

P.s. I posted another question on chartfx.extensions

"Software FX Support" <support@softwarefx.com> wrote in message

news:Pn$L6S4dFHA.200@webserver3.softwarefx.com...

> Hello,

> The Crucial methods here are Financial.GetFinCommandID using the enum

> FinCommandID

> AND the Analytical.GetAnalyticalCommandID using the enum

> AnalyticalCommandID

> Using these two methods we can get the Command from the Chart Commands

> Array.

>

> The Financial Extension is heavy on the User Interaction and thus there

> are MANY commands

> some which appear to overlap. Some commands are Financial Global Commands

> and some are Analytical Specific.

> So for example there is a Studies command in the Toolbar which is disabled

> when you activate a Japanese Gallery.

> And there are also Studies commands when the Analytical is activated.

>

> See this Snippet:

>

> // This command text will ONLY show up when you get tooltips on the

> ToolBar

> int id = finext.GetFinCommandID(FinCommandID.Studies);

> chart1.Commands[id].Text = "Toolbar Studies";

>

> // Only can see this when you right-click on Prices Pane.

> id =

> finext.Gallery.Analytical.GetAnalyticalCommandID(AnalyticalCommandID.PriceStudies);

> chart1.Commands[id].Text = "Price Studies Pane";

>

> // Only can see this when you right-click on Technical Indicator like

> Volume.

> id =

> finext.Gallery.Analytical.GetAnalyticalCommandID(AnalyticalCommandID.TechnicalStudies);

> chart1.Commands[id].Text = "Technical Studies Pane";

>

> So basically if the command is "Visible" (not enabled/disabled) when a

> non-analytical chart is active it will be in the FinCommandID enum.

>

> Regarding your second question,

> If I am understanding you correctly you are trying to do intra-day but are

> passing only daily data. This is a contradiction. Intra-day is for when

> you have data hour-by-hour.

> IntraDay charts together with compression is not a by-design feature and

> its behaviour may vary.

>

> ForceIntraDayCalc is a method that tries to optimize your calculations. If

> you are passing data hour-by-hour but only want to see week-by-week we

> only force the intraday calculations when we absolutely need it, like a

> user defined button or the toolbar menu. It makes for better performance

> if you pass detailed data but don't use it.

>

> Does this help?

>

> -charles

>

> P.S. the chartfx.extensions newsgroup is a much better place to post

> messages like this.

>

> "Kristj

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...