help me is this code already right, i want to find signal for stochastic crossing but still error message.
PHP Code:
int QnSignal()
{ int result,SigStoch double Mystoch1 = iStochastic(NULL, 0, Myperiod, Dperiod, slowing, method, Pfield, MODE_MAIN, 1);
double Mystoch2 = iStochastic(NULL, 0, Myperiod, Dperiod, slowing, method, Pfield, MODE_MAIN, 2);
if (Mystoch2 > H_level && Mystoch2 > Mystoch1 && Mystoch1 < H_level) SigStoch = 2;
if (Mystoch2 < L_level && Mystoch2 < Mystoch1 && Mystoch1 > L_level) SigStoch = 1;