BBTrend
Posted: Tue Feb 09, 2016 1:31 pm
I am trying to create in Edgerater an indicator based on John Bollinger's BBTrend. I am not able to compile the following initial attempt (the parameter defaults will be 20 for N, 2 for P and 50 for Q. Posted below it is reference to Mr Bollinger's code.
MID := MA (CLOSE, N);
UPPERST := MID + P*STDP (CLOSE, N);
LOWERST := MID - P*STDP (CLOSE, N);
UPPERLT := MID + P*STDP (CLOSE, Q);
LOWERST := MID - P*STDP (CLOSE, Q);
UPPER := ABS (UPPERST-UPPERLT);
LOWER := ABS (LOWERST-LOWERLT);
BBTrend := (LOWER-UPPER)/MID;
Hi Chris
Forgive me if this is already included in your superb software, but I think it would be very interesting to be able to have BBTrend as an indicator and scanable in the software. It is referred to in the last page of his TASC interview of 2102 and which also has a very nice reference to Ian Woodward. Mr Bollinger has revealed the code (see below)
It seems a very useful addition to the Bollinger Band analysis comparing the momentum of shorter term to longer term Bollinger Bands with above or below zero determining the trend and also turns in the oscillator possibly pointing to reversals.
Best regards
Ian
http://www.bollingerbands.com/bbandsfor ... 0bca191318
bands
Joined: 31 Dec 1969
Posts: 33
PostPosted: Tue Mar 11, 2014 1:04 pm Post subject: Reply with quote
BBTrend is calculated from two sets of Bollinger Bands, typically 20 period and 50 period.
Code:
lower = abs(lowerBB(20) - lowerBB(50))
upper = abs(upperBB(20) - upperBB(50))
BBTrend = (lower - upper) / middleBB(20)
Hope that helps,
John Bollinger
MID := MA (CLOSE, N);
UPPERST := MID + P*STDP (CLOSE, N);
LOWERST := MID - P*STDP (CLOSE, N);
UPPERLT := MID + P*STDP (CLOSE, Q);
LOWERST := MID - P*STDP (CLOSE, Q);
UPPER := ABS (UPPERST-UPPERLT);
LOWER := ABS (LOWERST-LOWERLT);
BBTrend := (LOWER-UPPER)/MID;
Hi Chris
Forgive me if this is already included in your superb software, but I think it would be very interesting to be able to have BBTrend as an indicator and scanable in the software. It is referred to in the last page of his TASC interview of 2102 and which also has a very nice reference to Ian Woodward. Mr Bollinger has revealed the code (see below)
It seems a very useful addition to the Bollinger Band analysis comparing the momentum of shorter term to longer term Bollinger Bands with above or below zero determining the trend and also turns in the oscillator possibly pointing to reversals.
Best regards
Ian
http://www.bollingerbands.com/bbandsfor ... 0bca191318
bands
Joined: 31 Dec 1969
Posts: 33
PostPosted: Tue Mar 11, 2014 1:04 pm Post subject: Reply with quote
BBTrend is calculated from two sets of Bollinger Bands, typically 20 period and 50 period.
Code:
lower = abs(lowerBB(20) - lowerBB(50))
upper = abs(upperBB(20) - upperBB(50))
BBTrend = (lower - upper) / middleBB(20)
Hope that helps,
John Bollinger