Ti stai perdendo delle opportunità di trading:
- App di trading gratuite
- Oltre 8.000 segnali per il copy trading
- Notizie economiche per esplorare i mercati finanziari
Registrazione
Accedi
Accetti la politica del sito e le condizioni d’uso
Se non hai un account, registrati
Hi all
i'd like to code an expert advistor in mql5 for the Parabolic SAR indicator that give the same results of the default indicator availble on metatrader 5 menu'.
I coded using this examples https://www.youtube.com/watch?v=UiIOHeewo5k&t=267s.
That version works quite good but when the SAR trend switch the first green dot diverge from the calculated value.
This is the code (called on ontick function)
double mySARArray[];
isar =iSAR(trdsymbl,period,0.02,0.2);
ArraySetAsSeries(mySARArray,true);
CopyBuffer(isar,0,0,3,mySARArray);
double psar=NormalizeDouble(mySARArray[1],5);
Comment("PSARValue ",psar);
attached on this message the picture where the error is visible