Bull Bear Power with EMA, VWAP, and Adjustable BBP Filter (Based on Prior Candle)
This indicator provides a dynamic visual representation of market trends by combining Exponential Moving Averages (EMAs), VWAP, and Bull/Bear Power with custom candle coloring. It factors in how the current candle's open price compares to the previous candle's EMA values and includes user-adjustable settings for the Bull/Bear Power (BBP) calculation.
Bullish Candles:
Green when the open price is above both the fast and slow EMAs (from the prior candle), the fast EMA is greater than the slow EMA, and Bull Power is above 0 (i.e., bullish strength).
Blue when the open price is above both EMAs, the fast EMA is greater than the slow EMA, but Bull Power is above 0 and the price is below VWAP.
Bearish Candles:
Red when the open price is below both the fast and slow EMAs (from the prior candle), the fast EMA is less than the slow EMA, and Bull Power is below 0 (i.e., bearish strength).
Orange when the open price is below both EMAs, the fast EMA is less than the slow EMA, but Bull Power is below 0 and the price is above VWAP.
Custom BBP EMA: The EMA length used for calculating Bull/Bear Power is fully adjustable by the user for flexible market analysis.
Default Candle Coloring:
If no bullish or bearish conditions are met:
Purple when the current candle closes higher than it opens.
Yellow when the current candle closes lower than it opens.
Dynamic EMA and VWAP Plots:
The fast EMA turns green when it is above the slow EMA and red when it is below.
The slow EMA remains white for consistent reference.
VWAP is plotted for traders who choose to enable the VWAP filter. (Blue when price above, yellow when price below)