Hi folks,
If you get tired of iCustom usage and Alerts embedding, this indicator for you!
You can use this indicator to load the indicators you want using iCustom function but you will not write a line of code. All what will you do is entering the inputs of the indicators you want to load in the Easy iCustom and Alerts input window and when the indicator alerts you.
Parameters:
Alert_On_Crossing
Set this option to true if you want the indicator alerts you when any of the loaded indicators has been crossed.
Pair_1
Set here the currency pair string you want to use with the first indicator. Use "NULL" if you want to work with the current currency.
EX: "EURUSD".
Indicator_Name_1
The name of the first indicator you want to load. This name must be the same as the file name of the indicator without the .ex4 extension.
EX: "Moving Averages" (the original file name is Moving Averages.ex4)
TimeFrame_1
The timeframe (in minutes) of the first indicator you want to load. use 0 if you want to work with the current time frame.
EX: 30
PERIOD_M1 1
PERIOD_M5 5
PERIOD_M15 15
PERIOD_M30 30
PERIOD_H1 60
PERIOD_H4 240
PERIOD_D1 1440
PERIOD_W1 10080
PERIOD_MN1 43200
Line_1
The line of the indicator you are loading that you want to use. It's zero based number which means the first line is 0 and the second line is 1 and the last line is 7 (The maximum value of lines allowed in any indicator are 8 and starts from 0, then the last line is 7).
The most of the indicator uses only one line, so you will use 0 here.
Parameter1_1
Set the first parameter of the indicator you want to load as the first line. The parameters of the indicator are any values declared as external variables.
For example the Moving Averages indicator accepts three parameters:
extern int MA_Period
extern int MA_Shift
extern int MA_Method
So, you have to enter the MA_Period here as the first parameter.
Parameter2_1
The second parameter of the indicator you want to load as the first line.
Parameter3_1
The third parameter of the indicator you want to load as the first line.
Parameter4_1
The fourth parameter of the indicator you want to load as the first line.
Parameter5_1
The fifth parameter of the indicator you want to load as the first line.
Pair_2
Set here the currency pair string you want to use with the second line.
Indicator_Name_2
The name of the second line you want to load.
TimeFrame_2
The timeframe (in minutes) of the second line you want to load.
Line_2
The line of the second indicator you are loading that you want to use.
Parameter1_2
Set the first parameter of the indicator you want to load as the second line.
Parameter2_2
The second parameter of the indicator you want to load as the second line.
Parameter3_2
The third parameter of the indicator you want to load as the second line.
Parameter4_2
The fourth parameter of the indicator you want to load as the second line.
Parameter5_2
The fifth parameter of the indicator you want to load as the second line.
Pair_3
Set here the currency pair string you want to use with the third line.
Indicator_Name_3
The name of the third line you want to load.
TimeFrame_3
The timeframe (in minutes) of the third line you want to load.
Line_3
The line of the second line you are loading that you want to use.
Parameter1_3
Set the first parameter of the indicator you want to load as the third line.
Parameter2_3
The second parameter of the indicator you want to load as the third line.
Parameter3_3
The third parameter of the indicator you want to load as the third line.
Parameter4_3
The fourth parameter of the indicator you want to load as the third line.
Parameter5_3
The fifth parameter of the indicator you want to load as the third line.
Note 1: How to know how many lines (buffers) in an indicator?
Just open the source code of the indicator in MetaTrader and check the line:
#property indicator_buffers 1
The number 1 means 1 line and 2 means 2 line etc (up to 8 lines).
Note 2: How to know how many parameters the indicator accept?
AS I told you before the parameters are the external functions that the indicator uses.
So, Open the indicator source code and check how many external functions it uses.
Note 3: The order of the external functions declaration in the source code of the indicator are the order of the parameters the indicator accept. EX:
extern int MA_Period=13; <-- Parameter 1
extern int MA_Shift=0; <-- Parameter 2
extern int MA_Method=0; <-- Parameter 3
Hope to see your comments!