Hi. I've been reading Price Headley's 'Big Trends in Trading' in which he proposes an indicator - Acceleration Bands. He gives the Tradestation code for the indicator, which basically translates to:
Upperband = ( High * ( 1 + 2 * (((( High - Low )/(( High + Low ) / 2 )) * 1000 ) * Factor )));
Lowerband = ( Low * ( 1 - 2 * (((( High - Low )/(( High + Low ) / 2 )) * 1000 ) * Factor )));
Not being very mathematical (and I'm sure this makes sense to someone), I can't understand the parts in the first parts of the formula, i.e. 1 + 2 (for Upperband) and 1 - 2 (for Lowerband). Simple maths, I'm sure, but why not use 3 (1 + 2 in Upperband) and -2 (1 - 2 in Lowerband)? I know I'm missing something here and I'd be grateful if someone can point me in the right direction.
For those interested, the Tradestation code is:
UpperBand:
Average((high*(1+2 * ((((high-low) / ((high+low) / 2)) * 1000) *. 0001))), 20)
LowerBand:
Average((low*(1-2 * ((((high-low) / ((high+low) / 2)) * 1000) *. 0001))), 20)
Cheers
Upperband = ( High * ( 1 + 2 * (((( High - Low )/(( High + Low ) / 2 )) * 1000 ) * Factor )));
Lowerband = ( Low * ( 1 - 2 * (((( High - Low )/(( High + Low ) / 2 )) * 1000 ) * Factor )));
Not being very mathematical (and I'm sure this makes sense to someone), I can't understand the parts in the first parts of the formula, i.e. 1 + 2 (for Upperband) and 1 - 2 (for Lowerband). Simple maths, I'm sure, but why not use 3 (1 + 2 in Upperband) and -2 (1 - 2 in Lowerband)? I know I'm missing something here and I'd be grateful if someone can point me in the right direction.
For those interested, the Tradestation code is:
UpperBand:
Average((high*(1+2 * ((((high-low) / ((high+low) / 2)) * 1000) *. 0001))), 20)
LowerBand:
Average((low*(1-2 * ((((high-low) / ((high+low) / 2)) * 1000) *. 0001))), 20)
Cheers