通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、通达信强弱趋势指标公式
UP:=SMA(IF(CLOSE>REF(CLOSE,1),CLOSE-REF(CLOSE,1),0),3,1);
DN:=SMA(IF(CLOSE<=REF(CLOSE,1),ABS(CLOSE-REF(CLOSE,1)),0),3,1);
指标:=100*UP/(UP+DN);
强弱:EMA(指标,3),COLORRED;
平均:EMA(强弱,3),COLORGREEN;
风险:80,COLOR8887EA;
安全:20,COLOR8887EA;
分界:50,CIRCLEDOT,LINETHICK2,COLORGREEN;
VAR1:=1/WINNER(CLOSE);
VAR2:=MA(CLOSE,13);
VAR3:=100-ABS((CLOSE-VAR2)/VAR2*100);
VAR4:=LLV(LOW,75);
VAR5:=HHV(HIGH,75);
VAR6:=(VAR5-VAR4)/100;
VAR7:=SMA((CLOSE-VAR4)/VAR6,20,1);
VAR8:=SMA((OPEN-VAR4)/VAR6,20,1);
VAR9:=3*VAR7-2*SMA(VAR7,15,1);
VARA:=3*VAR8-2*SMA(VAR8,15,1);
VARB:=100-VARA;
VARC:=IF(900101<DATEANDDATE<99991230,1,0);
VARE:=REF(LOW,1)*0.9;
VARF:=LOW*0.9;
VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;
VAR11:=EMA(VAR10,30);
VAR12:=CLOSE-REF(CLOSE,1);
VAR13:=MAX(VAR12,0);
VAR14:=ABS(VAR12);
VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;
VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;
VAR17:=BARSCOUNT(CLOSE);
VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;
VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);
VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
VAR1D:=SMA(VAR1C,4,1);
VAR1E:=SMA(VAR1D,3,1);
VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
VAR20:=VAR18<=25ANDVAR19<-95ANDVAR1F>20ANDVAR1B<-30ANDVAR1E<30ANDVAR11-CLOSE>=-0.25ANDVAR15<22ANDVAR16<28ANDVAR17>50;
VAR21:=(HIGH+LOW+CLOSE)/3;
VAR22:=(VAR21-MA(VAR21,14))/(0.015*AVEDEV(VAR21,14));
VAR23:=(VAR21-MA(VAR21,70))/(0.015*AVEDEV(VAR21,70));
VAR24:=IF(VAR22>=150ANDVAR22<200ANDVAR23>=150ANDVAR23<200,10,0);
VAR25:=IF(VAR22<=-150ANDVAR22>-200ANDVAR23<=-150ANDVAR23>-200,-10,VAR24);
VAR26:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
VAR27:=REVERSE(VAR26);
VAR28:=SMA(VAR26,3,1);
散户:SMA(VAR28,3,1)*VARC,,;
主力:SMA(散户,3,1)*VARC,,COLORYELLOW;
X_1:=7;
X_2:=5;
X_3:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
X_4:=SMA(X_3,X_1,1);
X_5:=SMA(X_4,X_2,1);
STICKLINE(X_4>X_5,X_4,X_5,0.8,1),COLORRED;
STICKLINE(X_4<X_5,X_4,X_5,0.8,1),COLORGREEN;
X_6:=(2*CLOSE+HIGH+LOW+OPEN)/5;
X_7:=LLV(LOW,34);
X_8:=HHV(HIGH,34);
X_9:=EMA((X_6-X_7)/(X_8-X_7)*100,13);
X_10:=EMA(X_9,3);
STICKLINE(X_9<X_10,X_9,X_10,0.8,0),COLORCYAN;
STICKLINE(X_9>X_10,X_9,X_10,0.8,0),COLORLIRED;
中趋:X_4,NODRAW,COLORRED;
小趋:X_9,NODRAW,COLORLIRED;
STICKLINE(X_9>=90ORX_4>=90,96,101,4,1),COLORYELLOW;
STICKLINE(X_4>=90ANDX_9>=90,96,101,4,0),COLORYELLOW;
STICKLINE(X_9<=10ORX_4<=10,(-1),4,4,1),COLORBLUE;
STICKLINE(X_4<=10ANDX_9<=10,(-1),4,4,0),COLORBLUE;
STICKLINE(X_9<=10ORX_4<=10ANDX_4>REF(X_4,1)ANDX_9>REF(X_9,1),(-1),4,4,1),COLOR7F00FF;
STICKLINE(X_4<=10ANDX_9<=10ANDX_4>REF(X_4,1)ANDX_9>REF(X_9,1),(-1),4,4,0),COLOR7F00FF;
STICKLINE(X_9>=90ORX_4>=90ANDX_4<REF(X_4,1)ANDX_9<REF(X_9,1),96,101,4,1),COLORWHITE;
STICKLINE(X_4>=90ANDX_9>=90ANDX_4<REF(X_4,1)ANDX_9<REF(X_9,1),96,101,4,0),COLORWHITE;
小均值:EMA(X_9,5),COLORGRAY;
IF(小均值>=REF(小均值,1),小均值,DRAWNULL),COLORMAGENTA;
中均值:EMA(X_4,5),COLORCYAN;
IF(中均值>=REF(中均值,1),中均值,DRAWNULL),COLORRED;
XG:=中均值>REF(中均值,1)AND中均值<REF(中均值,3);
短高:90,DOTLINE,COLORGREEN;
高抛:80,DOTLINE,COLORYELLOW;
低吸:20,DOTLINE,COLORYELLOW;
短底:10,DOTLINE,COLORRED;
二、分时主力强弱指标公式
T31:=BARSLAST(TIME2=093100);
T40:=BARSLAST(TIME2=094000);
T41:=BARSLAST(TIME2=094100);
T50:=BARSLAST(TIME2=095000);
T51:=BARSLAST(TIME2=095100);
T60:=BARSLAST(TIME2=100000);
C31:=REF(C,T40);
O31:=REF(C,T31);
C40:=REF(C,T50);
O40:=REF(C,T41);
C50:=REF(C,T60);
O50:=REF(C,T51);
A1:=C31>O31ANDC40>O40ANDC50>O50ANDO40>=C31ANDO50>=C40;
A2:=C31<O31ANDC40<O40ANDC50<O50ANDO40<=C31ANDO50<=C40;
A3:=C31>O31ANDC40>O40ANDC50<O50ANDC50<C40ANDO50/C50<C40/O40ANDO50/C50<C31/O31;
A4:=C31>O31ANDC40<O40ANDC50<O50ANDC40<C31ANDC50<C40ANDC31/O31<O40/C40ANDC31/O31<O50/C50;
A5:=C31<O31ANDC40<O40ANDC50>O50ANDC40<C31ANDO50>=C40;
A6:=C31<O31ANDC40>O40ANDC50>O50ANDC40>C31ANDC50>C40ANDO31/C31<C40/O40ANDO31/C31<C50/O50;
A7:=C31>O31ANDC40<O40ANDC50>O50ANDC31/O31>O40/C40ANDC50/O50>O40/C40;
A8:=C31<O31ANDC40>O40ANDC50<O50ANDC40/O40<O31/C31ANDC40/O40<O50/C50;
A9:=MAX(C31,O31)>=MAX(C40,O40)ANDMAX(C31,O31)>=MAX(C50,O50);
A10:=MIN(C31,O31)<=MIN(C40,O40)ANDMIN(C31,O31)<=MIN(C50,O50);
B1:='连续三上、三阳开泰、飚涨走势可能涨停、量大出货否则守仓、大阳、盯量';
B2:='连续三下、三只乌鸦、重挫走势可能跌停、只要反弹立即出货、大阴、随逃';
B3:='二上一下、二阳一小阴、震荡走势后势看好、逢高减磅逢低吸纳、中阳、阴须小';
B4:='一上二下、二只乌鸦、拉高出货后市看坏、逢高减磅后市下跌、中阴、阳线小';
B5:='二下一上、二阴一阳、急跌控底后市不明、逢高减磅观望为主、下影阴、阳大小';
B6:='一下二上、一阴二阳、震荡控底后市趋好、观望为主谨慎吸纳、下影阳、阴大小';
B7:='一上一下、二阳夹一阴、震荡走市后市看好、持股待涨逢低吸纳、中阳、阴须小再一上';
B8:='一下一上、二阴夹一阳、跌幅较大尾市杀跌、只要反弹立即出货、中阴、阳须小再一下';
B9:='三不创新高、可小阴小阳、三次不过短时顶部、层层阻力离场观望、上影阴阳、小K线';
B10:='三不创新低、可小阴小阳、三次不破短时底部、走势不强逢低少吸、下影阴阳、小K线';
DRAWTEXT_FIX(A1,0.005,0.005,0,B1),COLORRED;
DRAWTEXT_FIX(A2,0.005,0.005,0,B2),COLORGREEN;
DRAWTEXT_FIX(A3,0.005,0.005,0,B3),COLORMAGENTA;
DRAWTEXT_FIX(A4,0.005,0.005,0,B4),COLORCYAN;
DRAWTEXT_FIX(A5,0.005,0.005,0,B5),COLORBROWN;
DRAWTEXT_FIX(A6,0.005,0.005,0,B6),COLORBLUE;
DRAWTEXT_FIX(A7,0.005,0.005,0,B7),COLORYELLOW;
DRAWTEXT_FIX(A8,0.005,0.005,0,B8),COLORLIGREEN;
DRAWTEXT_FIX(A9,0.005,0.05,0,B9),COLORWHITE;
DRAWTEXT_FIX(A10,0.005,0.1,0,B10),COLORLIMAGENTA;
IF(BETWEEN(T60,0,9)ANDC50>=O50,C50,DRAWNULL)COLORRED;
IF(BETWEEN(T40,0,9)ANDC31>=O31,C31,DRAWNULL)COLORRED;
IF(BETWEEN(T40,0,9)ANDC31<O31,C31,DRAWNULL)COLORCYAN;
IF(BETWEEN(T40,0,9)ANDC31>=O31,O31,DRAWNULL)COLORRED;
IF(BETWEEN(T40,0,9)ANDC31<O31,O31,DRAWNULL)COLORCYAN;
STICKLINE((T40=0ORT40=9)ANDC31>=O31,O31,C31,0,0)COLORRED;
STICKLINE((T40=0ORT40=9)ANDC31<O31,O31,C31,0,0)COLORCYAN;
IF(BETWEEN(T50,0,9)ANDC40>=O40,C40,DRAWNULL)COLORRED;
IF(BETWEEN(T50,0,9)ANDC40<O40,C40,DRAWNULL)COLORCYAN;
IF(BETWEEN(T50,0,9)ANDC40>=O40,O40,DRAWNULL)COLORRED;
IF(BETWEEN(T50,0,9)ANDC40<O40,O40,DRAWNULL)COLORCYAN;
STICKLINE((T50=0ORT50=9)ANDC40>=O40,O40,C40,0,0)COLORRED;
STICKLINE((T50=0ORT50=9)ANDC40<O40,O40,C40,0,0)COLORCYAN;
IF(BETWEEN(T60,0,9)ANDC50<O50,C50,DRAWNULL)COLORCYAN;
IF(BETWEEN(T60,0,9)ANDC50>=O50,O50,DRAWNULL)COLORRED;
IF(BETWEEN(T60,0,9)ANDC50<O50,O50,DRAWNULL)COLORCYAN;
STICKLINE((T60=0ORT60=9)ANDC50>=O50,O50,C50,0,0)COLORRED;
STICKLINE((T60=0ORT60=9)ANDC50<O50,O50,C50,0,0)COLORCYAN;
V1:=(C*2+H+L)/4*10;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);V4:=2*(V2-V3)*5.5;
主力进:IF(V4>=0,V4,0),COLORFF00FF;
V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
V6:=EMA(3*V5-2*SMA(V5,18,1),5);
V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;
V8:=(INDEXC*2+INDEXH+INDEXL)/4;
V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3);
VB:=(V9-VA)/2;
大盘资金进场:IF(VB>=0,VB,0),colorred;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线:=EMA(V11,3);
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
准备现金:STICKLINE(趋势线<=13,0,20,2,0),COLORCC9900;
AA:=(趋势线<=13)ANDFILTER((趋势线<=13),15);
DRAWTEXT(AA,30,'准备现金'),COLORCC9900;
买入股票:STICKLINE(趋势线<=13ANDV12>13,0,50,5,0),COLOR0099FF;
BB:=(趋势线<=13ANDV12>13)ANDFILTER((趋势线<=13ANDV12>13),10);
DRAWTEXT(BB,40,'买入股票'),COLOR0099FF;
CC:=(趋势线>=90ANDV12)ANDFILTER((趋势线>=90ANDV12),10);
STICKLINE(大盘资金进场AND趋势线<13,0,30,2,0),colorred;
STICKLINE(主力进AND趋势线<13,0,40,2,0),COLORFF00FF;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),13,1)/SMA(MAX(LOW-VAR2,0),13,1)*100;
VAR4:=EMA(IF(CLOSE*1.2,VAR3*13,VAR3/13),13);
VAR5:=LLV(LOW,34);
VAR6:=HHV(VAR4,34);
VAR7:=IF(LLV(LOW,55),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=EMA(CLOSE,5);
VAR10:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*(-10);
VAR11:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7*(-1);
VAR12:=EMA(CLOSE,5)*(-1);
XL1:=MA(LOW,2)*0.96;
XL2:=MA(LOW,26)*0.85;
XL3:=REF(XL1,1)<XL2ANDREF(XL1,1)<XL1ANDREF(XL1,1)<REF(XL1,2);
VA:=(2*C+H+L)/4;
VB:=LLV(L,5);
VC:=HHV(H,5);
强:EMA((VA-VB)/(VC-VB)*27,5),COLORRED;
弱:EMA(强,3),COLORGREEN;
{XG:CROSS(强,弱);}
DRAWICON(CROSS(强,弱),强,17);
DRAWICON(CROSS(弱,强),强,6);
DRAWICON(CROSS(强,弱),强,1);
DRAWICON(CROSS(弱,强),弱,2);
VAR1:=C-REF(C,1);
VAR2S:=O-REF(O,1);
VAR3S:=H-REF(H,1);
VAR4S:=L-REF(L,1);
VAR5S:=(VAR1+VAR2S+VAR3S+VAR4S)/4;
机构●大户:VAR5S*VOL/10000,LINETHICK0;
STICKLINE(机构●大户>0,机构●大户,0,2.3,0),COLORRED;
STICKLINE(机构●大户<0,机构●大户,0,2.3,0),COLORGREEN;
连红天:=BARSLASTCOUNT(机构●大户>0);
选股票:机构●大户>2;
[源码注释]通达信公式动态翻译结果
月K赋值:"KDJ的K[取月线数据]"(9,3,3)
月D赋值:"KDJ的D[取月线数据]"(9,3,3)
输出月金叉:月K上穿月D AND (月D<40 OR 月D>60)
推荐阅读:通达信大趋势公式指标
N:=5;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
VARB2:=(RSV/2+22)*1;
量:=EMA(VOL,13);
资金:=EMA(AMOUNT,13);
过滤:=((资金/量)/100);
提纯:=(((CLOSE-过滤)/过滤)*100);
黄金:=((提纯<(0))ANDZXNH);
低买:=IF(黄金ANDRSV<VARB2-2,50,0);
上涨分界:=25;
KDJ提前金叉:=(CROSS(上涨分界,低买));
极限抄底:KDJ提前金叉;
K1:=AMOUNT/100/VOL;
K2:=EMA(K1,6);
K3:=EMA(K2,5);
K4:=EMA(K3,12);
K5:=EMA(K4,5);
STICKLINE(K2>=K3,K2,K3,1,0),LINETHICK1,COLORGREEN;
STICKLINE(K4>=K5,K4,K5,1,0),LINETHICK1,COLORYELLOW;
STICKLINE(K2<=K3,K2,K3,1,0),LINETHICK1,COLORRED;
STICKLINE(K4<=K5,K4,K5,1,0),LINETHICK1,COLORWHITE;
FF15:EMA(C,15),COLORBLUE,LINETHICK2;
IF(FF15>=REF(FF15,1),FF15,DRAWNULL),COLORMAGENTA,LINETHICK3;
IF(FF15<REF(FF15,1),FF15,DRAWNULL),COLORWHITE,LINETHICK3;
FF2:EMA(C,2),COLORBLUE,LINETHICK2;
FF:SAR(1,15,5),CIRCLEDOT,LINETHICK0;
IF((FF>=HIGH),FF,DRAWNULL),CIRCLEDOT,COLORGREEN;
IF((FF<=LOW),FF,DRAWNULL),CIRCLEDOT,COLORRED;
K05:MA(C,4),COLOR0099CC;
K:=(C-K05)/K05*100;
P05:=ATAN((K05/REF(K05,1)-1)*100)*180/3.1416;
STICKLINE(P05>30ANDK05>REF(K05,1),K05,REF(K05,1),0,1),COLORRED;
STICKLINE(P05<30ANDK05<REF(K05,1),K05,REF(K05,1),0,1),COLORWHITE;
VAR1:=REF(CLOSE,2);
趋势线:SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100,LINETHICK2,COLORLIBLUE;
VAR2:=REF(CLOSE,1);
VAR3:=SMA(MAX(CLOSE-VAR2,0),7,1)/SMA(ABS(CLOSE-VAR2),7,1)*100;
逢高派发:STICKLINE(趋势线>85,78,85,1.2,0),COLORYELLOW;
极高风险:STICKLINE(趋势线>90,78,85,1.8,0),COLORRED;
DRAWICON(趋势线>95,100,2);
吸:=IF(趋势线<12,23,12),COLORWHITE,LINETHICK2;
强买:=IF(VAR3<12,30,12),COLORMAGENTA,LINETHICK2;
{轻仓大底}
长期线:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19)+100,COLOR9900FF,LINETHICK3;
短期线:=-100*(HHV(HIGH,6)-CLOSE)/(HHV(HIGH,6)-LLV(LOW,6))+100,COLORRED;
中期线:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4)+100,COLORYELLOW,LINETHICK2;
STICKLINE(中期线<12,23,12,2,0),COLORYELLOW;
STICKLINE(长期线<12,23,12,2,0),COLORRED;
{强势拉升}
上趋势:=MA(LOW,20)*1.2,COLOR0080FF,LINETHICK2;
次上趋势:=MA(LOW,20)*1.1,COLORYELLOW;
次下趋势:=MA(HIGH,20)*0.9,COLORWHITE;
下趋势:=MA(HIGH,20)*0.8,COLORGREEN,LINETHICK1;
ZD:=(C-REF(C,1))/REF(C,1)*100;
HDZF:=(HHV(H,20)-C)/(HHV(H,20)-LLV(L,20));
趋势强度:=IF(C>次上趋势,IF(C>上趋势,4,3),IF(C>次下趋势ANDC<次上趋势,2,IF(C<下趋势,0,1))),NODRAW;
底距:=(C-下趋势)/下趋势*100,NODRAW;
{一目了然}
MA多:=SMA(MAX(C-REF(C,1),0),8,1)/SMA(ABS(C-REF(C,1)),8,1)*100,COLORFFB5FF,LINETHICK2;
多方:EMA(MA多,5),COLORYELLOW,LINETHICK2;
XX:=IF(多方<45,多方,DRAWNULL),COLORGREEN,LINETHICK3;
三成:=IF(多方<25AND多方>=20,50,25),COLORWHITE,LINETHICK2;
六成:=IF(多方<20AND多方>=15,35,25),COLORLIRED,LINETHICK3;
全仓:IF(多方<15,37,25),COLORRED,LINETHICK5;
STICKLINE(多方>75,68,60,1.2,0),COLORYELLOW;
STICKLINE(多方>80,68,60,1.2,0),COLORRED;
DRAWICON(多方>85,55,2);
{砸锅卖田}
趋线:(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100,COLORAABBDD,NODRAW;
AA:=((REF(趋线,1)<REF(趋线,2)AND趋线<-30)AND趋线>=REF(趋线,1))OR(REF(CROSS(-30,趋线),1)ANDCROSS(趋线,-30))OR趋线=-30;
卖田:=IF(AA,65,12),COLORYELLOW,LINETHICK2;
BB:=((REF(趋线,1)<REF(趋线,2)AND趋线<-20AND趋线>-25)AND趋线>=REF(趋线,1))OR(REF(CROSS(-20,趋线),1)ANDCROSS(趋线,-20));
见底:=IF(BB,58,12),COLORRED,LINETHICK2;
CC:=((REF(趋线,1)<REF(趋线,2)AND趋线<-25AND趋线>-30)AND趋线>=REF(趋线,1))OR(REF(CROSS(-25,趋线),1)ANDCROSS(趋线,-25));
浅底:IF(趋线<-20,60,12),LINETHICK3,COLORF0F000;
DRAWTEXT(CROSS(-20,趋线),80,'浅底'),COLORF0F000;
IF(趋线<-25,80,12),LINETHICK2,COLORF00FF0;
DRAWTEXT(CROSS(-25,趋线),90,'深底'),COLORF00FF0;
IF(趋线<-30,35,12),LINETHICK4,COLORWHITE;
DRAWTEXT(CROSS(-30,趋线),55,'砸锅'),COLORGRAY;
{走势铁底}
M:=88;
N1:=6;
VAR0A:=EMA(EMA(EMA(CLOSE,2),2),2);
MA13:=(MA(VAR0A,13)*0.99),LINETHICK2;
KK:=(MA(VAR0A,13)*0.999);
TLAMSENR:=MAX(MAX((HIGH-LOW),ABS((REF(CLOSE,1)-HIGH))),ABS((REF(CLOSE,1)-LOW)));
ATR:=MA(TLAMSENR,13);VAR1A:=(REF(CLOSE,1)-REF(ATR,1));
生命:=(HHV(VAR1A,12)),LINETHICK4,COLOR0080FF;
VARX1:=EMA(AMOUNT/VOL/100,3);
控盘成本:=EMA(VARX1,M),LINETHICK2;
低吸伏击:=EMA(VARX1,M)*0.85,LINETHICK2,COLORFFFF00;
走势铁底:=低吸伏击*0.87,LINETHICK3,COLORFF00FF;
距底:=(C-低吸伏击)/低吸伏击*100,NODRAW;
机会:IF(趋势强度<=1AND中期线<12AND距底>0AND距底<5,55,25),COLORGREEN,LINETHICK2;
低吸:IF(C<低吸伏击AND中期线<12AND趋势强度=1,58,25),COLORYELLOW,LINETHICK3;
伏击:IF(L<走势铁底,66,25),COLORLIRED,LINETHICK3;
{俊俊建仓}
VARZ1:=1;
VARZ2:=REF(LOW,1)*VARZ1;
VARZ3:=SMA(ABS(LOW-VARZ2),3,1)/SMA(MAX(LOW-VARZ2,0),3,1)*100*VARZ1;
VARZ4:=(2*C+H+L)/4;
VARZ5:=LLV(LOW,60);
VARZ6:=(2*CLOSE+HIGH+LOW)/4;
VARZ8:=LLV(LOW,34);
VARZ11:=HHV(HIGH,34);
VARZ12:=EMA((VARZ6-VARZ8)/(VARZ11-VARZ8)*100,13);
VARZ13:=EMA(0.667*REF(VARZ12,1)+0.333*VARZ12,2);
VARZ0:=HHV(HIGH,60);
AAA:=EMA((VARZ4-VARZ5)/(VARZ0-VARZ5)*100,5);
BBB:=EMA(AAA,5);
上线:=IF(AAA>=BBB,100,100),COLOR00FF00,LINETHICK3;
下线:=IF(AAA<BBB,0,0),COLOR00FFCC,LINETHICK3;
中线:=IF(AAA<BBB,50,50),LINETHICK1,COLOR0033FF;
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
趋势:=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);
DDK:=DRAWICON(趋势<=3AND趋势强度<=1,63,1);
{临界点}
C1:=((MA(C,30)-L)/MA(C,60))*200;
临界点:=IF(C1>30,68,45),LINETHICK3,COLORRED;
{主力进场:下方红绿柱}
VR2:=REF(LOW,1);
VR3:=SMA(ABS(LOW-VR2),3,1)/SMA(MAX(LOW-VR2,0),3,1)*100;
VR4:=EMA(IF(CLOSE*1.3,VR3*10,VR3/10),3);
VR5:=LLV(LOW,30);
VR6:=HHV(VR4,30);
VR7:=IF(MA(CLOSE,58),1,0);
主力:=EMA(IF(LOW<=VR5,(VR4+VR6*2)/2,0),3)/618*VR7,COLORMAGENTA,NODRAW;
VR9:=IF(主力>100,100,主力);
主力进场:=STICKLINE(VR9>0,0,VR9,3,0),COLORMAGENTA;
洗:=STICKLINE(主力<REF(主力,1),0,VR9,3,0),COLORGREEN;
盘:=STICKLINE(VR9<REF(VR9,1),0,VR9,3,0),COLORGREEN;
{超级短底}
短底:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+
(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3,NODRAW;
炒短:=IF(短底<-10AND主力>REF(主力,1),60,12),COLORLIRED,LINETHICK2;
{成本线}
VBR1:=IF(DATE>=10201201,0,1);
VBR2:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55);
VBR3:=EMA(CLOSE,3);
VBR4:=(2*CLOSE+LOW+HIGH)/4*VBR1;
VBR5:=VBR2-VBR3;
风险线:=EMA(VBR4,45)*1.15;
必卖线:=EMA(VBR4,55)*1.3,COLORRED;
底线:=EMA(VBR4,40)*0.85,COLORWHITE,LINETHICK2;
铁底线:=EMA(VBR4,88)*0.7,COLORRED;
成本线:=EMA(VBR4,55),COLORGREEN,LINETHICK2;
价值中枢:=(成本线+底线)/2,COLORFFFF00;
铁底:IF(C<铁底线AND炒短,73,25),COLORBLUE,LINETHICK3;
大底天:BARSLAST(CROSS(12,长期线)),NODRAW;
85,POINTDOT;
70,POINTDOT;
75,COLORGREEN;
中枢:45,COLORRED,LINETHICK2;
25,COLORGREEN,LINETHICK2;
30,COLORLIRED;
评论(0)