A Bitcoin strategy that ranks the current daily close against the previous 600 daily closes and scales the long position in tranches as that percentile falls, reaching full size near the 5th percentile, with a step of 10 percentile points per tranche by default.
1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
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
The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.
Overview
A grid then adjusts holdings inside each percentile zone on lower-timeframe bars. It recalculates on every tick, allows up to 100 stacked entries, and has no stop loss. A custom date range is optional.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
启用自定义回测区间
bool
false
useCustomRange
回测开始年份
int
2020
rangeStartYear
回测开始月份
int
1
rangeStartMonth
回测开始日期
int
1
rangeStartDay
回测结束年份
int
2030
rangeEndYear
回测结束月份
int
12
rangeEndMonth
回测结束日期
int
31
rangeEndDay
日K分位数窗口 (天)
int
600
windowDays
全仓所对应的最低分位数%
float
5.0
minPct
每下降多少分位数增加一份仓位%
float
10.0
stepPct
总网格数
int
10
gridCount
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
Mean Reversion Strategy is an overlay strategy that identifies pullbacks using a long-term EMA, RSI, and candlestick patterns. It generates long signals when a bullish engulfing candle forms below the EMA while RSI is oversold, and short signals when a bearish
The Chained Linear Regression Reversal Strategy plots linear regression channels with upper and lower standard deviation bands directly on the price chart across a user-defined time window. When price breaks out of the static channel for a confirmed number of
The STRG One Bar Pursuit strategy identifies single-bar momentum reversals by monitoring shifts between bullish and bearish candlesticks starting from the year 2024. It enters a long position when a bullish candle follows a bearish candle and enters a short po
This strategy draws on the price chart and combines Stochastic RSI, the Money Flow Index, and an exponential moving average to open long or short trades. Longs use the lower oscillator thresholds and shorts use the upper ones, with direction limited to longs,
This strategy generates buy and sell signals based on Bollinger Band crossovers combined with a simple moving average trend filter. It enters a long position when price crosses above the lower band while trading above the SMA filter line, and enters a short po