一、通达信悲欢离合姊妹指标公式
N:=60;
BC:=(IF(C>(H+L+C)/3,(H*0.618+L*0.382)*0.382,(H*0.382+L*0.618)*0.382)+(O*0.382+C*0.618)*0.618);
EMN:EMA((MA(BC,N)+SMA(BC,N,N/3))/2,N),COLOR6600FF;
空头:EMA((EMN-(C-EMN)*C),1),COLORGREEN;
多头:EMA((EMN+(C-EMN)*C),1),COLORRED;
IF(多头<空头,多头,DRAWNULL),COLORCYAN;
GO:=EMN+(O-EMN)*O;
GH:=EMN+(H-EMN)*H,LINETHICK;
GL:=EMN+(L-EMN)*L,LINETHICK;
GC:=EMN+(C-EMN)*C,LINETHICK;
MA3C:=((EMA(GC,19)+EMA(GC,29))/2+EMA(GC,24))/2;
MA3H:=((EMA(GH,19)+EMA(GH,29))/2+EMA(GH,24))/2;
MA3L:=((EMA(GL,19)+EMA(GL,29))/2+EMA(GL,24))/2;
MA3O:=((EMA(GO,19)+EMA(GO,29))/2+EMA(GO,24))/2;
进出线:=(IF(MA3C>(MA3H+MA3L+MA3C)/3,(MA3H*0.618+MA3L*0.382)*0.382,(MA3H*0.382+MA3L*0.618)*0.382)+(MA3O*0.382+MA3C*0.618)*0.618);
FS:=2*进出线-REF(进出线,1),COLORWHITE;
趋势线:IF(进出线 STICKLINE(GC>=GO,GL,GH,0,0),COLORRED; STICKLINE(GC>GO,GO,GC,2,0),COLORRED; STICKLINE(GC>GO,GO,GC,1,0),COLORCC66FF; STICKLINE(GC STICKLINE(GC STICKLINE(GC 二、通达信唯美飞行彩带主图指标公式 AHC1:=CLOSE*VOL; AHC2:EMA((EXPMA(AHC1,3)/EXPMA(VOL,3)+EXPMA(AHC1,6)/EXPMA(VOL,6)+EXPMA(AHC1,12)/EXPMA(VOL,12)+EXPMA(AHC1,24)/EXPMA(VOL,24))/4,13),POINTDOT,COLORYELLOW; AHC22:EMA((EXPMA(AHC1,27)/EXPMA(VOL,27)+EXPMA(AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL,316))/4,13),POINTDOT,COLORWHITE; 内上1:=1.06*AHC22,COLORRED,LINETHICK2; ~:1.03*AHC22,POINTDOT,COLORWHITE; 内下1:=AHC22*0.94,COLORYELLOW,LINETHICK2; ~1:AHC22*0.97,POINTDOT,COLORWHITE; 【黄金线】:IF(内上1>=REF(内上1,1),内上1,DRAWNULL),COLORYELLOW,LINETHICK2; 青粗提示空仓!:IF(内上1<=REF(内上1,1),内上1,DRAWNULL),COLORCYAN,LINETHICK2; 【金底线】:IF(内下1>=REF(内下1,1),内下1,DRAWNULL),COLORYELLOW,LINETHICK2; 绿粗提示空仓!:IF(内下1<=REF(内下1,1),内下1,DRAWNULL),COLORGREEN,LINETHICK2; 内上:=1.06*AHC2; 内下:=AHC2*0.94; ~11:1.03*AHC2,POINTDOT,COLORYELLOW; ~22:0.97*AHC2,POINTDOT,COLORYELLOW; IF((内上 <= REF(内上,1)),内上,DRAWNULL),COLORGREEN,DOTLINE,LINETHICK2; IF((内上 >= REF(内上,1)),内上,DRAWNULL),COLORMAGENTA,DOTLINE,LINETHICK2; IF((内下 <= REF(内下,1)),内下,DRAWNULL),COLORGREEN,DOTLINE,LINETHICK2; IF((内下 >= REF(内下,1)),内下,DRAWNULL),COLORMAGENTA,DOTLINE,LINETHICK2; DRAWKLINE(H,O,L,C); ZT:=REF(C,1)*1.1-C<0.01 AND H=C; 启爆:=CROSS(C,内上1) OR CROSS(C,内下1) AND ZT; DRAWTEXT(启爆,L,'启爆'),COLORCYAN; STICKLINE(启爆,C,O,3,1),COLORWHITE; STICKLINE(启爆,C,O,1,0),COLORGREEN; 启爆1:=CROSS(C,内上) OR CROSS(C,内下) AND ZT; DRAWTEXT(启爆1,L*0.98,'启爆'),COLORYELLOW; STICKLINE(启爆1,C,O,3,1),COLORWHITE; STICKLINE(启爆1,C,O,1,0),COLORGREEN; 五十成本集中:=(COST(75)-COST(25))/(COST(75)+COST(25))*100; 成本价1:=COST(五十成本集中),COLORGREEN; 五十成本集中1:=100-五十成本集中; 成本价2:=COST(五十成本集中1),COLORBLUE; 顶部突破3:=REF(成本价2,2)>REF(成本价2,1) AND 成本价2>REF(成本价2,1); 顶部突破4:=REF(成本价2,2)=REF(成本价2,1) AND 成本价2>REF(成本价2,1); DRAWTEXT(顶部突破3 OR 顶部突破4 ,L*0.99,'跃'),COLORGREEN;