Taking a new approach - I have noticed how all scripts have the same pattern (or issue) when it comes to a bear trend. The majority of scripts works just fine when in a bull trend but once the bears starts to overtake the shit hits the fan and the trades will mostly become negative.
To prevent this I tried to create a script that only trades during a bull run. This strategy is initially created for coins with a big marketcap and for daily timeframe. It works well on 4H timeframes for some coins as well though.
I have tested this through Bar Replay on daily and 4H BTC and it holds out! No repaint!
I will be adding a version for alerts soon.
Please try it out and let me know your thoughts and findings!
//Jack