levieux

Anaconda Backtest Version

This is the Anaconda strategy backtest version, no alerts. It will execute orders up to current_date - 2 days.

This is a LONG only strategy.

Anaconda waits for some thresholds to enter long. Once it enters long, it will setup profit and stoploss targets. These targets are updated if some conditions are met. The position is closed when the price hits profit or stoploss targets or when a certain bearish threshold is met.

No portfolio management is integrated. Positions are supposed to be entered with 100% equity and closed at 100%.

The strategy works better for large timeframes : 1h, 2h, 3h, 4h, 1D ...

You can apply the strategy to any symbol supported by TardingView and fine-tune the settings for the selected market/timeframe.

The strategy is supposed to be used on regular candles.

security() function has not been used. No special candles have been used (heikin ashi, renko etc.). Trailing stop (trail_* variables) have not been used.

==================
EXAMPLE SETTINGS
==================

These are the example settings for some assets that make the strategy perform well in the backtest mode.

Settings are listed in order of appearance in the strategy settings dialog in TradingView.

Please note that exaggerated profits for some symbols may come from the fact that the minimum ticker size of that symbol has been increased (from 0.0001 to 0.001 for example) between the start date and end date of the backtest. So you will see some trades closing outside the candle's ohlc range. Unfortunately, this is a limitation in TV and can't do much about it.

BNB/USDT (4h) : 11,5,1,3,10,4,1,4,5,200,6,2,19 (rsi threshold = 50)
FTM/USDT (1h) : 11,8,3,4,5,5,1,5,7,400,5,3,20 (rsi threshold=50)
ETH/USDT (4h) : 11,5,1,3,2,5,1,4,3,200,4,3,20 (rsi threshold = 68)
MATIC/USDT (1h) : 9,10,3,4,6,7,1,6,7,200,2,5,18 (rsi threshold = 70)
DASH/USDT (4h) : 8,8,3,3,4,4,1,7,5,200,3,2,21 (no rsi)
BAT/USDT (4h) : 8,8,3,3,7,7,1,8,6,200,3,2,21 (rsi threshold = 40)
BAT/USDT (1h) : 9,9,3,6,6,7,1,7,7,300,6,4,21 (no rsi)
DOGE/USDT (1h) : 11,8,3,4,4,9,1,4,6,200,3,2,18 (rsi thresold = 70)
NKN/USDT (1h) : 6,7,3,4,2,8,3,5,8,200,6,3,15 (rsi threshold = 50)
BTC/USDT (4h) : 6,5,3,4,7,6,5,5,6,200,2,3,15 (no rsi)
BTC/USDT (3h) : 6,5,3,4,7,5,1,6,4,300,2,2,17 (no rsi)

Protected script
This script is published closed-source but you may use it freely. You can favorite it to use it on a chart. You cannot view or modify its source code.
Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?