Hi,
I tried to load indicator from EA using this ChartApplyTemplate function.
But I don't know how to load with specified indicator parameters, When I tried with template it was load by default params.
Any suggestions
Thanks.
if u post ur code, it would be easy to help u.
Open notepad and drag your template file (with extension *.tpl) into it. You can see what settings are stored in the template.
Regarding inputs , i give a sample from my expert. It is saved in the following format in the template file.
<expert>
name=PPan
flags=343
window_num=0
<inputs>
LotSize_1=0.01
LotSize_2=0.02
LotSize_3=0.03
LotSize_4=0.04
LotSize_5=0.05
LotSize_6=0.1
LotSize_7=0.2
LotSize_8=0.3
LotSize_9=0.4
LotSize_10=0.5
LotSize_11=1.0
LotSize_12=2.0
LotSize_13=3.0
LotSize_14=4.0
LotSize_15=5.0
</inputs>
</expert>
I changed the settings directly in the template file. It worked perfectly. Although i did it on expert inputs, it should work fine for indicators too.
Thanks for the reply.
As you said should I edit every time update when I change parameters in EA so that it will apply.
In your example, how can you change the input LotSize_1=0.01 to LotSize_1 = 0.5
That's what I'm looking for. So that I can pass different parameter from EA to indicator.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
I tried to load indicator from EA using this ChartApplyTemplate function.
But I don't know how to load with specified indicator parameters, When I tried with template it was load by default params.
Like iCustom function with parameters, how to pass indicator parameters to load on template when a button is clicked in EA?
Any suggestions
Thanks.