通达信天潭K线彩旗变色K线主图公式,完全比美指南针财富传奇的彩旗软件公式
M1:EMA(C,3),COLOR00FF00,LINETHICK2;
M2:EMA(M1,2),COLOR00FF00;
M3:EMA(M2,2),COLOR00FF00;
M4:EMA(M3,2),COLOR00FF00;
M5:EMA(M4,2),COLOR00FF00;
M6:EMA(M5,2),COLOR00FF00;
看跌:= LOW<M2 AND CLOSE<M1 AND (M1-M2)<0.04;
卖出:=FILTER(看跌,4);
转势:=CROSS(M1,M3) AND M6>M5 AND C>M6;
买入:=FILTER(转势,1);
DRAWICON((买入),L*0.97,7);
DRAWICON((卖出),H*1.02,8);
BM:=ZIG(3,5)*100;
GM:=MA(BM,2);
DM:=CROSS(BM,GM);
WM:=CROSS(GM,BM);
EM:=REF(INDEXC,1);
DRAWTEXT(FILTER(DM=1,5),LOW-0.2,'买'),LINETHICK2,COLOR00FFFF;
DRAWTEXT(WM=1,HIGH*1.03,'逃'),LINETHICK2,COLOR33FF33;
DRAWTEXT(CROSS(C, M1) AND CROSS(C, M2) AND CROSS(C, M3) AND CROSS(C, M4) AND CROSS(C, M5) AND CROSS(C, M6),L-0.1,'穿'),COLORRED;
MA7:MA(CLOSE,24),COLOR0000FF,LINETHICK1;
MA8:MA(CLOSE,60),COLORWHITE,LINETHICK1;
A1:=C=HHV(C,13);
A2:=BARSLAST(A1);
A3:=IF(A2>0,REF(C,A2),REF(C,A2));
A4:=CROSS(C,REF(A3,1));
一号旗:=A4 AND COUNT(A4,5)=1;
DRAWTEXT(一号旗=1,L-0.1,'蓝旗'),COLORBLUE;
D1:=C=HHV(C,89);
D2:=BARSLAST(D1);
D3:=IF(D2>0,REF(C,D2),REF(C,D2));
D4:=CROSS(C,REF(D3,1));
红旗:=D4 AND COUNT(D4,5)=1;
DRAWTEXT(红旗=1,L-0.6,'五面八面彩旗'),COLORRED;
DRAWTEXT(FILTER(ATAN((MA(C,30)/REF(MA(C,30),1)-1)*100)*180/3.1416>30 AND ATAN((MA(C,10)/REF(MA(C,10),1)-1)*100)*180/3.1416>45 AND CROSS(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.1416,60),10),H,'腾'),COLORYELLOW;
DRAWTEXT(IF((CROSS(EMA(IF(C>REF(C,1),(3*H+4*C+3*OPEN+2*L)/12,(2*H+4*C+3*OPEN+3*L)/12),25),L) AND MA(C,5)>MA(C,30) AND HHV(0.01*EMA(AMOUNT,13)/EMA(VOL,13),10)>10 AND HHV(0.01*EMA(AMOUNT,34)/EMA(VOL,34),15)>18 AND EMA(IF(C>REF(C,1),(3*H+4*C+3*OPEN+2*L)/12,(2*H+4*C+3*OPEN+3*L)/12),8)>EMA(IF(C>REF(C,1),(3*H+4*C+3*OPEN+2*L)/12,(2*H+4*C+3*OPEN+3*L)/12),25)),15,0),L,'枪B'),COLORYELLOW;
DRAWTEXT((REF(CLOSE/REF(CLOSE,1),3)>1.099 OR REF(CLOSE/REF(CLOSE,1),6)>1.099 OR REF(CLOSE/REF(CLOSE,1),4)>1.099 OR REF(CLOSE/REF(CLOSE,1),5)>1.099 OR REF(CLOSE/REF(CLOSE,1),2)>1.099) AND CROSS(EMA(IF(C>REF(C,1),(3*H+4*C+3*OPEN+2*L)/12,(2*H+4*C+3*OPEN+3*L)/12),8),LOW) AND EMA (EMA(IF(C>REF(C,1),(3*H+4*C+3*OPEN+2*L)/12,(2*H+4*C+3*OPEN+3*L)/12),25),3),LOW*0.97,'枪A'),COLORMAGENTA;
DRAWTEXT((REF(H,1)-MAX(REF(O,1),REF(C,1)))/ABS(REF(C,1)-REF(O,1))>3 AND CLOSE>OPEN,L-0.7,'兵'),COLORYELLOW;
DRAWTEXT(CROSS(C,MA(C,60)) AND COUNT(MA(C,3)> MA(C,5),1),L-0.3,'起'),COLORRED;
DRAWTEXT(WINNER(C)*100>65 AND (C-REF(C,1))/C*100>0.1 AND (WINNER(C*1.1)-WINNER(C*0.9))/WINNER(HHV(H,0))*100<26=1,H-0.2,'黑'),COLORWHITE;
DRAWTEXT(REF(CLOSE,1)/ REF(OPEN,1)<1 AND CLOSE>OPEN AND CLOSE>REF(OPEN,1) AND VOL/REF(VOL,1)<1 AND CLOSE>MA(CLOSE,5),L-0.1,'控'),COLORBLUE;
|