以下是同花顺箱体分吸指标公式
上为上限,碰上线卖出;
下为下线,碰下线买入;
n参数默认等于10
中轴线:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
压力线: BBI+3*STD(BBI,10);
支撑线: BBI-3*STD(BBI,10);
安全线: MA(CLOSE,30), CIRCLEDOT,COLORFFFF00;
上开:=O;
上收:=C;
上高:=H;
上低:=L;
JJ:=(上开+上高+上低)/3;
A:=EMA(JJ,4);
VA1:=EMA(上收,8);
VA2:=EMA(上收,20);
DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.978,\’★绝佳\’) ,LINETHICK2,colorred;
DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.02,\’★卖\’);
DRAWTEXT(CROSS(VA1,VA2)AND(C>=O)AND A>REF(A,1),VA1*0.97,\’★买\’),COLOR00FF00;
箱顶:MA(REF(HHV(上收,30),1),3),COLOR0000FF,LINETHICK2;
箱底:MA(REF(LLV(上收,30),1),2),COLOR00FF00,LINETHICK2;
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
DRAWTEXT(CROSS(买线,卖线)AND 箱顶>=REF(箱顶,1),LOW*0.95,\’★跟\’),COLOR00FFFF;