A multi-timeframe Dollar Cost Averaging (DCA) trading strategy that combines signals from three RSI indicators, three CCI indicators, and Bollinger Bands.
1Copy the scriptPress Copy script above, or the copy button on the code below.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.
Source Code
251 lines of Pine Script v5 from 3RSI 3CCI BB 5orders DCA strategy+.pine, published under GPL-3.0. Keep the author's credit and licence lines when you reuse it.
3RSI 3CCI BB 5orders DCA Strategy+ places up to five weighted scale-in safety orders to lower the average entry price. The script offers configurable trade directions, adjustable percentage take-profit targets, and optional stop-loss thresholds. Plotted directly on the price chart, it allows traders to filter DCA entries using separate timeframe resolutions. By default, stop-loss protection is disabled and position scaling relies on pyramiding entries.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Start Time
time
timestamp('01 January 2021 00:00')
start_time
End Time
time
timestamp('01 January 2022 00:00')
end_time
Source Bot
source
close
src_bot
Trade Direction
string
Long Bot
tradeDirection
1 order (%)
float
13.03
weight_order0
2 order (%)
float
14.29
weight_order1
3 order (%)
float
17.19
weight_order2
4 order (%)
float
22.67
weight_order3
5 order (%)
float
32.80
weight_order4
Rate cover (%)
float
80
st_long_orders
Take Profit (%)
float
1.4
longTakeProfit
StopLoss
bool
false
entry_long_SL
Show all 40 settings
Setting
Type
Default
Variable
for Long Bot (%)
float
80
longStopLoss
Rate cover (%)
float
500
st_short_orders
Take Profit (%)
float
1.4
shortTakeProfit
StopLoss
bool
false
entry_short_SL
for Short Bot (%)
float
500
shortStopLoss
Source
source
close
src
RSI-1
bool
true
rsi1_input
resolution
timeframe
5
rsi1_res
long <
int
65
rsi1_low
Length
int
14
rsi1_len_long
short >
int
37
rsi1_up
Length
int
14
rsi1_len_short
RSI-2
bool
true
rsi2_input
resolution
timeframe
15
rsi2_res
long <
int
72
rsi2_low
Length
int
14
rsi2_len_long
short >
int
37
rsi2_up
Length
int
14
rsi2_len_short
RSI-3
bool
true
rsi3_input
resolution
timeframe
30
rsi3_res
long <
int
74
rsi3_low
Length
int
14
rsi3_len_long
short >
int
34
rsi3_up
Length
int
14
rsi3_len_short
CCI-1
bool
true
cci1_input
resolution
timeframe
5
cci1_res
long <
int
190
cci1_low
Length
int
20
cci1_len_long
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
Alert BB + RSI [Alorse] is a multi-symbol mean-reversion strategy designed for cryptocurrency trading. It evaluates Bollinger Bands and the Relative Strength Index (RSI) across up to 20 user-defined ticker symbols simultaneously. The strategy enters long posit
This strategy combines Bollinger Bands with a short RSI to fade moves that leave the bands and then return. A long requires the prior bar below the lower band and oversold, then a close back inside the band while RSI is between 30 and 50. Shorts mirror that at
Greeffer RSI Strategy is a trading strategy that generates buy and sell entries based on Bollinger Bands and RSI levels. It places stop orders at upper and lower Bollinger Bands on band crossovers, and adds positions when RSI reaches extreme levels. Users can
This strategy overlays the price chart to trade DAX futures during European market hours. It calculates exponential and simple moving averages, RSI, MACD, Bollinger Bands, ATR, and realized volatility to simulate VIX levels. Trades execute when session time fi
This strategy plots a simple moving average basis and upper and lower Bollinger bands on the price chart, with a fill between the bands. It also calculates RSI. It opens one long trade when RSI is above 25, price is at or below the lower band, and no position
Calculates a combination of the Relative Strength Index, MACD histogram, and Bollinger Bands contraction to identify long trade entries. The strategy signals a long position on a bullish bar when the MACD histogram turns upward while negative, RSI remains belo