Jump to content
Software FX Community

Financial and Statistical Extensions not saving


Paul Smith

Recommended Posts

Hi,

 I have a chart where i am adding the Relative Stength Index and Volume to it. I am attempting to save this to either off the file formats. I am also supply the templateContent and FileContent.

 The problem is it seems to save ok, but when i reload the chart to recreate RSI and Volume, it doesnt appear.... here is a sample of code i have tried with.

 Export :

chart1.TemplateContents = chart1.TemplateContents |

FileContents.Extensions;

 

chart1.Export(FileFormat.Binary, "C:\\chart.bin");

Import:

chart1.Import(FileFormat.Binary, "C:\\chart.bin");

Am i doing anything wrong?

 

Thanks,

 

Paul Smith 

 

Link to comment
Share on other sites

There's seems to be a problem importing a financial or statistical chart to a chart that has one of these extensions already added. Please call the Clear() method of the Extensions object before calling the Import() method. You can do as follows:

 chart1.Extensions.Clear();

chart1.Import(

FileFormat.Binary, "D:\\Temp\\StatisticalExport.bin");
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...