How do I resolve "tester takes too long" when trying to publish an indicator

 
I created this indicator and I am trying to sell here but automatic validation cant get through.I get error that, tester takes too long and I have tried making adjustments to my indicator but still.Could it be that my codes are way complicated for the bot to read or what?
 
Andrew Adjetey Osae: I created this indicator and I am trying to sell here but automatic validation cant get through.I get error that, tester takes too long and I have tried making adjustments to my indicator but still.Could it be that my codes are way complicated for the bot to read or what?
Your code is probably very inefficient or has other bugs!
 
I tested it myself and it works perfectly. i will rebuild it and check