Debug this indicator

 

Hi, I have the attached indicators but they seem to have a bug in them.

What I want to do is have the indicator place an arrow / icon when double bars occur. Double top or double bottom and it would be nice if I had an option of double close as well.

The indi places an arrow on SOME double bars but not all, so I can't use it.

I would like to be able to use it on any time frame but an optional multi TF feature would be good.

It already has an alert in there so that is OK.

Thanks in advance

 

Sorry,

Only one attached so here is the other part, I seem to need both for it to work on chart.

Edit: it is an Ex4 that won't attach to post, help please, or perhaps if you can fix the MQ4 I will be OK

thanks