declaration of 'Signal' hides global variable
At line 87
At line 87
string Signal = "Waiting";should be
At line 87
Signal = "Waiting";
You already declared signal in the header (line 45), variables declared outside functions is visible in all the code, And you can't declare it twice .possible loss of data due to type conversion from 'double' to 'int'
At line 148
K = KArray[0]; D = DArray[0];The array hold double values of the stochastic, you're trying to assign these values into an integer variable.
What the metaeditor is trying to tell you is if the KArray have a value of 0.365, the K variable will only hold 0, if it's 1.523, the K variable will only hold 1.
- As int type only holds Integer numbers, while double can hold floating-point numbers(which are the numbers after the decimal point)

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
while compiling the attached code.