Strategy · Pine Script v4 · On the chart

KSM BTC Binance 2m

by tseitz

A Pine v4 strategy that plots a session VWAP with an upper and lower band offset by a percentage of the high and low.

View on GitHub

GitHub stars1on the repository
Pine versionv4older, still runs
Lines of code125
Settings10inputs
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

KSM BTC Binance 2m opens a long when a bar opens above the upper band, optionally only on green candles, and a short below the lower band on red candles, closing when the open crosses back through VWAP. Options allow double entries. Percentage stop-loss inputs are set separately for long and short trades, and a days-back window limits the test range. Orders are cash-sized. All lines draw on the price chart. The defaults appear tuned to one pair and timeframe.

Details

Published by

tseitz on GitHub

Type

Strategy, Pine Script v4

Draws

On the price chart

Category

Volume, Scalping

Markets

Crypto

Timeframes

M1-M5

Risk Notes

  • The strategy can add several entries in the same direction

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
Long Stop Loss %float1.4longStopPerc
Short Stop Loss %float1.3shortStopPerc
Allow double longs?booltrueallowDoubleLongs
Allow double shorts?booltrueallowDoubleShorts
Only long green candles?booltruelongGreenCandlesOnly
Only long green candles?booltrueshortRedCandlesOnly
VWAP High %float.016vwapHighPerc
VWAP Low %float.015vwapLowPerc
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

7 stars

Calculates volume profile levels over a lookback window to identify support, resistance, and Point of Control (POC) lines on the price chart. It executes trades based on price interaction with these low-volume zones, featuring customizable signal inversion and

Strategy v6 ScalpingVolume
Updated 1 year ago · None stated GitHub repository of Enhanced NQ1 Scalping Strategy

Btc Version5pine

by WMW333
3 stars

This strategy detects volume-based trading signals on Bitcoin perpetual futures. It calculates volume spikes on green and red candles along with ATR for volatility filtering. Long entries trigger on red candles with high volume and specific spike conditions wh

Strategy v5 VolumeVolatility & bands
Updated 4 years ago · None stated GitHub repository of Btc Version5pine

Aggressive Scalper

by femibol
1 stars

An open-source momentum scalping strategy for intraday charts of fast-moving stocks. It trades fast and slow EMA lines with a volume surge, a minimum momentum over a lookback, an optional VWAP condition and optional pullback re-entries, capped at a set number

Strategy v6 ScalpingOscillators & momentum
Updated 6 weeks ago · None stated GitHub repository of Aggressive Scalper

MNQ Volume Delta Strategy

by rosijay17-cmd
1 stars

An intraday strategy for MNQ futures built around volume delta and cumulative volume delta. Delta comes from either simple bar polarity or lower-timeframe volume. It adds delta z-scores, relative volume, close location, EMA and VWAP alignment filters, plus div

Strategy v6 VolumeDivergence
Updated 7 days ago · GPL-3.0 GitHub repository of MNQ Volume Delta Strategy

Talons Volume Surge (Memecoin)

by muammeryldrm42
1 stars

A long-only strategy for fast-moving small-cap crypto charts. It enters when volume is a set multiple of its recent average, the bar gains more than a minimum percentage, the candle is green and the move over the last twelve bars is not above a too-late limit.

Strategy v5 VolumeBreakout
Updated 5 months ago · None stated GitHub repository of Talons Volume Surge (Memecoin)

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