TradingView
SyedMehdi
17 de Jan de 2020 03:40

Yesterdays VWAP Line 

Apple Inc.NASDAQ

Descrição

Draws a line today at yesterdays VWAP.

Notas de Lançamento

added ability to change resolution to security ()

Notas de Lançamento

Minor updates

Notas de Lançamento

Cleaning up chart and more minor updates

Notas de Lançamento

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

Notas de Lançamento

minor update to shorttitle
Comentários
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
Mais