TradingView
SyedMehdi
2020年1月17日早上3點40分

Yesterdays VWAP Line 

Apple Inc.NASDAQ

描述

Draws a line today at yesterdays VWAP.

發布通知

added ability to change resolution to security ()

發布通知

Minor updates

發布通知

Cleaning up chart and more minor updates

發布通知

  • added ability for user to set the vwap line to show only on intraday charts
  • some cleanup

發布通知

minor update to shorttitle
評論
THELEGENDSINGH
thanks mate for this :)
beginner1111
Hello, Hope you are well. This is a great indicator. Would it be possible to add the option of changing the colors? I’m using the indicator 3 times on the chart set to 1 day, 2 day, 3 day, but considering there is no option to customize the color, they all look the same. Also, if it would be possible to extend the lines out in time to the right and to the left?
healthwealth2009
Hi Syed, could you please help me capture the last minute session vwap price and draw lines.
ETCBTC
Try this for lines 5 and 6. Will allow you to enter custom resolutions

higherTF = input("D")
prevVwapHTF = security(syminfo.tickerid, higherTF, vwap[1], lookahead=barmerge.lookahead_on)
SyedMehdi
@ETCBTC, I'm debugging an issue where vwap[1] doesn't equal the vwap calculated using hlc3 for Apple.

Jan 14th,
- VWAP hlc3 at end of day was 314.80 - 314.75
- the value returned from security(...vwap[1]...) is 313.14

A similar issue exists on Jan 15th. Does anyone know what would cause this calculation error in the security ().?
Sohamchaudhari1
@SyedMehdi, Hi please check your twitter dm
Sohamchaudhari1
@Sohamchaudhari1, I have msg u on @ SyedMehdi twitter id
更多