H1 chart objects not being created.

 

Hello

I have a code which puts up some vertical lines on the turning points in a chart. It works good in all time frames except in the H1. I just can’t understand why, any ideas please.

Thanks

 

Show your code