stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Folder Architecture of Experts, Indicators and Scripts for M
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3741
Page 1 of 1
Author:  x26s [ Tue Jul 22, 2014 12:16 pm ]
Post subject:  Folder Architecture of Experts, Indicators and Scripts for M

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?
Author:  milanese [ Tue Jul 22, 2014 12:28 pm ]
Post subject:  Folder Architecture of Experts, Indicators and Scripts for M

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
Author:  rocketman99 [ Wed Jul 23, 2014 3:13 am ]
Post subject:  Folder Architecture of Experts, Indicators and Scripts for M

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.
Author:  x26s [ Sun Jul 27, 2014 2:21 pm ]
Post subject:  Folder Architecture of Experts, Indicators and Scripts for M

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.
All times are UTC Page 1 of 1