Download MetaTrader 5

How do I make the EA in MQL4 for multi currency

To add comments, please log in or register
achmad hidayat
28
achmad hidayat  

Hello... Could someone here help me.

How do I make the EA in MQL4 for multi currency. Or could someone show the link to make EA in mql4 for multi currency? Thank you.

onewithzachy
2269
onewithzachy  
acday:

Hello... Could someone here help me.

How do I make the EA in MQL4 for multi currency. Or could someone show the link to make EA in mql4 for multi currency? Thank you.

Hi acday,

Use MarketInfo (https://docs.mql4.com/common/MarketInfo) is good for start.

:D

achmad hidayat
28
achmad hidayat  
onewithzachy:

Hi acday,

Use MarketInfo (https://docs.mql4.com/common/MarketInfo) is good for start.

:D

Thank you onewithzachy for your respond. I need example of multi currency EA to made as template.
whroeder1
16554
whroeder1  
Why do you need multicurrency. Put the EA on multiple charts.
achmad hidayat
28
achmad hidayat  
WHRoeder:
Why do you need multicurrency. Put the EA on multiple charts.

Because it saves resource and more simple, so I don't need to open all of chart and attach EA one by one.
onewithzachy
2269
onewithzachy  
acday:

Because it saves resource and more simple, so I don't need to open all of chart and attach EA one by one.
Ah, ... if that the purpose, you may well use template and read this topics https://www.mql5.com/en/forum/139395
whroeder1
16554
whroeder1  
It's not saving any resource. When you ask for market info or bars for another chart it has to load history. Exactly the same as if you opened the chart.
achmad hidayat
28
achmad hidayat  
onewithzachy:
Ah, ... if that the purpose, you may well use template and read this topics https://www.mql5.com/en/forum/139395

I can't find such template in that link. Where can I find it? Or please attach here. Thank you.
onewithzachy
2269
onewithzachy  
acday:

I can't find such template in that link. Where can I find it? Or please attach here. Thank you.

No, I was talking about MT4 template - not MQL4 template. Open a chart, set whatever you like with that chart (color, candle or bar, tf, indicators, etc, etc) and attach your EA and save it as MT template (MT > Chart menu > Template > Save As Template ...) and name it default. Every time you open a new chart, all those settings, indicators and that EA will be loaded, so you don't have to open a chart and load EA over and over, but just open a chart.

:D

Simon Gniadkowski
Moderator
18046
Simon Gniadkowski  
acday:

I can't find such template in that link. Where can I find it? Or please attach here. Thank you.

To be clear, by "template" you mean code examples ?

Have you looked through the CodeBase EAs ?

achmad hidayat
28
achmad hidayat  
RaptorUK:

To be clear, by "template" you mean code examples ?

Have you looked through the CodeBase EAs ?


Yes, I mean code example base on multi currency
12
To add comments, please log in or register