Strategy · Pine Script v4 · On the chart

YFI XBT Binance 1m

by tseitz

This strategy plots a close VWAP and percentage-offset high and low VWAP bands on the price chart.

View on GitHub

Repaints

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

YFI XBT Binance 1m enters long when the bar opens above the high band, optionally only on a green candle, and short when the bar opens below the low band, optionally only on a red candle. It exits a long when the open drops below the close VWAP and a short when the open rises above it. Long and short stop distances default to 3 percent. Inputs also set a testing window in days and whether extra same-direction entries are allowed.

Details

Published by

tseitz on GitHub

Type

Strategy, Pine Script v4

Draws

On the price chart

Category

Volume, Breakout, Candlestick patterns, Scalping

Markets

Crypto

Timeframes

M1-M5

Risk Notes

  • Signals can change on the live bar or after it closes (repainting)

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 %float3longStopPerc
Short Stop Loss %float3shortStopPerc
Allow double longs?booltrueallowDoubleLongs
Allow double shorts?booltrueallowDoubleShorts
Only long green candles?booltruelongGreenCandlesOnly
Only long green candles?booltrueshortRedCandlesOnly
VWAP High %float.017vwapHighPerc
VWAP Low %float.019vwapLowPerc
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

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
257 stars

This overlay strategy marks short-term turning points on the price chart and enters SPY option-style trades from them. It plots simple moving averages of highs and lows, draws up and down reversal arrows, and colors bars when a short-term extreme coincides wit

Strategy v5 TrendMoving averages Repaints
Updated 6 weeks ago · None stated GitHub repository of SPY Options Trading - Alert
106 stars

This Pine Script strategy identifies potential Buy Today, Sell Tomorrow (BTST) opportunities based on price action and volume patterns. It calculates a 20-period simple moving average of volume and checks for three consecutive bullish candles with higher highs

Strategy v4 TrendVolume
Updated 2 years ago · GPL-3.0 GitHub repository of 3 Higher High Price & Vol
104 stars

Candlestick Pattern Strategy 1 is a scalping strategy designed for short-term timeframes. It evaluates two-bar candlestick price action patterns to generate entry signals directly on the price chart. When a bullish or bearish setup is detected, the strategy ex

Strategy v5 Candlestick patternsScalping
Updated 3 years ago · MIT GitHub repository of Candlestick Pattern Strategy 1
43 stars

This strategy trades SOL perpetual candles on the price chart. It tracks confirmed pivot highs and lows as support and resistance circles, then compares close with a smoothed filter and a three-period EMA to mark long and short conditions after the bar closes.

Strategy v5 Moving averagesSupport & resistance Repaints
Updated 2 years ago · None stated GitHub repository of SOL 1m Strategy Candle Bar

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