Strategy · Pine Script v6 · On the chart

[TradersPost] Multi-VWAP Crossover

by TradersPost

This strategy plots up to four volume-weighted average price lines on the price chart: midnight, previous day, session, and a custom anchor such as session high and low, week, or month.

View on GitHub

GitHub stars218on the repository
Pine versionv6current
Lines of code1,259
Settings40inputs
LicenceNone stated
Last update3 months ago23 Jul 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

[TradersPost] Multi-VWAP Crossover enters when price crosses two selected lines, using same-bar, position, or either-cross logic, and can require the lines to align. Direction, market or limit orders, and a single-position mode are selectable. Stop loss is enabled by default, with optional take profit, trailing stops, and breakeven. Session hours, timezone, units, ATR length, and an optional date range adjust the setup.

Details

Published by

TradersPost on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

Volume, Trend, Sessions & time

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
Signal Line 1stringMidnighti_signal_line1
Signal Line 2stringSessioni_signal_line2
Entry ModestringPositioni_entry_mode
Require Line Alignmentboolfalsei_require_alignment
Midnight VWAPbooltruei_show_midnight
i_color_midnightcolorcolor.teali_color_midnight
Previous Day VWAPbooltruei_show_prevday
i_color_prevdaycolorcolor.orangei_color_prevday
Session VWAPbooltruei_show_session
i_session_timesession0930-1600i_session_time
i_color_sessioncolorcolor.orangei_color_session
Custom VWAPboolfalsei_show_custom
Show all 40 settings
SettingTypeDefaultVariable
i_custom_typestringSession High/Lowi_custom_type
i_color_customcolorcolor.purplei_color_custom
Default UnitstringPnLi_global_unit
ATR Periodint14i_atr_period
TimezonestringAmerica/New_Yorki_global_tz
Trigger PricestringCurrenti_trigger_price
Use Date Rangeboolfalsei_use_backtest_range
i_backtest_presetstringCustomi_backtest_preset
Start Datetimetimestamp('01 Jan 2020 00:00 +0000')i_backtest_start
End Datetimetimestamp('31 Dec 2030 23:59 +0000')i_backtest_end
DirectionstringBothi_direction
i_order_typestringMarketi_order_type
i_color_entrycolorcolor.grayi_color_entry
└ Limit Offsetfloat5i_limit_offset
i_limit_offset_unitstringTicksi_limit_offset_unit
Position ModestringSinglei_position_mode
Use Stop Lossbooltruei_use_sl
i_sl_valuefloat1000i_sl_value
i_sl_unitstringGlobali_sl_unit
i_color_slcolorcolor.redi_color_sl
└ Trailing  ›boolfalsei_use_trail
Triggerfloat500i_trail_activation
Offsetfloat250i_trail_offset
└ BE  ›boolfalsei_use_breakeven
Triggerfloat1000i_breakeven_activation
Lock Infloat500i_breakeven_profit
i_color_be_trigcolor#ff9900bai_color_be_trig
Use Take Profitbooltruei_use_tp
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

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

This strategy evaluates breakout and trend opportunities on the price chart using a weighted composite score of volume, trend, and candlestick structure. It tracks volume spikes, fast and slow EMAs, higher-timeframe EMA trend alignment, opening ranges, and ses

Strategy v6 TrendVolume Repaints
Updated 3 weeks ago · Custom licence GitHub repository of TradingAlpha Point-Clip Strategy
257 stars

Donald - Test Logic Futures is an overlay strategy designed for intraday futures trading. It combines kernel regression functions with exponential moving averages to evaluate price retracements and entry timing. Trades are filtered by session execution windows

Strategy v5 TrendMoving averages Repaints
Updated 6 weeks ago · None stated GitHub repository of Donald - Test Logic Futures
53 stars

This strategy enters long or short on the price chart when price is on the correct side of a 200-period EMA, MACD agrees, RSI is not at the opposing extreme, ADX exceeds a threshold, volume beats a 20-bar average, and close breaks the recent high or low. A tim

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · MPL-2.0 GitHub repository of BTCUSD 5M Optimized Strategy

ATOM 1m scalp HK

by dearvn
43 stars

This overlay strategy targets one-minute ATOM scalps. It tracks pivot highs and lows as resistance and support, compares a three-period EMA with a multi-stage smoothed close, and flags long or short when price crosses that curve in the matching direction. Dail

Strategy v5 ScalpingSupport & resistance Repaints
Updated 2 years ago · None stated GitHub repository of ATOM 1m scalp HK

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