Help with export data of custom indicator

 

Hi Everyone,

I have a custom indicator, attached and I write a script to export data of this indicator.

This script works with other custom indicator and for some reasons, it doesn't work this time.

I very appreciate your help if you could look to see what is the problem with my code.

Thank you and have a nice weekend,

HHC

 
It helps if you attach your code
Reason: