Help to the td sequence indicator

 

Hello

 I've converted mq4 to mq5, 

however, I'm not able to make it work 

here is the original mq4 code  https://www.mql5.com/en/code/8966

<Edit moderator : mql4 code removed>
 
shizongwan:

Hello

 I've converted mq4 to mq5, 

however, I'm not able to make it work 

here is the original mq4 code  hhttps://www.mql5.com/en/code/8966

<CODE REMOVED>

When posting code please use the SRC button: How to use the SRC button.
 

No you haven't converted it . . .  there is no mql5 function called IndicatorCounted()  by extern did you mean input ?

 

This may help: https://www.mql5.com/en/articles/66 

 
The code you posted is mql4. Obviously it doesn't work in MT5. If you need help post the mql5 version.
Reason: