OPEN-SOURCE SCRIPT

Open Equals Low/High and Close above VWAP

Atualizado
Explanation of additional and updated elements in the script:

vwap(): This function computes the Volume Weighted Average Price. It’s used here to create a series of VWAP values.
closeAboveVWAP: A Boolean series that checks if the close price is above the VWAP.
Updated bgcolor() and plotshape() logic: These now include the new condition closeAboveVWAP. The markers and background colors will only show when open is equal to low or high and the close is above the VWAP.
Additional plot command for VWAP: It’s often helpful to visualize the VWAP on the chart, so I've included a plot line for the VWAP in blue color.

With these updates, when added to a TradingView chart, the script will mark and color the background of bars that satisfy both conditions (open equal to low/high and close above VWAP). It will also plot the actual VWAP line on the chart for better visual reference. The shapes will include texts specifying both criteria for clarity.
Notas de Lançamento
Explanation of additional and updated elements in the script:

vwap(): This function computes the Volume Weighted Average Price. It’s used here to create a series of VWAP values.
closeAboveVWAP: A Boolean series that checks if the close price is above the VWAP.
Updated bgcolor() and plotshape() logic: These now include the new condition closeAboveVWAP. The markers and background colors will only show when open is equal to low or high and the close is above the VWAP.
Additional plot command for VWAP: It’s often helpful to visualize the VWAP on the chart, so I've included a plot line for the VWAP in blue color.

With these updates, when added to a TradingView chart, the script will mark and color the background of bars that satisfy both conditions (open equal to low/high and close above VWAP). It will also plot the actual VWAP line on the chart for better visual reference. The shapes will include texts specifying both criteria for clarity.
Volume Weighted Average Price (VWAP)

Script de código aberto

No verdadeiro espírito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam compreendê-lo e analisá-lo. Parabéns ao autor! Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Quer usar esse script no gráfico?

Aviso legal