Any help to fix this problem

 

please anybody here can help me to fix this problem on my chart????

 
gozila:
please anybody here can help me to fix this problem on my chart????

gozila

That is happening because of the way how the moving averages of that indicator are handling arrays. To make it works correctly, the whole code has to be written using different logic