http://www.investopedia.com/articles.../04/031004.asp

I presume I programmed it correctly, but who knows. . For what it is worth, take it. .

I imagined it originally as a method. .

Someone want to check it out, be my guest. .
https://www.cliqforex.com/attachment...1006525877.zip