iStochastic

 

Hi, I have a Question?!

What's equivalent of this code in MQL5?!

        for(int i=1;i<1000;i++)
     {
      TBuffer[i]=iStochastic(NULL,PERIOD_H1,5,3,3,MODE_SMA,0,MAIN_LINE,i);
     }
 
Sarsali:

Hi, I have a Question?!

What's equivalent of this code in MQL5?!

   int iStoHandle=iStochastic(NULL,PERIOD_H1,5,3,3,MODE_SMA,STO_LOWHIGH);
   // check iStoHandle for error...
   double TBuffer[];
   int copied=CopyBuffer(iStoHandle,MAIN_LINE,1,1000,TBuffer);
   // check copied for error...
Transferring Indicators from MQL4 to MQL5
Transferring Indicators from MQL4 to MQL5
  • 2010.07.28
  • Vasily
  • www.mql5.com
This article is dedicated to peculiarities of transferring price constructions written in MQL4 to MQL5. To make the process of transferring indicator calculations from MQL4 to MQL5 easier, the mql4_2_mql5.mqh library of functions is suggested. Its usage is described on the basis of transferring of the MACD, Stochastic and RSI indicators.
 
angevoyageur:

Thank You As usual , I'm Newbie with MQL5 !!

Merry Christmas