formula repost - it glitched on posting - a less than got interpreted as html
ST:=5;{Short term days}
LT:=10;{Long term days}
BTP:=C;{The price I am using}
BBT:=Abs(Mov(BBandTop(C,ST,S,2)-BTP,ST,S));
{BBT = difference between current price and Bollinger Band Top}
BBB:=Abs(Mov(BTP-BBandBot(C,ST,S,2),ST,S));
{BBT = difference between current price and Bollinger Band Bottom}
Sign:=If(BBB>BBT,-1,If(BBB<BBT,1,0));
{work out if we are closer to the top or bottom and come up with a sign to indicate the direction of the next move}
LTC:=(BBandTop(C,LT,S,2)-BBandBot(C,LT,S,2));
{Long Term Compression}
STC:=(BBandTop(C,ST,S,2)-BBandBot(C,ST,S,2));
{Short Term Compression}
STC:=If(STC=0,1,STC); {avoid divide by Zero}
Mov(Sign*LTC/STC,ST,S);
{smooth out the long term ratio to the short term with a short term moving average and assign a direction to it}
all washed out today, page-9
Currently unlisted. Proposed listing date: WITHDRAWN
Add to My Watchlist
What is My Watchlist?