Forum

About iStochasic inMQL5!

What is wrong: ouble GetStochasicValue( string cPair, int nPeriod, ENUM_MA_METHOD , ENUM_STO_PRICE price, int bar) { double sto[ 1 ]; int stoHandle = iStochastic (cPair,nTimeFrame1,nPeriod,price); if (stoHandle!= INVALID_HANDLE ) { CopyBuffer (stoHandle, 0 ,bar, 1 ,sto); }

I need to convert this loop from mql4 to mql5!

string TestROC_( int nPeriod, string cPair) { int i; int sizeOfnResultROC = nPeriod; double nResultROC[]; double nResultClose; double nResult; double nResultAbs; double nResultA; double nResultB; int nRow = 2 ; int nCol = 3 ; ArrayResize

iCCIOnArray in MQL5

How to write iCCOnArray for RSI in mql5

What is wrong?

string cciOnRsi_ ( int nPeriod, string cPair) { double rsi[]; double cci[]; ArrayResize (rsi, Bars ); ArraySetAsSeries (rsi, true ); for ( int i= Bars ; i>= 0 ; i--) { rsi[i]= iRSI (cPair,nTimeFrame1,Period_EA, PRICE_CLOSE ,i); } double cci[i] = iCCIOnArray(rsi, 0 ,Period_EA, 0 );

from mql4 to mql5

How to write this mql4 code to mql5: string TestCCIonRSI( int nPeriod, string cPair) { int sizeOfaNizDan = nPeriod; double aNizDan[]; int i; double nResult; int nRow = 2 ; int nCol = 3 ; ArrayResize (aNizDan,sizeOfaNizDan); ArraySetAsSeries (aNizDan, true ); for (i =

What is wrong?

for the ParSar: double GetSARValue( string cPair, int nPeriod, int bar) { double sar[ 1 ]; int sarHandle = iSAR (cPair,nTimeFrame1,Step,Maximum, 0 ); if (sarHandle!= INVALID_HANDLE ) { CopyBuffer (sarHandle, 0 ,bar, 1 ,sar); } return (sar[ 0 ]); }

What is the mistake?

In MQL5 I get this error: wrong parameters count for iSAR: string TestParSar_( int nPeriod, string cPair) { double nResultClose; double nResultSar; nResultSar= iSAR (cPair,nTimeFrame1,Step,Maximum, 0 ); nResultClose = iClose (cPair,nTimeFrame1, 0 ); if (nResultClose < nResultSar)

How to male the correction?

I need the correction for this code as I am getting the error warning: -------------------------------------------------------------------------------------- double GetPriceValue(string cPair, int nPeriod, int bar) double price[1]; int priceHandle = iClose (cPair,nTimeFrame1,0);

About coding prices for STDEV in mql4!

Why did you post your MT4 question in the General section (a miscellaneous catch-all category) instead of the MQL4 section, (bottom of the Root page)? Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893 moved to MQL4 and MetaTrader 4 In

MCCI(n,m)

Dear Sir, This indicator is the calculation of "Gauss Standard Score" for simple Momentum indicator, as in " Commodity Channel Index ", the only difference is the Momentum calculation instead of simple Price and the Standard Deviation instead of Mean Deviation. I would like to transfer it to MT5