rouxam

Backtesting 3commas DCA Bot v2

Updating previously published simulated 3commas DCA logic with a sexier insert and more meaningful default parameters.
Catatan Pelepasan: Added possibility to use the RSI as buy signal
Catatan Pelepasan: Large Revamp:
- Added Label with warning and summary
- Added Stop Loss support
- Improved time inputs
- General bug fixes
Catatan Pelepasan: Quick amend on previous commit:
- add comments in script
- add warnings for limitations on backtesting with stop loss (in general, do not use a stop loss if you use DCA on the Spot market)
Catatan Pelepasan: Quick amend previous commit:
- Improved currency formatting
Catatan Pelepasan: more realistic amount of BTC (divided amount of BTC by 1000 because who owns 2000 BTC ?!)
Catatan Pelepasan: Fixed stop loss, reordered input as per 3c bot setup, fix max deviation calculation, add list of bot parameters on label printout
Catatan Pelepasan: - Fix quantities calculation
- Default to RSI-7 < 30 for buy signal
Catatan Pelepasan: amend previous commit
Catatan Pelepasan: - fix RSI start condition (Below; not crossover)
- set RSI default timeframe to 15
- small rework on the warning/results labels
Catatan Pelepasan: - Fixed Stop Loss triggers. Thank you @RealSaim for testing and reporting !
Catatan Pelepasan: - more meaningful default inputs
- Slightly more sexy snapshot
Catatan Pelepasan: New feature:
- Add a counter of total deals
Catatan Pelepasan: New Feature:
- Add nb of deals closed on hitting Stop Loss
Catatan Pelepasan: added support for Take Profit Type "% From Total Volume" or "% From Base Order "
Catatan Pelepasan: After getting the request from many of you, here it is:
- YOU CAN NOW BACK-TEST SHORT BOTS !
Catatan Pelepasan: new update includes:
- refactored closing deal code
- add comparison of DCA bot performance to simple Buy and Hold.
Catatan Pelepasan: Fix Trailing TP logic for short bot
Catatan Pelepasan: New features !!
- Using TA Presets (Buy/Strong Buy/Sell/Strong Sell)
- Allow using different timeframes for RSI
- Allow using a percentage of equity rather than fixed amount of currency
- Numbered warnings
Catatan Pelepasan: New feature !!
- Backtesting timeframe updated automatically on the label

This is because the number of bars available is a fixed amount so if you select a 1m timeframe, you can backtest over only a few days, but if you select a 15m timeframe you can backtest over several months.

limits:
free account = 5000 bars
pro/pro+ account = 10000 bars
premium account = 20000 bars
Catatan Pelepasan: Fix bug on deal closure
Renamed "TA Preset" to "TV Preset"
Catatan Pelepasan: fixed typo
Catatan Pelepasan: Fancy update people !! A few weeks ago, TradingView released a new object called a "Table" and this is really a big upgrade on the usability of this backtester.
Skrip sumber terbuka

Dalam semangat TradingView yang sebenar, penulis skrip ini telah menerbitkannya dengan menggunakan sumber terbuka supaya pedagang-pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda dapat menggunakannya secara percuma tetapi penggunaan semula kod ini dalam penerbitan adalah dikawalselia oleh Peraturan Rumah. Anda boleh menyukainya untuk menggunakannya pada carta.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.

Ingin menggunakan skrip ini pada carta?