It errors there because your arguments are incompatible with the function definition. A definition which you do NOT show. | function(pocsPrices, mpxVolume, Low, High, ... TBD function(double& pocsPrices[], double& mpxVolume[], double& lows[], double& highs[], ... |
Low[] and High[] are constant arrays. Always pass by constant reference unless you intend to modify the callers argument. You can't modify High[] or Low[] | function(pocsPrices, mpxVolume, Low, High, ... TBD function(double& prices[], double& volume[], const double& lows[], const double& highs[], ... |
Sorry's but I don't understand that you say
I havie to do what ?
THX
Your function declaration must explicitly contain const keyword when passing constants, the same way the OnCalculate function does, i.e.
const datetime& time[], const double& open[], const double& high[], const double& low[], const double& close[], const long& tick_volume[], const long& volume[], const int& spread[]
Hi, I fixed it, now it builds with no errors.
Microsoft OneDrive - Per accedere ai file dovunque ti trovi. Crea documenti con Office Online gratuito.
- onedrive.live.com
Archivia foto e documenti online per potervi accedere da PC, Mac o cellulare. Crea documenti Word, Excel o PowerPoint e utilizzali per collaborare con altri utenti.

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
Hello,
I have find a good indicator, but it have a problem 'Low' - constant variable cannot be passed as reference
That is the global code :
And the line where is the errors :
If you can help me, it's good for me
Thanks