def percent_b(data, period, upper_bb_std=<NUM_LIT>, lower_bb_std=<NUM_LIT>):
lb = lower_bollinger_band(data, period, lower_bb_std)<EOL>ub = upper_bollinger_band(data, period, upper_bb_std)<EOL>percent_b = ((np.array(data) - lb) / (ub - lb)) * <NUM_LIT:100><EOL>return percent_b<EOL>
%B.

Formula:
%B = ((data - lb) / (ub - lb)) * 100