PI BackTetsing no Indicator named Bolinger Band B%

In PI BackTesting no Indicator named Bolinger Band B%. Which i can find in kite portal. Can you please let me know how can i use that in PI backtesting module. I tried to write code by myself but that value is not coming correct while formula was correct. Can you please help me on that ?

Buy Script
SET Bottom = BBB(CLOSE, 20, 1, SIMPLE) SET Top = BBT(CLOSE, 20, 1, SIMPLE) ((CLOSE - Bottom)/(Top-Bottom))>0.50
Exit Script
SET Bottom = BBB(CLOSE, 20, 1, SIMPLE) SET Top = BBT(CLOSE, 20, 1, SIMPLE) ((CLOSE - Bottom)/(Top-Bottom))<0.50
This is custom code i have written