adeller1:
how do we know anything without it being in the code, and knowing what indicator?
comment all possibilities, open data window and run tester. thats what i do.
your icustom must have the inputs, probably save a copy of your indicator without inputs just
for the expert, thats what i do.
"\n" is a new line
int Li_100 = 2000; if (Li_100 < 0) return (-1); if (Li_100 > 0) Li_100--; int Li_0 = Bars - Li_100; for (int i = 0; i <= Li_0; i++)Won't calculate anything unless you have 2000 bars.

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,
For learning purposes I'm looking at this simple indicator called test2 (basic ma cross)
I'm trying to use it in an expert avisor using the third buffer as a signal
I'm hoping to trigger the buy signal when iCustom returns 1, and sell when it returns 2.
However the iCustom value always returns 2147483647 or Empty Value
Any idea which basic mistake I'm doing ?
Regards