Quote:
|
Originally Posted by Aaragorn
|
If you are writing icustom in EA for trend bands indicator so you will have the following lines (see image).
So in icustom you may have the following:
Code:
double dtb_high=iCustom(NULL,0,"Trend Bands v2",period,0,1);
where:
-
NULL - EA will work for any currency (otherwise place simbol instead of
NULL);
-
0 - EA will work with the chart for any timeframe you attached to (otherwise place
PERIOD_M30 for example or any);
-
"Trend Bands v2" - exact name of custom indicator;
-
period - period in indicator. This indicator is having some settings. In our case it is one only -
period. It is
34 by default. You should place the folowing in the beginning of the EA:
Code:
extern int period = 34;
Or place
34 in icustom instead of
period and you do not need to place this additional line in this case (
extern int period = 34;);
-
0 - it is line 0 (see image).
-
1 - is first bar. Previous bar starting from current one.
If I am wrong so somebody may correct me.