rouxam

Backtesting 3commas DCA Bot v2

rouxam Aggiornato   
Updating previously published simulated 3commas DCA logic with a sexier insert and more meaningful default parameters.
Note di rilascio:
Added possibility to use the RSI as buy signal
Note di rilascio:
Large Revamp:
- Added Label with warning and summary
- Added Stop Loss support
- Improved time inputs
- General bug fixes
Note di rilascio:
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)
Note di rilascio:
Quick amend previous commit:
- Improved currency formatting
Note di rilascio:
more realistic amount of BTC (divided amount of BTC by 1000 because who owns 2000 BTC ?!)
Note di rilascio:
Fixed stop loss, reordered input as per 3c bot setup, fix max deviation calculation, add list of bot parameters on label printout
Note di rilascio:
- Fix quantities calculation
- Default to RSI-7 < 30 for buy signal
Note di rilascio:
amend previous commit
Note di rilascio:
- fix RSI start condition (Below; not crossover)
- set RSI default timeframe to 15
- small rework on the warning/results labels
Note di rilascio:
- Fixed Stop Loss triggers. Thank you @RealSaim for testing and reporting !
Note di rilascio:
- more meaningful default inputs
- Slightly more sexy snapshot
Note di rilascio:
New feature:
- Add a counter of total deals
Note di rilascio:
New Feature:
- Add nb of deals closed on hitting Stop Loss
Note di rilascio:
added support for Take Profit Type "% From Total Volume" or "% From Base Order "
Note di rilascio:
After getting the request from many of you, here it is:
- YOU CAN NOW BACK-TEST SHORT BOTS !
Note di rilascio:
new update includes:
- refactored closing deal code
- add comparison of DCA bot performance to simple Buy and Hold.
Note di rilascio:
Fix Trailing TP logic for short bot
Note di rilascio:
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
Note di rilascio:
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
Note di rilascio:
Fix bug on deal closure
Renamed "TA Preset" to "TV Preset"
Note di rilascio:
fixed typo
Note di rilascio:
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.
Script open-source

Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzarlo gratuitamente, ma il riutilizzo del codice è subordinato al rispetto del Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.

Vuoi usare questo script sui tuoi grafici?