Strategy · Pine Script v5 · On the chart

VAMA Bands(BreakOut)+!

by ymlee1104

This strategy trades breakouts using VAMA Bands on the price chart.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code489
Settings40inputs
LicenceNone stated
Last update7 months ago13 Mar 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
  4. 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.

Details

Published by

ymlee1104 on GitHub

Type

Strategy, Pine Script v5

Draws

On the price chart

Category

Breakout, Moving averages, Volatility & bands, Oscillators & momentum

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

  • The strategy enters trades without a stop loss

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
롱booltrueactive_long
숏:booltrueactive_short
시작timetimestamp("2025-01-01 00:00 +0900")start_time
🆑 강제청산 시작구간timetimestamp("2025-11-07 09:00 +0900")force_from_time
🆑 강제청산 종료구간timetimestamp("2025-11-07 18:59 +0900")force_to_time
VAMA Bandbooltrueshow_vama_band
SMAboolfalseshow_sma_line
TPboolfalseshow_tp_line
SLboolfalseshow_sl_line
표시 일 수int1show_tpsl_lines_from_day
VAMA BandbooltrueVAMA_on
MACDbooltrueMACD_on
Show all 40 settings
SettingTypeDefaultVariable
DI 방향성booltrueDI_on
ADXbooltrueADX_on
OBVbooltrueOBV_on
진입제한booltrueLimit_Entry_on
기간청산boolfalseexit_on_force_close
역추세 청산 ⇛booltrueexit_on_opposite
VAMAboolfalseexit_on_VAMA_flip
DI방향boolfalseexit_on_di_flip
MACDboolfalseexit_on_macd_flip
SMAboolfalseexit_on_sma_flip
VAMA Lengthint42lnV
VAMA VI Fctfloat0.67fvV
VAMA AVG Lengthint1vama_avg_lengh
VAMA Pre Varint1vama_pre_bar
VAMA SourcesourceclosescV
SampleN (0 = All)int0nvb
STDV Factorint1muD
STDV Lengthint50lnD
MACD Fast lengthint23fastLen_macd
MACD Slow lengthint69slowLen_macd
DI 길이int13length_di
DI Srcsourceclosesrc_di
DMI DIint15dmiLength
ADX평활int15adxSmoothing
ADX임계float18.5adxThreshold
OBV SMAint28length_obv
기준선(롱)int0Baseline_long
(숏)int0Baseline_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.

Similar Pine Scripts

106 stars

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

Strategy v5 Oscillators & momentumVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Athena Momentum Squeeze - Autoview

Bollinger bands examples

by tradingstrategy-ai
53 stars

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

Strategy v5 Volatility & bandsOscillators & momentum
Updated 3 years ago · None stated GitHub repository of Bollinger bands examples

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

Strategy v5 Volatility & bandsBreakout
Updated 7 months ago · None stated GitHub repository of Bollinger Band Squeeze - Volatility Breakout
330 stars

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

Strategy v5 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of MACD + BB + RSI [Alorse]

Bollinger Breakout

by hackingthemarkets
189 stars

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

Strategy v4 Volatility & bandsBreakout
Updated 3 years ago · None stated GitHub repository of Bollinger Breakout

均线突破交易系统

by tangly1024
76 stars

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

Strategy v5 TrendMoving averages
Updated 4 months ago · None stated GitHub repository of 均线突破交易系统

More strategys

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers