飞狐抓大波主图指标公式股票软件源码如下: aa1:=wma(c,2); bb1:=ema(aa1,2); a0:=ma(bb1,3); aa2:=wma((h+c+o)/3,18); dd3:=a0>=aa2 and c>aa2; dd4:=a0dd5:=a0>aa2 ; cc1:=((c-ref(ma(c,6),1))/6+ma(c,6))*1.004; cc2:=cross(c,cc1) and cc1>ref(cc1,1); {逃顶-止损} Zb1:=HHV(L,20); xx1 := MAX(MAX((H-L),ABS(REF(C,1)-H)),ABS(REF(C,1)-L)); xx2 :=ma(Xx1,13); xx3 :=ref(C,1)-ref(Xx2,1); xx4 :=hhv(Xx3,20); {成本} 强弱分界:ema(cost(85),10),PRECISION2,LINEDOT,COLORRED; CB1:=EMA(COST(5),5); CB2:=EMA(COST(13),5); CB3:=EMA(COST(34),5); CB4:=llv(CB1,34); CB5:=llv(CB2,34); CB6:=llv(CB3,34); CB7:=EMA(C,5); CB8:=llv(CB7,34); {-----------------【图解模板】---------------------} {K线} STICKLINE((dd4 or dd5) and o<=c ,h,l,0.5,0),Color00cc99; STICKLINE((dd4 or dd5) and o<=c ,c,o,7,0),Color00cc99; STICKLINE((dd4 or dd5) and o>=c ,h,l,0.5,0),Color3F8C3A; STICKLINE((dd4 or dd5) and o>=c ,c,o,7,0),Color3F8C3A; STICKLINE((dd3 or c>aa2) and o<=c,c,o,7,0),Colorred; STICKLINE((dd3 or c>aa2) and o<=c,h,l,0.5,0),Colorred; STICKLINE((dd3 or c>aa2) and o>=c,c,o,7,0),Colorff33ff; STICKLINE((dd3 or c>aa2) and o>=c,h,l,0.5,0),Colorff33ff; STICKLINE(cc2,h,l,0.5,0),colorwhite; STICKLINE(cc2,o,c,7,0),colorwhite; {www.gpxiazai.com 股票软件下载网_飞狐股票指标公式} STICKLINE(MA(C,13)>O and C>MA(C,13) and OSTICKLINE(MA(C,13)>O and C>MA(C,13),H,L,0.5,0),coloryellow; {逃顶-止损} PARTLINE(Zb1=ref(Zb1,1),Zb1),POINTDOT,COLORYELLOW; PARTLINE(xx4=ref(xx4,1),xx4),POINTDOT,COLORCYAN; {成本} 一关:IF(CB1>CB4,CB1,CB4),PRECISION2,COLORBLUE; 二关:IF(CB2>CB5,CB2,CB5),PRECISION2,COLORGREEN; 三关:IF(CB3>CB6,CB3,CB6),PRECISION2,COLORMAGENTA; 冲关:IF(CB7>CB8,CB7,CB8),PRECISION2,COLORWHITE; |