when i manually put a number int inside the following line instead of numCandele, the EA works, it open positions but if I let a function to put the number instead, it wont work.
int highestIndex = iHighest(Symbol(), PERIOD_CURRENT, MODE_HIGH, numCandele, 0);
I Printed everywhere the value of numCandele before using it and it works great, but as soon as i put it inside:
Consenti l'uso dei cookie per accedere al sito MQL5.com.
Abilita le impostazioni necessarie nel browser, altrimenti non sarà possibile accedere.
Hai effettuato l'accesso. L'autenticazione a due fattori è stata disattivata. Configurala di nuovo e scansiona un nuovo codice QR, oppure continua con l'autenticazione a due fattori disattivata.
Hello!
I am starting to get nut here, my problem is the following:
So basically,
when i manually put a number int inside the following line instead of numCandele, the EA works, it open positions but if I let a function to put the number instead, it wont work.
I Printed everywhere the value of numCandele before using it and it works great, but as soon as i put it inside:
it stop working.
Here is another code who does the same thing with the same result...