Strategy · Pine Script v4 · Own pane

Alper

by avatar-lavventura

This strategy combines the WaveTrend oscillator with Bollinger Bands and Keltner Channels squeeze momentum calculations in a separate pane.

View on GitHub

GitHub stars2on the repository
Pine versionv4older, still runs
Lines of code182
Settings29inputs
LicenceNone stated
Last update7 months ago5 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

Alper displays WaveTrend signal lines, oscillator difference areas, threshold levels, and crossover points directly in the subwindow while coloring bars on crosses. Entries are controlled within a specific backtest date range using momentum and crossover logic. Position risk is managed through configurable stop loss, take profit, and trailing stop inputs.

Details

Published by

avatar-lavventura on GitHub

Type

Strategy, Pine Script v4

Draws

Separate pane below the chart

Category

Oscillators & momentum, Volatility & bands

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

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

SettingTypeDefaultVariable
Backtest Start Monthint5fromMonth
fromDayint22fromDay
Backtest Stop Monthint12thruMonth
Backtest Stop Dayint30thruDay
Backtest Start Yearint2021fromYear
Backtest Stop Yearint2021thruYear
Channel Lengthint9n1
Average Lengthint20n2
BB Lengthint14length
BB MultFactorfloat2.0mult
KC Lengthint17lengthKC
KC MultFactorfloat1.5mult_kc
Show all 29 settings
SettingTypeDefaultVariable
Filter for Momenutum valuebooltrueuseMomAverage
Min for momentumint20MomentumMin
Length Fast RSIint5len_fast
Length Slow RSIint14len_slow
Over Bought Level 1int70obLevel1
Over Bought Level 2int53obLevel2
Over Sold Level 1int-70osLevel1
Over Sold Level 2int-53osLevel2
Fast MA SourcesourceopenmaFastSource
Fast MA Periodint14maFastLength
Slow MA SourcesourceopenmaSlowSource
Slow MA Periodint21maSlowLength
Invert Trade Direction?boolfalsetradeInvert
Take Profitint2000inpTakeProfit
Stop Lossint450inpStopLoss
Trailing Stop Lossint100inpTrailStop
Trailing Stop Loss Offsetint0inpTrailOffset
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

330 stars

A momentum strategy combining the TTM Squeeze oscillator with an RSI filter. It calculates linear regression momentum relative to Bollinger Bands and Keltner Channels alongside an RSI oscillator. Long signals trigger when momentum rises from below zero while R

Strategy v5 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of TTM Squeeze [Alorse]

2xTP, SL to Entry

by hasnocool
106 stars

This strategy executes mean-reversion trades based on Bollinger Bands and the Stochastic Oscillator. Long orders trigger when price dips below the lower band alongside a bullish Stochastic crossover, with an optional oversold threshold. Short orders execute on

Strategy v5 Mean reversionOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of 2xTP, SL to Entry

EMA Ribbon MACD

by iamrichardD
57 stars

This strategy combines an EMA ribbon with MACD confirmation and plots in a separate pane. It enters when ribbon alignment, optional MACD zero or signal crosses, volume, smart-money, and multi-timeframe filters agree, then exits with percentage stop loss and ta

Strategy v6 TrendMoving averages
Updated 1 year ago · Apache-2.0 GitHub repository of EMA Ribbon MACD
25 stars

This Pine Script strategy calculates Bayesian probabilities of price breaking up or down relative to Bollinger Bands and a Simple Moving Average. It plots these breakout and breakdown probability lines as oscillators in a separate pane. Long entries trigger wh

Strategy v4 Oscillators & momentumVolatility & bands
Updated 6 years ago · None stated GitHub repository of Bayesian BBSMA Oscillator Strategy

Greeffer BB Strategy

by SammyEnigma
18 stars

This strategy fades Bollinger Band extremes using the close. It enters short when price crosses above the upper band and the 14-period RSI is above 70, and enters long when price crosses below the lower band and RSI is below 30. It closes half of an open short

Strategy v4 Volatility & bandsOscillators & momentum
Updated 6 years ago · None stated GitHub repository of Greeffer BB Strategy

AwesomeADX

by koradiyakaushal
12 stars

AwesomeADX is a Pine Script v4 strategy that combines an Awesome Oscillator, ADX directional movement, and Bollinger percent B with an optional four-length moving-average trend filter. It sizes each position as a percentage of equity and can limit trades to a

Strategy v4 Oscillators & momentumMoving averages
Updated 5 years ago · MIT GitHub repository of AwesomeADX

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