CG:MA(C,21),COLOR00FF00,LINETHICK2;
FL:HHV(CG,3),COLORCYAN,LINETHICK2;
FS:CG-(FL-CG),COLORRED,LINETHICK2;
TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10);
C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10);
C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
A:=REF(C,BARSLAST(HD));
Z:=REF(L,BARSLAST(LD));
T1:=BARSLAST(HD) BARSLAST(LD) AND NOT(HD) ;
T2:=BARSLAST(HD) BARSLAST(LD) AND NOT(LD);
前期头部:IF(T1,A,A),COLORFF00FF,LINETHICK2,POINTDOT;
前期底部:IF(T2,Z,Z),COLORWHITE,LINETHICK2,POINTDOT;
上收:=C; 上开:=O;上高:=H; 上低:=L;{www.9m8.cn 九毛八公式指标网}
强势线:MA(REF(HHV(上收,21),1),21),CIRCLEDOT,COLOR00FFFF,LINETHICK0;
全仓主升线:MA(REF(LLV(上收,30),1),21),CIRCLEDOT,COLORRED ,LINETHICK0 ;
明日买卖价:EMA(CLOSE,3.5),COLORWHITE;
STICKLINE(C 全仓主升线 AND C =O,C,O,6,0),COLOR00FFFF;
STICKLINE(C 强势线 AND C O,C,O,6,0),COLORRED;
STICKLINE(C 全仓主升线 AND C =O,C,O,6,0),COLOR00FFFF;
STICKLINE(C 全仓主升线 AND C =O,H,L,2,0),COLOR00FFFF;
STICKLINE(C 全仓主升线 AND C O,C,H,1,0),COLOR00FFFF;
STICKLINE(C 全仓主升线 AND C O,O,L,3,0),COLORRED;
STICKLINE(C 全仓主升线 AND C =O,C,L,3,0),COLORFF00FF;
STICKLINE(C 全仓主升线 AND C O,C,O,6,2),COLORRED,LINETHICK3;
STICKLINE(C 强势线 AND C =O,C,O,6,2),COLOR00FF00,LINETHICK2; STICKLINE(MA(C,60) =REF(MA(C,60),12),MA(C,60),MA(C,60),6,4),COLORFF00FF,LINETHICK4;
STICKLINE(MA(C,60) REF(MA(C,62),12),MA(C,60),MA(C,60),6,4),COLOR00FF00,LINETHICK4;
DRAWTEXT(CROSS(明日买卖价,强势线) ,明日买卖价-0.1,'------追涨'),COLORRED;
DRAWTEXT(CROSS(强势线,明日买卖价) ,强势线+0.2,'-减仓-'),COLOR00FFFF;
DRAWTEXT(CROSS(明日买卖价,全仓主升线) ,明日买卖价-0.1,'买进-------'),COLORFFFF00;