Hi, I've some price distribution indior. Its initially named as market profile.mq4. But because the original only draw daily price distribution, I have altered them to draw monthly, weekly and yearly. And additionally 1 modifiion to draw price distribution from day [I] with n as days backward daily [ I n ].

But my coding skill is bad, and those indior were greatly lagged my pc when its place to draw more than 6 cycles of price distribution. Along with also the dynamics price distribution indior sometimes'jumped' a year back

I am wondering whether anyone can assist me with fixing / debugging these indiors.
https://www.cliqforex.com/attachment...8876793291.mq4
https://www.cliqforex.com/attachment...1354282800.mq4
https://www.cliqforex.com/attachment...1313572951.mq4
https://www.cliqforex.com/attachment...1683113884.mq4