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
Btcperp H1 goes short on a green candle with a large upper spike and goes long on a red candle with a large lower spike, when volume exceeds a threshold, the prior bar volume and ATR are below limits. Position size comes from margin times leverage, with a trailing stop, a fixed tick stop loss, a daily trade cap, a daily loss limit and a date window.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Dal Mese
int
6
daMese
Dal Giorno
int
1
daGiorno
Da Anno
int
2020
daAnno
Al Mese
int
2
aMese
Al Giorno
int
28
aGiorno
A anno
int
2021
aAnno
Margine $
int
100
margine
Leva x
int
100
leva
Soglia Volumi
int
10000
Soglia_Volumi
Soglia Vol. barra precedente
int
2000000
Soglia_Volumi_Precedente
Soglia SpikeUp Green x Short
float
0.9
Soglia_spikeUpGreen
Soglia SpikeDown Red x Long
float
-0.7
Soglia_spikeDownRed
Show all 21 settings
Setting
Type
Default
Variable
Soglia ATR
int
5000000
Soglia_ATR
Soglia SpikeDown Reverse x short
int
-1
Soglia_SpikeDown_Reverse_per_short
Soglia SpikeUp Reverse x long
int
1
Soglia_SpikeUp_Reverse_per_long
Trailing points(livello attivazione
int
1300
trailpoints
Trailing offset (x tick sopra o sotto trail point
int
100
trailoffset
SL Long in ticks
int
1400
lossLong
SL Short in ticks
int
1400
lossShort
Max trades giornalieri
int
20
Max_trade_giornalieri
Max perdita giornaliera $
int
500
Max_loss_giornaliera
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.
This strategy identifies breakout momentum by combining Bollinger Bands and Keltner Channels with volume confirmation. It opens long positions when the upper Keltner Channel crosses above the upper Bollinger Band and volume exceeds its moving average. Converse
This intraday strategy implements Mark Fisher's Opening Range Breakout (ORB) methodology tailored for index futures like ES and NQ. It calculates session opening ranges, volume z-scores, and VWAP bands to plot support, resistance, and confirmation levels on th
This strategy evaluates breakout and trend opportunities on the price chart using a weighted composite score of volume, trend, and candlestick structure. It tracks volume spikes, fast and slow EMAs, higher-timeframe EMA trend alignment, opening ranges, and ses
This strategy overlays Bollinger Bands on the price chart and trades a long squeeze setup. It enters long when band width is below 0.022 and volume is at least the seven-bar average, using a stop order at the lower band. It places a short order when close cros
This strategy identifies volume-based rebound signals on the price chart. It detects three or more consecutive lower volume candles followed by a higher volume candle, with price remaining lower from the start of the volume sequence, signaling potential long e
This strategy monitors 15-minute volume to detect sudden volume spikes and triggers long entries directly on the price chart. It evaluates whether the latest 15-minute volume exceeds preceding bars by a factor of 10 or 50, provided that the total bar turnover