Difference between MQL4 - IndicatorCounted and MQL5 - Bars

 

Hi,

    Can you please tell me whether we can use MQL5's - Bars in the place of MQL4's IndicatorCounted() ?

I am trying to port an indicator from MQL4 to MQL5. Thanks in advance.

-Krishna

 

Mql5's Bars Bars(_Symbol,_Period); is the EXACT SAME THING as Mlq4's Bars

So the answer is obvious - NO.

 
krishna_gopal_2:

Hi,

    Can you please tell me whether we can use MQL5's - Bars in the place of MQL4's IndicatorCounted() ?

I am trying to port an indicator from MQL4 to MQL5. Thanks in advance.

-Krishna

Don't port . . .  write it for mql5.
 
krishna_gopal_2:

Hi,

    Can you please tell me whether we can use MQL5's - Bars in the place of MQL4's IndicatorCounted() ?

I am trying to port an indicator from MQL4 to MQL5. Thanks in advance.

-Krishna

You have to use prev_calculated in place of IndicatorCounted(). Please ask you question about mql5 on mql5.com forum.