Strategy · Pine Script v4 · On the chart

ETHUSDT Binance 3m (Mean Reversion)

by tseitz

A Pine v4 strategy that fades moves away from VWAP.

View on GitHub

GitHub stars1on the repository
Pine versionv4older, still runs
Lines of code113
Settings7inputs
LicenceNone stated
Last update4 years ago2 Dec 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

ETHUSDT Binance 3m (Mean Reversion) plots VWAP with percentage bands and opens a long when a green non-doji candle opens below the lower band, or a short when a red candle opens above the upper band. A long exits when the high passes VWAP, and a short exits when the low falls under it. Settings cover band percentages, doji precision, stop-loss percentages and a days-back window. It draws on the price chart.

Details

Published by

tseitz on GitHub

Type

Strategy, Pine Script v4

Draws

On the price chart

Category

Volume, Mean reversion

Markets

Crypto

Timeframes

M1-M5

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
Max Days Back to Testint30daysBackMax
Min Days Back to Testint0daysBackMin
Precisionfloat0.4Precision
Long Stop Loss %float3longStopPerc
Short Stop Loss %float4shortStopPerc
VWAP High %float.025vwapHighPerc
VWAP Low %float.014vwapLowPerc
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

This strategy plots Bollinger Bands on the price chart using an EMA or SMA basis and a matching standard-deviation calculation. It enters long when price crosses back above the lower band and short when price crosses back below the upper band. An optional Intr

Strategy v4 Volatility & bandsMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Bollinger Bands Strategy with Intraday Intensity Index
13 stars

This strategy runs on the price chart to identify trade entries using volume sequences, specifically tracking consecutive declining volume candles followed by a volume surge at lower price levels. It provides webhook execution support for Zignaly copy trading

Strategy v5 VolumeVolatility & bands
Updated 1 year ago · None stated GitHub repository of Ruckard Voladder A002

Wyckoff Phase

by muammeryldrm42
7 stars

This strategy identifies Wyckoff consolidation ranges directly on the price chart to trade potential spring and upthrust events. It calculates highest highs and lowest lows over a customizable lookback period, filtering setups by average volume spikes and ATR

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · MIT GitHub repository of Wyckoff Phase
4 stars

This strategy draws on the price chart and identifies mean-reversion opportunities around daily volume-weighted average price (VWAP) bands. It enters long positions when the price crosses above the lower band while the Relative Strength Index indicates oversol

Strategy v6 Mean reversionSessions & time
Updated 2 months ago · MIT GitHub repository of NQ VWAP Reversion [trugurpala]
3 stars

Plots Donchian Channels and identifies trading setups based on price testing the channel extremes during high volume spikes. In long mode, it places limit buy orders when the low touches the lower Donchian band with volume exceeding a volume moving average mul

Strategy v4 Mean reversionVolatility & bands
Updated 4 years ago · CC0-1.0 GitHub repository of Greeffer's Long Strategy

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