Save the current chart as template in files. Open the file and inject the xml data to load the indicator. Apply the template.
Save the current chart as template in files. Open the file and inject the xml data to load the indicator. Apply the template.
Please i am not sure on how to 'inject the xml data to load the indicator' . Are there any links or detailed to notes on this Thank you.
A chart template doesn't use XML.
...kinda looks like XML to me...
<chart>id=131861128171735996symbol=AUDJPY_period=60leftpos=4081digits=3scale=8graph=1fore=0grid=0volume=0scroll=1shift=0ohlc=1one_click=0one_click_btn=1askline=0days=0descriptions=0shift_size=20fixed_pos=0window_left=182window_top=182window_right=1542window_bottom=564window_type=3background_color=0foreground_color=16777215barup_color=65280bardown_color=65280bullcandle_color=0bearcandle_color=16777215chartline_color=65280volumes_color=3329330grid_color=10061943askline_color=255stops_color=255<window>height=100fixed_height=0<indicator>name=main</indicator></window><window>height=50fixed_height=0<indicator>name=MACDfast_ema=12slow_ema=26macd_sma=9apply=0color=12632256style=0weight=1signal_color=255signal_style=2signal_weight=1period_flags=0show_data=1</indicator></window></chart>
...kinda looks like XML to me...
It's not XML, while we can agree it looks like.
XML would be (for example):
... <window height="50" fixed_height="0"> <indicator name="MACD" fast_ema="12" slow_ema="26" macd_sma="9" apply="0" color="12632256" style="0" weight="1" signal_color="255" signal_style="2 signal_weight="1" period_flags="0" show_data="1"> </indicator> </window> ...
Let's say it's XMQL :-D
It's not XML, while we can agree it looks like.
XML would be (for example):
Let's say it's XMQL :-D
Fair enough... although they're using an XML parser and splitting the string between the tags on "\n", which BTW, in its current format, makes it easier to roll your own tpl file parser in pure MQL.
How do you know that ?
Deductive reasoning. The tags are obviously XML based, and as soon as you indent the string params (format it like I have in the post above) it breaks the template. So if you want to make your own parser, you'll have to split the string on \n.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use