Hello,
I'm attempting to write an MT4 indicator based on a trend strength formula found on a website. The formula is for calculating a Trend Strength Index. It looks like it has some potential in spotting fast moving price within a short move.
The problem is in my handling of the arrays and functions. The formula and a nice explanation about the indicator can be found here...
http://www.nonrandomwalk.com/Blog/tsi.html
I can get it to work when it runs live or on the tester but I can't figure out how to get it to work on past bars. When I drop it on a chart it produces a flat line for the past bars.
This is my first attempt at an indicator and my goal was to learn Arrays and Functions. I tried and read everything I could find, any help would be greatly Appreciated.
Thanks,
Gary
I'm attempting to write an MT4 indicator based on a trend strength formula found on a website. The formula is for calculating a Trend Strength Index. It looks like it has some potential in spotting fast moving price within a short move.
The problem is in my handling of the arrays and functions. The formula and a nice explanation about the indicator can be found here...
http://www.nonrandomwalk.com/Blog/tsi.html
I can get it to work when it runs live or on the tester but I can't figure out how to get it to work on past bars. When I drop it on a chart it produces a flat line for the past bars.
This is my first attempt at an indicator and my goal was to learn Arrays and Functions. I tried and read everything I could find, any help would be greatly Appreciated.
Thanks,
Gary
Attached File(s)
Trend-Strength-Index.mq4
7 KB
|
466 downloads