此指標(biāo)公式是改造優(yōu)化好的很好用買賣信號(hào)主.副圖上有顯示而且很準(zhǔn)望喜歡.
{優(yōu)化后的[通達(dá)伩]趨勢(shì)分析}
買線:=EMA(C,2);
賣線:=EMA(SLOPE(C,21)*20+C,42);
STICKLINE(買線>=賣線,CLOSE,OPEN,3.3,0), COLOR7070FF;
STICKLINE(買線>=賣線,LOW,HIGH,0,0), COLORYELLOW;
STICKLINE(買線<賣線,CLOSE,OPEN,3.3,0), COLORFF6600;
STICKLINE(買線<賣線,LOW,HIGH,0,0), COLORCCCC66;
趨勢(shì):MA(CLOSE,9),POINTDOT,COLORWHITE,LINETHICK1;
壓力:MA(REF(HHV(C,30),1),2),COLOR009900,LINETHICK1;
支撐:MA(REF(LLV(C,30),1),2),COLOR1880FF,LINETHICK1;
支撐價(jià):LLV(LOW,34) ,COLORFF7F00,LINETHICK1;
阻力價(jià):HHV(HIGH,34),COLORYELLOW,LINETHICK1;
V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);
HY1:=REF(EMA(V1,3),1);
DRAWTEXT(CROSS(CLOSE,HY1),LOW,'買進(jìn)'),COLORYELLOW;
SHORT:=12;
LONG:=26;
M:=9;
DIFF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIFF,M);
MACD:=2*(DIFF-DEA);
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
DRAWTEXT(低位金叉,L*0.92,'低位金叉'),COLOR8000FF;
A1:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(A1=2,21)=1;
DRAWTEXT(二次金叉,L*0.90,'二次金叉');
X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);
Y:=EMA(CLOSE,10);
DRAWTEXT(CROSS(Y,X),(LOW * 0.95),'安全C級(jí)');
VAR1:=LLV(LOW,21);
VAR2:=HHV(HIGH,21);
AK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5);
AK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13);
DD:=EMA(((0.667 * REF(AK1,1)) + (0.333 * AK1)),2);
VAR3:=LLV(LOW,55);
VAR4:=HHV(HIGH,34);
VAR5:=EMA((((CLOSE - VAR3) / (VAR4 - VAR3)) * 100),3);
VAR6:=((AK + VAR5) / 2);
VAR7:=EMA(((0.667 * REF(VAR5,1)) + (0.333 * AK1)),2);
VAR8:=EMA(VAR6,5);
BB:=EMA(((0.667 * REF(VAR8,1)) + (0.333 * VAR8)),2);
AB:=CROSS(AK1,AK);
BB1:=(CROSS(AK1,BB) AND (BB < 30));
CD:=(BB1 * 0.6);
DRAWTEXT((CD = 0.6),(LOW * 0.95),'安全A級(jí)');
DRAWTEXT((AB = 1),(LOW * 0.97),'安全 B 級(jí)'),COLOR33CC99;
多空:MA(CLOSE,30){,CIRCLEDOT},COLOR808080,LINETHICK1;
玌價(jià):=MA(CLOSE,1);
加倉:=MA(C,10)>REF(MA(C,10),1) AND MA(C,5)>MA(C,10) AND V>MA(V,5) AND CROSS(C,MA(C,5));
DRAWTEXT(加倉=1,L*0.98,'加倉'),COLORRED;
X1:=(C+L+H)/3;
X2:=EMA(X1,6);
X3:=EMA(X2,5);
BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
EMA8:=EMA(C,8);
DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),
EMA8,'∠45上升'),COLORWHITE;
畫線 : STICKLINE(CLOSE<OPEN AND REF(CLOSE,1)>REF(OPEN,1),REF(CLOSE,1),REF
(CLOSE,1),10,0),COLORGREEN,LINETHICK6;
{ VOL+獲利比}
獲利比:IF(WINNER(CLOSE),WINNER(CLOSE)*100,20);
VOLUME:=MA(VOL,1),COLOR005000;
MA5:MA(VOL,5),COLOR400080;
MA10:MA(VOL,10),COLOR808080;
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
買量:IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),
VOL/2)),COLORRED, LINETHICK0;
賣量:IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),COLORGREEN,LINETHICK0;
進(jìn)出量:買量+賣量,COLOR400080;
VAR7B:=IF(TROUGHBARS(3,6,1)=0 AND HIGH>LOW+0.04,4,0);
STICKLINE(REF(VAR7B>0,1),VOL,0,2.1,0),COLORYELLOW,LINETHICK1;
買:REF(VAR7B>0,1),COLORYELLOW,LINETHICK1;
VAR3:=PEAKBARS(3,6,1)<10;
VAR5:=IF(VAR3=1,2,0);
頂:= IF(VAR5=2,2,0);
賣:頂>REF(頂,1),COLORGREEN;
STICKLINE(頂>REF(頂,1),VOL,0,2.1,0),COLORGREEN;
STICKLINE(進(jìn)出量<0,0,進(jìn)出量,3.0,0),COLORFF6600;
STICKLINE(進(jìn)出量<0,0,進(jìn)出量,2.0,0),COLORFF9900;
STICKLINE(進(jìn)出量<0,0,進(jìn)出量,0.0,0),COLORFFCC00;
STICKLINE(進(jìn)出量<0,0,進(jìn)出量,0.0,0),COLORFFCC00;
STICKLINE(進(jìn)出量<0,0,進(jìn)出量,0.0,0),COLORCYAN;
STICKLINE(進(jìn)出量>0,0,進(jìn)出量,3.0,0),COLOR000099;
STICKLINE(進(jìn)出量>0,0,進(jìn)出量,2.0,0),COLOR0000CC;
STICKLINE(進(jìn)出量>0,0,進(jìn)出量,0.0,0),COLOR0000FF;
STICKLINE(進(jìn)出量>0,0,進(jìn)出量,0.0,0),COLORCC66FF;
相關(guān)圖片如下(點(diǎn)擊圖片可放大):154.jpg