iCustom() parameters are input parameters, nothing related to OnCalculate() parameters.
You can't pass an array with iCustom and IndicatorCreate will not help. Either you use a parameter to choose which custom prices you want to calculate inside the indicator or you find a workaround to pass your custom prices from an EA to the indicator (a file or a resource for example).

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
To call a Custom Moving Average
this is function in Indicator
int OnCalculate(const int rates_total,
const double &price[])
but how I can set &price???
I need do it beause I need calculate average with custom prices , and I need pass a array with this values.
Or I can use a IndicatorCreate to call a custom Indicator