Need some help with interpreting the Babon Slope indicator

 

Hi guys!

As a newbie programmer, I'm having a hard time understanding how does the Babon Slope indicator calculates it's values.

Any help would be appreciated really, but I am most interested in the exact steps of the calculation.

Thank you in advance.

Balazs 

Files:
 

Question

What does that command do?

int e = Bars - counted_bars + period + 1;  

 
BBalazs:

Question

What does that command do?

int e = Bars - counted_bars + period + 1;  

Bars that the indicator has placed in memory

if it changed then it would clear up memory

Reason: