Pages

Subscribe:

Thursday, May 26, 2011

User indicators in experts

User indicators in experts

Values ​​of the user indication for its use in the professional, are transmitted using the function iCustom. Instead of defining experts in the field there is a section inputs, it has the same meaning. Regarding inputs are external factors, their values ​​can be changed, not changing the code of the indicator. The indicator may comprise their maximum of two, at least one data file, the first is marked MODE_FIRST, second - MODE_SECOND.

For example, some inputs, it looks like this:
Inputs: Nbars (500), pediod (21);

That in us two external variables and the indicator, naprmer, looks like one line. Reference to indicators in the construction will look like this:
iCustom ("MyIndicator", 500,21, MODE_FIRST, 0);

Where:
· ICustom - user function indicators
· MyIndicator - the name of the indicator, is written with double quotes,
· 500 - value of first parameter
· 21 - value of the second paremetra,
· MODE_FIRST - information undertake their first file indiktora,
° 0 - final value of the indicator (for the current bar).
ICustom expression ("MyIndicator", 500,21, MODE_FIRST, 0) will be the same as this iCustom ("MyIndicator", MODE_FIRST, 0) as variable parameters are not mandatory but if other values ​​of the indicator wanted to use than determined poumolchaniju, it will be necessary to sign up necessary.

0 comments:

Post a Comment