HB:EMA(COST(99.9),5);
LB:EMA(COST(0.1),5);
FG1:(HB-LB)*0.618+LB,COLORFF00FF,LINETHICK2;
FG11:(HB-FG1)*0.618+FG1,COLORCFB53B;
FG12:(HB-FG11)*0.618+FG11,COLORGREEN;
FG13:(FG11-FG1)*0.618+FG1,COLORA68064;
FG2:(FG1-LB)*0.618+LB,COLORFFFF00,LINETHICK2;
FG21:(FG1-FG2)*0.618+FG2,COLORFF7F00;
FG22:(FG2-LB)*0.618+LB,COLOR00FF7F;
FG23:(FG22-LB)*0.618+LB,COLORD8BFD8;
bbi:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,LINETHICK2;