PROTECTED SOURCE SCRIPT
Mis à jour Trend-following Microprofit w/ Smart DCA BACKTESTING VERSION

Companion to the alert script: 
Tradingview doesn't like backtesting with too little capital or trade sizes less than 1 share, so the "Net Profit" number may not be accurate right off the bat. To get a better idea, change the order size or initial capital so the strategy is trading the appropriate % of initial capital. For example, if your personal capital is $2000 and you are making $100 trades, your trades are 5% of initial capital. That is roughly equivalent to the defaults using orders of 1 BTC with $100,000 capital.
Tightening the stop level will improve the Net Profit to Max Drawdown ratio, making the strategy more suitable for large trade sizes.
This script does not provide alerts for Gunbot. Find the settings you like using this strategy script, then plug those values into the alert script.
If you like this you can buy me chocolate below. Cheers!

Tradingview doesn't like backtesting with too little capital or trade sizes less than 1 share, so the "Net Profit" number may not be accurate right off the bat. To get a better idea, change the order size or initial capital so the strategy is trading the appropriate % of initial capital. For example, if your personal capital is $2000 and you are making $100 trades, your trades are 5% of initial capital. That is roughly equivalent to the defaults using orders of 1 BTC with $100,000 capital.
Tightening the stop level will improve the Net Profit to Max Drawdown ratio, making the strategy more suitable for large trade sizes.
This script does not provide alerts for Gunbot. Find the settings you like using this strategy script, then plug those values into the alert script.
If you like this you can buy me chocolate below. Cheers!
Notes de version
Fudged the strategy report a bit more ;)Notes de version
Added option to disable stop-loss when market is in a strong uptrend (thanks Calvinz for the suggestion!)Also added much needed RSI filtering and updated the default settings to the best ones I could find.
Script protégé
Ce script est publié en source fermée. Toutefois, vous pouvez l'utiliser librement et sans aucune restriction - en savoir plus ici.
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script protégé
Ce script est publié en source fermée. Toutefois, vous pouvez l'utiliser librement et sans aucune restriction - en savoir plus ici.
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.