hi: first, very good script ;)
but i have this error : scalper str1.6 (0,10,1,20,1900,2100,1,12,percent of equity, 100,0,0,10000,defaut defaut 0 percent 0,)order limite 2000 was reached
If we could find a way to add a Bollinger Band type "squeeze" to your study, this would be unstoppable. Here's the squeeze code I use for bollinger bands, if you can translate this into the right code to highlight the "squeezes" in your study:
//Bollinger Squeeze comp_len=input(125, "Back comparison period for squeeze detection (bars)") length = input(20, minval=1) src = input(close, title="Source") mult = input(2.0, minval=0.001, maxval=50)
bbwidth() => basis dev upper lower (upper-lower)/basis