isNewBar () non produce il valore Stochastic del momento giusto onTick MQL5
Controlla questo programma Sto cercando di ottenere i valori dello Stochastic #include CisNewBar current_chart; // instance of the CisNewBar class: // detect new tick candlestick void OnTick() { if ( current_chart.isNewBar() > 0 ) { int stoch = iStochastic(_Symbol,PERIOD_M1,5,3,3,MODE_SMA,STO_LOWHIGH); double K[],D[]; ArraySetAsSeries(K,true); ArraySetAsSeries(D,true); CopyBuffer(stoch,0,0,5,K); CopyBuffer(stoch,1,0,5,D); ArrayPrint(K); } } Ecco l’output che ho ottenuto: 95.97315 90.40000 […]