Skip to content

Instantly share code, notes, and snippets.

@princefr
Created May 11, 2020 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save princefr/2d8358850023f570ea584c013249673a to your computer and use it in GitHub Desktop.
Save princefr/2d8358850023f570ea584c013249673a to your computer and use it in GitHub Desktop.
VWAPD
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © prince_ond
//@version=4
study("VWAPD[Liquidator]", overlay=true)
k = sma(vwap(close), 3)
d = sma(k, 3)
p4 = plot(k, color=color.blue, title="vwap-A", transp=100)
p5 = plot(d, color=color.orange, title="vwap-B", transp=100)
fill(p4, p5, color=k > d ? color.green : color.red, transp=10, title='VWAPB BG')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment