Folder Architecture of Experts, Indicators and Scripts for M

Post Reply
x26s
Posts: 2
Joined: Wed Jul 09, 2014 9:26 am

Folder Architecture of Experts, Indicators and Scripts for M

Post by x26s »

I have put this up on mql5.com too, but somehow don't expect the answer quite soon. Here is the problem.

I have many indicators, scripts and EAs. I know that Empty4 needs the following architecture:
MQL4>Experts > EAs
MQL4>Indicators > Indicators
MQL4>Scripts > Scripts

There can be folders within as well! For example:
MQL4>Experts>EAgroup1>EA1.mq4
MQL4>Experts>EAgroup1>EA2.mq4
MQL4>Experts>EAgroup2>EA3.mq4
MQL4>Experts>EAgroup2>EA4.mq4
MQL4>Indicators > IndicatorGroup1>Indi1.mq4
MQL4>Indicators > Scalpers>Indi2.mq4
MQL4>Indicators > Scalpers>Indi3.mq4

This works for EAs, indi's and scripts that work on their own.

But what about EAs which depend on some indicators? Will the EAs work if the indicators are within subfolders?
For example, Hanover EA works only with David's Recent Strength indicator in the indicator folder. Will it work if it is within a subfolder inside indicators folder? (Just so that these scripts and EAs can be organized)

Does Metatrader4 look for indicators recursively within the subfolder structure?
Last edited by x26s on Sun Jul 27, 2014 2:18 pm, edited 1 time in total.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Folder Architecture of Experts, Indicators and Scripts for M

Post by milanese »

x26s » Tue Jul 22, 2014 12:16 pm wrote:I have put this up on mql5.com too, but somehow don't expect the answer quite soon. Here is the problem.

I have many indicators, scripts and EAs. I know that Empty4 needs the following architecture:
MQL4>Experts > EAs
MQL4>Indicators > Indicators
MQL4>Scripts > Scripts
There can be folders within as well! For example:
MQL4>Experts>EAgroup1>EA1
MQL4>Experts>EAgroup1>EA2
MQL4>Experts>EAgroup2>EA3
MQL4>Experts>EAgroup2>EA4
MQL4>Indicators > IndicatorGroup1>Indi1
MQL4>Indicators > Scalpers>Indi2
MQL4>Indicators > Scalpers>Indi3

This works for EAs, indi's and scripts that work on their own.

But what about EAs which depend on some indicators? Will the EAs work if the indicators are within subfolders?
For example, Hanover EA works only with David's Recent Strength indicator in the indicator folder. Will it work if it is within a subfolder inside indicators folder? (Just so that these scripts and EAs can be organized)

Does Metatrader4 look for indicators recursively within the subfolder structure?
I would say you need the indicator(s) the EA needs in the main indicator folder.., best is you try it
see to here http://articles.mql4.com/1144

Cheers :)

Tommaso
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
rocketman99
Trader
Posts: 91
Joined: Wed Dec 19, 2012 1:19 am

Folder Architecture of Experts, Indicators and Scripts for M

Post by rocketman99 »

x26s » Tue Jul 22, 2014 1:16 pm wrote:I have put this up on mql5.com too, but somehow don't expect the answer quite soon. Here is the problem.

I have many indicators, scripts and EAs. I know that Empty4 needs the following architecture:
MQL4>Experts > EAs
MQL4>Indicators > Indicators
MQL4>Scripts > Scripts
There can be folders within as well! For example:
MQL4>Experts>EAgroup1>EA1
MQL4>Experts>EAgroup1>EA2
MQL4>Experts>EAgroup2>EA3
MQL4>Experts>EAgroup2>EA4
MQL4>Indicators > IndicatorGroup1>Indi1
MQL4>Indicators > Scalpers>Indi2
MQL4>Indicators > Scalpers>Indi3

This works for EAs, indi's and scripts that work on their own.

But what about EAs which depend on some indicators? Will the EAs work if the indicators are within subfolders?
For example, Hanover EA works only with David's Recent Strength indicator in the indicator folder. Will it work if it is within a subfolder inside indicators folder? (Just so that these scripts and EAs can be organized)

Does Metatrader4 look for indicators recursively within the subfolder structure?
Why not try

MQL4>Indicators > EA1indi

And then reference the indi in your EA code as "EA1indi\my_macd_indi" for example. I think Empty4 should be smart enough to use relative paths just like webservers do.

This is untested.
x26s
Posts: 2
Joined: Wed Jul 09, 2014 9:26 am

Folder Architecture of Experts, Indicators and Scripts for M

Post by x26s »

Thanks fellows! BTW, just as I expected, no replies on mql4.com.

Anyway, the EA's/Indicators/Scripts that you download from the market section of mql4.com are put in a subfolder called "Market" under Experts,Indicators and Scripts respectively. They work without problem.
I will try the above solutions and post the results soon.

Edited the primary post a bit by adding .mq4 to avoid confusion.
Post Reply

Return to “Newbie Discussion”