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
VAMA Bands(BreakOut)+! supports long and short entries with filters from VAMA, MACD, DI, ADX, OBV and optional entry limits. Positions exit on opposite trend, force close periods or flip signals. Main settings adjust time ranges for positions, filter toggles, VAMA parameters like length and factor, and plot options for bands, SMA or TP/SL lines. Draws VAMA bands and optional lines directly on the chart. No exit rules beyond filters; uses percent equity position sizing with no default stop loss.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
롱
bool
true
active_long
숏:
bool
true
active_short
시작
time
timestamp("2025-01-01 00:00 +0900")
start_time
🆑 강제청산 시작구간
time
timestamp("2025-11-07 09:00 +0900")
force_from_time
🆑 강제청산 종료구간
time
timestamp("2025-11-07 18:59 +0900")
force_to_time
VAMA Band
bool
true
show_vama_band
SMA
bool
false
show_sma_line
TP
bool
false
show_tp_line
SL
bool
false
show_sl_line
표시 일 수
int
1
show_tpsl_lines_from_day
VAMA Band
bool
true
VAMA_on
MACD
bool
true
MACD_on
Show all 40 settings
Setting
Type
Default
Variable
DI 방향성
bool
true
DI_on
ADX
bool
true
ADX_on
OBV
bool
true
OBV_on
진입제한
bool
true
Limit_Entry_on
기간청산
bool
false
exit_on_force_close
역추세 청산 ⇛
bool
true
exit_on_opposite
VAMA
bool
false
exit_on_VAMA_flip
DI방향
bool
false
exit_on_di_flip
MACD
bool
false
exit_on_macd_flip
SMA
bool
false
exit_on_sma_flip
VAMA Length
int
42
lnV
VAMA VI Fct
float
0.67
fvV
VAMA AVG Length
int
1
vama_avg_lengh
VAMA Pre Var
int
1
vama_pre_bar
VAMA Source
source
close
scV
SampleN (0 = All)
int
0
nvb
STDV Factor
int
1
muD
STDV Length
int
50
lnD
MACD Fast length
int
23
fastLen_macd
MACD Slow length
int
69
slowLen_macd
DI 길이
int
13
length_di
DI Src
source
close
src_di
DMI DI
int
15
dmiLength
ADX평활
int
15
adxSmoothing
ADX임계
float
18.5
adxThreshold
OBV SMA
int
28
length_obv
기준선(롱)
int
0
Baseline_long
(숏)
int
0
Baseline_short
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.
Calculates a momentum squeeze using Bollinger Bands and Keltner Channels alongside a trend-filtering moving average. It generates long and short entries based on squeeze momentum bar conditions and an optional pre-squeeze dot count filter. Exits can trigger on
This strategy plots exponential-moving-average Bollinger bands on the price chart and calculates RSI. It opens a long position when close crosses above the upper band while RSI is at or above a threshold, the date filter allows trading, and no position is open
This strategy detects low-volatility consolidation by identifying when Bollinger Bands contract inside Keltner Channels. When the squeeze releases, it evaluates linear regression momentum and optional volume spikes to confirm breakouts. Long signals occur on r
This strategy plots MACD line, signal line, Bollinger Bands, and RSI on the price chart. It signals long entries on MACD crossover above signal with RSI below 50 and price below BB basis, plus optional DMI filter. Short entries are available but disabled by de
This price-chart strategy plots a simple moving average and upper and lower bands built from the standard deviation of close, scaled by separate offset inputs. It enters a fixed quantity long when close crosses above the upper band and a fixed quantity short w
This strategy trades long breakouts of a fast and a slow moving average on the price chart. It opens a long position when price crosses above either average, using a percentage of equity as size. It reduces the position by a set share when the high reaches the