Balanced Price Range (BPR)
Balanced Price Range (BPR)
float box_high = na
float box_low = na
int box_left = 0
int box_right = 0
var box box_bearish = na
var box box_bullish = na
shouldDisplayDFVG()=>
fvg_type == 'Double FVG' or fvg_type == 'FVG + DFVG' or fvg_type == 'IFVG +
DFVG' or fvg_type == 'All'
// Bullish BPR
bull_num_since = ta.barssince(new_fvg_bearish)
bull_bpr_cond_1 = new_fvg_bullish and bull_num_since <= bars_since
bull_bpr_cond_2 = bull_bpr_cond_1 ? high[bull_num_since] + low[bull_num_since + 2]
+ high[2] + low > math.max(low[bull_num_since + 2], low) -
math.min(high[bull_num_since], high[2]) : na
bull_bpr_cond_3 = true
bear_bpr_cond_3 = true