Nice idea, thanks! When reviewing your code, I did not understand the redundant logic:DigitalCrypto » 11 Nov 2017, 13:16 wrote:Here's a function I wrote to determine a market trend using a higher timeframe without relying on any indicators.
First you check for the latest trend condition in those two while loops for a maximum depth of 20 bars.
Then you take the result of that first check and check the same thing again, just for the latest bar. Commenting this last check out should not make any difference, right?
Or did I miss something ... ?
Regards, simplex