Index ( ) is an oscillator similar to , but with taken into account. ( ) is an indicator of trend strength. By putting them together on two-dimensional space and checking, whether nearby values have indicated a strong uptrend or downtrend, we hope to filter out bad signals from the MA crossing strategy.
This is an experiment, so any feedback would be appreciated. It was tested on BTC /USDT pair on 5 minute timeframe. I am planning to expand this strategy in the future to include more moving averages and filters.
- Apply kNN filter - if you want to try just the MA crossing without the kNN filter
- kNN minimum difference - skews the number of votes needed for the decision, so this many more votes are needed to allow taking a position (e.g., if this is 1, the position would not be taken if there are 3 agains 3 votes, but would be taken if there are 4 agains 3 votes)
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.