BOLLINGER BANDS SQUEEZE STRATEGY CONVERSION TO TRADESCRIPT FOR BACKTESTING IN PI

Hi,

The strategy is “Bollinger bands squeeze” you might have heard made by john Bollinger it uses indicator such as Bollinger bands width ,Bollinger %b and volume.
OBJECTIVES:
STEP ONE - IDENTIFY THE SQUEEZE
the entry criteria for this is Bollinger bands should squeeze you can identify the squeeze from indicator Bollinger bands width you might have to alter it a bit to identify the squeeze (on timetotrade web based platform they had a indicator name “minimum in range” and they combined it with bollinger bands width thats how they identified the squeeze )
STEP TWO - THE BREAK OF THE UPPER BANDS
The break of the upper bands could be seen in bollinger bands %b
STEP THREE - HIGHER VOLUME THEN PREVIOUS BARS EITHER ON THE BREAK OF THE UPPER/LOWER BAND OR IMMEDIATELY FOLLOWING THE BARS OF THE BREAK
The volume should be highest of the session or at least should be highest from previous few bars and above average in general in any given time frame this should be either on the break of the upper/lower band or immediately following the upper/lower bands breaks in 2 to 3 bars

THE EXIT WILL BE THE BREAK OF LOWER/UPPER BANDS AFTER THE SETUP ENTRY OR PARABOLIC SAR EXIT STRATEGY

Please let me know as soon as possible if it can be done on tradescript
thanks

If you want professional help, can help you custom code this on .Net with 1 minute candle data that I have for the past 1 year and share the back test results.

Thanks i would love professional help but i need it for one hour candle bars and this is best suited for commodities market so i dont think it will work well on all equities it will depend on stock to stock basis plus i need it to work on pi software