Quote:
|
Originally Posted by forextrend
Can some one help me on how to use a custom indicator in an expert?
|
There are two kind of indicators you can use in your expert advisor:
Built-in indicators:
The MQL4 has a number of built-in indicators which you can use them as a function for example:
Code:
double iMA( string symbol, int timeframe, int period, int ma_shift, int ma_method, int applied_price, int shift)
Code:
double iATR( string symbol, int timeframe, int period, int shift)
Any other indicator:
To use any other indicator in your expert advisor you use the function iCustom:
Code:
double iCustom( string symbol, int timeframe, string name, ... , int mode, int shift)
For more details about iCustom see my post:
iCustom function