Anyone know of a possibility to create a XML file from a function ?
Many thanks for your help in advance
Extract XML file from Easylanguage
- TJ
- Posts: 7740
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2221 times
Re: Extract XML file from Easylanguage
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
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
- 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
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.
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.