通達信TRZ亮景頂底指標公式
- 指標類別: 通達信指標公式
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 趨勢
- 畫線方法: 副圖
- 日期:2023-10-24 來源:互聯網
通達信TRZ亮景頂底指標公式:
N:=5;
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA :=EMA(DIFF,9);
MACD :=1000* (2*(DIFF-DEA))/EMA(C,30);
VARA:=EMA(REF(CLOSE,1),4);
色彩峰:=(SMA(MAX(CLOSE-VARA,0),6,1)/SMA(ABS(CLOSE-VARA),6,1)*100);
準備:=色彩峰<3.5,COLORDBDBDB;
出航:=FILTER(MACD<0 AND MACD>REF(MACD,1) AND 色彩峰<20,5), COLORBROWN;
飛燕:=CROSS(色彩峰,90),COLOR00FF00;
回歸:=CROSS(色彩峰,90),COLORDBDBDB;
STICKLINE(色彩峰,0,120,10,0),COLOR8BA400;
STICKLINE(色彩峰,0,90,10,0),COLOR8BA433;
STICKLINE(色彩峰,0,75,10,0),COLOR8BA466;
STICKLINE(色彩峰,0,60,10,0),COLOR8BA488;
STICKLINE(色彩峰,0,50,10,0),COLOR8BA4AA;
STICKLINE(色彩峰,0,40,10,0),COLOR8BA4BB;
STICKLINE(色彩峰,0,35,10,0),COLOR8BA4CC;
STICKLINE(色彩峰,0,25,10,0),COLOR8BA4EE;
STICKLINE(色彩峰,0,15,10,0),COLOR8BA5FF;
STICKLINE(色彩峰,0,-50,10,0),COLOR8BA433;
{STICKLINE(色彩峰,0,-30,10,0),COLOR8BA444;
STICKLINE(色彩峰,0,-10,10,0),COLOR8BA455;
STICKLINE(色彩峰,0,-5,10,0),COLOR8BA466;}
STICKLINE(色彩峰>0,0,色彩峰,10,0),COLOR66FF00;
STICKLINE(色彩峰>0,0,色彩峰*0.9,10,0),COLOR66EE00;
STICKLINE(色彩峰>0,0,色彩峰*0.8,10,0),COLOR66CC00;
STICKLINE(色彩峰>0,0,色彩峰*0.7,10,0),COLOR66AA00;
STICKLINE(色彩峰>0,0,色彩峰*0.6,10,0),COLOR668800;
STICKLINE(色彩峰>0,0,色彩峰*0.5,10,0),COLOR666600;
STICKLINE(色彩峰>0,0,色彩峰*0.4,10,0),COLOR664400;
STICKLINE(色彩峰>0,0,色彩峰*0.3,10,0),COLOR662200;
STICKLINE(色彩峰,0,-色彩峰*0.2,10,0),COLOR324D00;
RSV:= (CLOSE-LLV(LOW,4))/(HHV(HIGH,4)-LLV(LOW,4))*100;
FASTK:=SMA(RSV,3,1);
龍K:=SMA(FASTK,2,1);
龍D:=SMA(龍K,5,1);
狗:=LLV(LOW,10);
年:=HHV(H,25);
到來:=EMA((C-狗)/(年-狗)*4,4);
{頂底摸塊}
神:=2*SMA(V*((C+L)/2+(H+C)/2+L)/3,2,1)/SMA(V,2,1)-(3*HHV(SMA(V*((C+L)/2+(H+C)/2+L)/3,2,1)/SMA(V,2,1),2)-2*SMA(V*((C+L)/2+(H+C)/2+L)/3,2,1)/SMA(V,2,1));
奇:=(2*神+EMA((2*(C+L)/2+(H+C)/2+L+O)/5,2)+2*((EMA((C*2+H+L+O)/5,5)+MA((C*2+H+L+O)/5,13)+MA((C*2+H+L+O)/5,21))/3)+((EMA
((C*2+H+L+O)/5,13)+MA((C*2+H+L+O)/5,21)+MA((C*2+H+L+O)/5,34))/3)+((EMA((C*2+H+L+O)/5,21)+MA((C*2+H+L+O)/5,34)+MA((C*2+H+L+O)/5,55))/3))/7;
分清:=(FORCAST(HHV((C+L)/2,1),21)+(EMA(((C+L)/2+L+(H+C)/2)/3,55)-(C-EMA(((C+L)/2+L+(H+C)/2)/3,55))))/2;
放心買入:=(((C+L)/2+(H+C)/2+L)/3+(3*(C+H+L+(O+C+L)/3)/4-2*(C+L)/2))/2;
強:=(EMA((分清+3*((EMA(放心買入,5)*5+分清)/6+((EMA(奇,5)+EMA(奇,8)+EMA(奇,13))/3))/2)/4,3)/3),POINTDOT,COLOR00FFFF;
驗證:=((((C+L)/2-LLV(L,24))/(HHV((H+C)/2,24)-LLV(L,24))*1.1*(C+L)/2));
續持驗證:=EMA((2*(5*((EMA((2*C+L)/3,2)-EMA((2*C+H)/3,5))
-EMA((EMA((2*C+L)/3,2)-EMA((2*C+H)/3,5)),21)))
+(((C*2+H)/3+(C*2+H)/3)/2)+EMA(驗證,2))/4,2),COLOR555555;
TT:=240/FROMOPEN;
比:=TT;
WJ:=(H+L+C)/3;
V1:=IF(H=L,1,H-MAX(O,C));
V2:=IF(H=L,1,MAX(C,O)-WJ);
V3:=IF(H=L,1,MIN(O,C)-L);
V4:=IF(H=L,1,WJ-MIN(C,O));
V5:=VOL/IF(H=L,4,H-L);
V6:=(V1*V5);
V7:=(V2*V5);
V8:=(V3*V5);
V9:=(V4*V5);
買盤1:=DYNAINFO(23)*比;
賣盤1:=DYNAINFO(22)*比;
買盤2:=IF(ISLASTBAR AND C>300,(V9+V8)*TT,(V9+V8));
賣盤2:=IF(ISLASTBAR AND C>300,(V6+V7)*TT,(V6+V7));
買盤:=IF(ISLASTBAR AND PERIOD=5 AND C<300,買盤1,買盤2);
賣盤:=IF(ISLASTBAR AND PERIOD=5 AND C<300,賣盤1,賣盤2);
買賣差1:=買盤-賣盤;
換手買:=IF(PERIOD=5 AND C<300,買盤/CAPITAL*100,買盤/3)*2;
換手賣:=IF(PERIOD=5 AND C<300,賣盤/CAPITAL*100,賣盤/3)*2;
買賣差:=換手買-換手賣;
買賣:=換手買+換手賣;
STICKLINE(C>=O,-50,((換手買+換手賣)*N)-50,2.2,1),COLORRED;
STICKLINE(C<O,-50,((換手買+換手賣)*N)-50,2.2,1),COLORFFFF00;
STICKLINE(買賣差>=0,-50,(換手買*N)-50,1.5,0),COLORRED;
STICKLINE(買賣差>=0 AND C>=MA(C,30),-50,(換手買*N)-50,2.2,0),COLORRED;
STICKLINE(買賣差>=0,-50,(換手賣*N)-50,0.8,0),COLOR998800;
STICKLINE(買賣差>=0 AND C>=MA(C,30),-50,(換手賣*N)-50,1,0),COLORDDCC00;
STICKLINE(買賣差<0,-50,(換手買*N)-50,1.8,0),COLORRED;
STICKLINE(買賣差<0 AND C>=MA(C,30),-50,(換手買*N)-50,2.2,0),COLORRED;
STICKLINE(買賣差<0,-50,(換手賣*N)-50,0.8,0),COLOR998800;
STICKLINE(買賣差<0 AND C>=MA(C,30),-50,(換手賣*N)-50,1,0),COLORDDCC00;
STICKLINE(1,-50,MAX((換手買*N)-50,(換手賣*N)-50),0,0),COLORFFFFFF;
龍行鳳影:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)
-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)
-LLV(LOW,27))*100,5,1),3,1),LINETHICK0;
雙起雙飛:IF(龍行鳳影<=10,-30,-50),COLOR0000FF,LINETHICK2;
{頂上第一排小方塊為波段信號}
STICKLINE(續持驗證<強,-55,-60,3,1),COLORYELLOW;
STICKLINE(續持驗證>=強,-55,-60,3,1),COLORMAGENTA;
{第二排小方塊為走勢強弱信號}
STICKLINE(續持驗證>= REF(續持驗證,1),-65,-70,3,1),COLORMAGENTA;
STICKLINE(續持驗證< REF(續持驗證,1),-65,-70,3,1),COLORYELLOW;
DRAWTEXT(準備,-10,'ャ'),COLORDBDBDB;
DRAWTEXT(準備,-10,'︼'),COLOR688EC1;
DRAWTEXT(CROSS( 0,MACD)AND 色彩峰>75,110,'☆'),COLORFFFFFF;
DRAWTEXT(飛燕,70,'ヲ'),COLORDBDBDB;
DRAWTEXT(出航,-10,'Ψ'), COLORBROWN;
紅紅的天:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)
-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)
-LLV(LOW,27))*100,5,1),3,1);
IF(CROSS(紅紅的天,2),70,-50),COLOR0000FF;
有心就有:IF(CROSS(紅紅的天,2),70,DRAWNULL),CROSSDOT,LINETHICK6,COLORFF77FF;
好運!:IF(CROSS(紅紅的天,2),70,DRAWNULL),POINTDOT,LINETHICK4,COLOR00CCFF;
恭喜:STICKLINE(CROSS(到來,0.3),-70,-50,3,0), COLOR00AAFF,LINETHICK1;
STICKLINE(CROSS(到來,0.3),-60,-50,3,0),COLORRED,LINETHICK1;
發財:STICKLINE(CROSS(3.5,到來),100,120,2,0), COLORRED,LINETHICK2;
STICKLINE(CROSS(3.5,到來),110,120,2,0),COLORYELLOW,LINETHICK2;
L1:=(CLOSE-LLV(LOW,11))/(HHV(HIGH,11)-LLV(LOW,11))*200-60;
鳳K:SMA(L1,3,1),COLORAACCAA;
鳳D:SMA(鳳K,3,1),COLORAACCAA;
通達信TRZ亮景頂底指標公式實例圖解:
通達信TRZ亮景頂底指標公式