Quote:
|
Originally Posted by nicogris
Hi all,
I have been trying to code the following but I am really to bad at that:
n=50;//lookback period as extern int
Period=21;//default BB setting
BandWidth[i]=Upper[i]-Lower[i] (more exactly= pips between high and low)
AvgBandwidth[i]=Average bandwidth over the last n period
SqueezeRatio[i]=BandWidth[i]/AvgBandwidth[i]
That is: if the squeeze ratio gets very low you'll have a breakout.
Can somebody help?
Thanks
Nick
|
Nick, if you are trying to see the squeeze as in the "Senters squeeze"
which can be found on tradethemarkets.com.
then simply load the BBands on your charts, then load the keltner channels on the same chart, change the colors on either the BBands or keltner so you can tell them apart.
Next make the line width on either larger, I used to like the keltner to be larger.
You should now be able to see when the squeeze happens