Extract XML file from Easylanguage

Questions about MultiCharts and user contributed studies.
Salzburg
Posts: 140
Joined: 19 Sep 2018
Has thanked: 9 times
Been thanked: 35 times

Extract XML file from Easylanguage

Postby Salzburg » 11 Jun 2020

Anyone know of a possibility to create a XML file from a function ?

Many thanks for your help in advance

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Extract XML file from Easylanguage

Postby TJ » 11 Jun 2020

Not sure what you are asking . . .

Salzburg
Posts: 140
Joined: 19 Sep 2018
Has thanked: 9 times
Been thanked: 35 times

Re: Extract XML file from Easylanguage

Postby Salzburg » 11 Jun 2020

Hi TJ,

I am asking, if its possible in easylanguage to create a function that can create a XML file to a specific folder based on a strategy for the symbol used on my chart. Meaning i would like to have a XML file containing all my trades from the strategy, and i would like the file being saved as XML format.

Thanks

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: Extract XML file from Easylanguage

Postby JoshM » 16 Jun 2020

You can use any of the `PosTrade*` keywords to access trade data from the strategy, and then have `FileAppend()` output the results to the XML format. This is a bit work intensive since you'll need to make sure that the output that the code generates is valid XML.

I'm unfortunately not aware of external DLLs that could automate this process for you.

If you meant that your strategy should access the executed trade data as they appear in the Order and Position Tracker, then I'm afraid such a thing isn't possible with MultiCharts PowerLanguage.


Return to “MultiCharts”