Strategy · Pine Script v4 · Own pane

RSI-VWAP Indicator

by oguzhandilber

This strategy calculates a Relative Strength Index (RSI) applied to the Volume Weighted Average Price (VWAP) rather than standard close values.

View on GitHub

GitHub stars47on the repository
Pine versionv4older, still runs
Lines of code98
Settings21inputs
LicenceNone stated
Last update5 years ago17 Jun 2021

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

RSI-VWAP Indicator plots dedicated long and short RSI-VWAP lines with customizable overbought and oversold thresholds, alongside an EMA and SMA trend ribbon in a separate pane. Trades are entered on RSI-VWAP threshold crossovers and managed with percentage-based take profit, stop loss, and trailing stop levels. User inputs allow full control over indicator lengths, oversold and overbought levels, risk percentages, and backtest execution dates.

Details

Published by

oguzhandilber on GitHub

Type

Strategy, Pine Script v4

Draws

Separate pane below the chart

Category

Oscillators & momentum, Volume

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

  • The strategy can add several entries in the same direction

Topics

pinescriptpinescript-indicatorspinescript-strategiestradingviewtrading-strategies

Settings

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

SettingTypeDefaultVariable
Periodint14ribbon_period
RSI VOLUME WEIGHTED AVERAGE PRICE LONGbooltrueAct_RSI_VWAP_long
RSI-VWAP LENGTH LONGint15RSI_VWAP_length_long
RSI-VWAP OVERSOLD LONGfloat15RSI_VWAP_overSold_long
RSI-VWAP OVERBOUGHT LONGfloat72RSI_VWAP_overBought_long
RSI VOLUME WEIGHTED AVERAGE PRICE SHORTbooltrueAct_RSI_VWAP_short
RSI-VWAP LENGTH SHORTint14RSI_VWAP_length_short
RSI-VWAP OVERSOLD SHORTfloat8RSI_VWAP_overSold_short
RSI-VWAP OVERBOUGHT SHORTfloat72RSI_VWAP_overBought_short
Long Take Profit %int100long_tp_inp
Long Stop Loss %float3.3long_sl_inp
Trailing Stop Longint100long_trailing
Show all 21 settings
SettingTypeDefaultVariable
Short Take Profit %int100short_tp_inp
Short Stop Loss %int4short_sl_inp
Trailing Stop shortint100short_trailing
Backtest Start Yearint2019testStartYear
Backtest Start Monthint1testStartMonth
Backtest Start Dayint1testStartDay
Backtest Stop Yearint2020testStopYear
Backtest Stop Monthint12testStopMonth
Backtest Stop Dayint31testStopDay
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

Q-Trend + KVO Strategy

by TradersPost
218 stars

This strategy combines the ATR-banded Q-Trend indicator with the Klinger Volume Oscillator (KVO) to execute confluence trades. It enters long when a Q-Trend buy trigger aligns with a positive KVO value and a bullish candle confirmation, taking short trades und

Strategy v6 TrendVolume
Updated 3 months ago · None stated GitHub repository of Q-Trend + KVO Strategy

BBPBΔ(OBV-PVT)BB

by hasnocool
106 stars

This strategy calculates the normalized rate of change between On-Balance Volume (OBV) and Price Volume Trend (PVT) indicators. It applies Bollinger Bands to this volume metric along with a Hodrick-Prescott filter array for time series decomposition. Displayed

Strategy v4 VolumeVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of BBPBΔ(OBV-PVT)BB

BTC Futures MACD

by iamrichardD
57 stars

This strategy plots a MACD oscillator in a separate pane and trades Bitcoin futures from zero-line and signal-line crosses. Optional early momentum signals, a volume filter, and a trend moving-average filter can confirm entries. It sizes positions as fixed con

Strategy v6 Oscillators & momentumMoving averages Repaints
Updated 1 year ago · Apache-2.0 GitHub repository of BTC Futures MACD
13 stars

This strategy calculates the Volume Zone Oscillator (VZO) alongside volume spikes to detect directional momentum. It enters long positions when the VZO turns bullish accompanied by a volume spike, and enters short when the VZO turns bearish with elevated volum

Strategy v5 VolumeOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Ruckard Neobutane VZO bA002

Chaikin Oscillator - Eterna MCP

by EternaHybridExchange
9 stars

This strategy calculates the Chaikin Oscillator by taking the difference between fast and slow exponential moving averages of the Accumulation/Distribution line. It generates long and short entries when the oscillator crosses the signal threshold with directio

Strategy v5 Oscillators & momentumVolume
Updated 7 months ago · MIT GitHub repository of Chaikin Oscillator - Eterna MCP

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