以下是通达信真正的之王指标公式源码和截图
通达信真正的短线之王指标公式源码:
RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
J0:=(HIGH+LOW)/2;QJ:=EMA(J0,3);
J1:=IF(CLOSE QJ,,0);
J2:=IF(CLOSE QJ,VOL,0);
:IF(CAPITAL 1,MA(VOL,74),MA(SUM(J1-J2,22),3)),COLOR00DDDD,NODRAW;
:IF(CAPITAL 1,EMA(量能,360),EMA(量能,21)),COLOR008800,NODRAW;
VAR3:=(量能-趋势);
VAR44:=SMA(RV,3,1);
VAR55:=SMA(VAR44,3,1);
STICKLINE(VAR3 0,20,10,5,1),COLOR0000FF;
STICKLINE(VAR3 0,100,90,10,1),COLOR00FF00;
DRAWICON(CROSS(VAR44,VAR55)ANDVAR55 30,2,1);
DRAWICON(CROSS(VAR55,VAR44)ANDVAR55 30,97,2);
DRAWBAND(VAR55,RGB(0,22,224),VAR44,RGB(255,50,50));
KK:EMA(SMA(RG,3,1),2),COLORFFFFFF;DD:SMA(KK,3,1),COLOR00FFFF;
DRAWTEXT(CROSS(VAR44,VAR55)ANDCROSS(KK,DD),10,''),COLOR00FFFF;
共振点:=(CROSS(VAR44,VAR55)ANDCROSS(KK,DD));
STICKLINE(共振点 0,0,100,2,0),COLOR008888;
STICKLINE(共振点 0,0,100,1.5,0),COLOR00AAAA;
STICKLINE(共振点 0,0,100,0.8,0),COLOR00DDDD;
STICKLINE(共振点 0,0,100,0.3,0),COLOR00FFFF;
VAR1:=1;
VAR2:=((((2*CLOSE)+HIGH)+LOW)/4);
低进:20,COLORFF00FF,LINETHICK2;
高死叉出:90,COLORBLUE,LINETHICK2;
VAR4:=LLV(LOW,5);
VAR5:=HHV(HIGH,4);
C1:=(EMA((((VAR2-VAR4)/(VAR5-VAR4))*100),4)*VAR1),COLORFF00FF,LINETHICK2;
C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR1),COLORFFFFFF,LINETHICK2;
条件:=CROSS(C1,C2)ANDC1
条件0:=CROSS(C2,C1)ANDC1
TJ1:=CROSS(C1,C2);
TJ2:=CROSS(C2,C1);
TJ3:=CROSS(C1,C2)ANDREF(C1,1)
TJ4:=CROSS(C2,C1)ANDREF(C1,1)
DRAWTEXT(FILTER((REF(条件,1)AND(REF(LOW,1) LOWORTJ2))
OR(REF(条件,2)AND(REF(LOW,2) LLV(LOW,3)ORTJ2))
OR(REF(条件,3)AND(REF(LOW,3) LLV(LOW,4)ORTJ2)),4),70,'止'),COLORRED;
{DRAWTEXT(FILTER((REF(条件,1)AND(REF(LOW,1) LOWORTJ2))
OR(REF(条件,2)AND(REF(LOW,2) LLV(LOW,3)ORTJ2))
OR(REF(条件,3)AND(REF(LOW,3) LLV(LOW,4)ORTJ2)),4),60,'跌'),COLORRED;}
DRAWTEXT(FILTER((REF(条件,1)AND(REF(LOW,1) LOWORTJ2))OR
(REF(条件,2)AND(REF(LOW,2) LLV(LOW,3)ORTJ2))
OR(REF(条件,3)AND(REF(LOW,3) LLV(LOW,4)ORTJ2)),4),65,'买'),COLORRED;
DRAWTEXT(条件,20,'买'),COLORRED;
STICKLINE(条件,0,20,2,0),COLORRED;
DRAWTEXT(条件0,85,'卖'),COLORBLUE;
DRAWTEXT(CROSS(C1,75),70,'险区'),COLORGREEN;
DRAWTEXT(TJ3,65,'安'),COLORRED;
DRAWTEXT(TJ3,60,'买'),COLORRED;
DRAWTEXT(TJ4,85,''),COLORBLUE;
STICKLINE(TJ4,100,80,2,0),COLORGREEN;
V1:=ma(C,3)=HHV(MA(C,3),7);
V2:=MA(C,3) MA(C,5);
LC20:=REF(CLOSE,1);
20:=SMA(MAX(CLOSE-LC20,0),4.1,1)/SMA(Abs(CLOSE-LC20),4.1,1)*100;
stICKLINE(crOSS(RSI20,11)*1,-10,20,2,0),COLORYELLOW;
VAR3A:=3;
VAR2A:=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);
mtm:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
YXF:=IF(LLV(DX,2)=LLV(DX,7)ANDCOUNT(DX 0,2)ANDCROSS(DX,MA(DX,2)),1,0);
加仓:IF(FILTER(YXF=1,5),20,-10),STICK,LINETHICK6;
A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV
(L,55))*100,5,1);
FY:=EMA(A51,5);
A54:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
VAR2:=TROUGHBARS(3,15,1)
VAR3:=PEAKBARS(3,15,1)
VAR4:=IF(VAR2=1,50,0);
VAR5:=IF(VAR3=1,50,0);
底部:=IF(VAR4=50,10,0);
头部:=IF(VAR5=50,20,60);
未来买入:IF(底部=10ANDREF(底部,1)=10ANDREF(底部,2)=0,50,0),COLORRED,LINETHICK2;
未来卖出:IF(头部=20ANDREF(头部,1)=20ANDREF(头部,2)=60,20,60),COLORGREEN,LINETHICK2;
参考买入延迟线:底部,LINETHICK1,COLORMAGENTA;
LT:=100;
LU:=0;
LV:=38.2;
LA:=REF(CLOSE,1);
LB:=((SMA(MAX((CLOSE-LA),0),5,1)/SMA(ABS((CLOSE-LA)),5,1))*100);
LC:=(HIGH-REF(HIGH,1));
LD:=(REF(LOW,1)-LOW);
LE:=SUM(MAX(MAX((HIGH-LOW),ABS((HIGH-REF(CLOSE,1)))),ABS((LOW-REF(CLOSE,1)))),10);
LF:=SUM(IF(((LC 0)AND(LC LD)),LC,0),10);
LG:=SUM(IF(((LD 0)AND(LD LC)),LD,0),10);
LH:=((LF*100)/LE);
LI:=((LG*100)/LE);
LJ:=MA(((ABS((LI-LH))/(LI+LH))*100),5);
AV:=(LB+LJ);
LK:=((100*(HHV(HIGH,10)-CLOSE))/(HHV(HIGH,10)-LLV(LOW,10)));
LL:=(LB-LK);
LM:=(AV+LL);
LO:=((((2*CLOSE)+HIGH)+LOW)/4);
LP:=LLV(LOW,34);
LQ:=HHV(HIGH,34);
LR:=EMA((((LO-LP)/(LQ-LP))*100),13);
LS:=EMA(((0.667*REF(LR,1))+(0.333*LR)),2);
向导线:=LLV(LM,1);
STICKLINE((向导线 225),95,90,4,1),COLORFFCC00;
STICKLINE((向导线 235),100,95,4,1),COLORRED;
STICKLINE(CROSS(235,向导线),100,90,4,1),COLOR00FF00;
STICKLINE((LM (0-1)),0,5,4,1),COLOR00FF00;
STICKLINE((LM (0-5)),5,10,4,1),COLORYELLOW;
STICKLINE(CROSS(向导线,(0-3)),0,10,4,1),COLORRED;
bias1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
BIAS2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:=MA(BIAS,3);
底一:IF(乖离 -12AND乖离 =-18,-4,0),COLORCYAN,LINETHICK1;
STICKLINE(乖离 -12AND乖离 =-18,2,0,6,0),COLORCYAN;
底二:IF(乖离 -18,3,0),COLORFF35FF,LINETHICK1;
STICKLINE(乖离 -18,3,0,6,0),COLORFF35FF;
底三:IF(乖离 -6,5,0),COLORRED,LINETHICK1;
STICKLINE(乖离 -6,5,3,2,1),COLORRED;
底四:IF(乖离 -4.5,0,0),COLOR00FFFF,LINETHICK1;
STICKLINE(乖离 -4.5,0,1,3,1),COLOR00FFFF;
买:=(zig(3,5) REF(ZIG(3,5),1))AND(REF(ZIG(3,5),1) =REF(ZIG(3,5),2))AND(REF(ZIG
(3,5),2) =REF(ZIG(3,5),3));
卖:=(ZIG(3,5) REF(ZIG(3,5),1))AND(REF(ZIG(3,5),1) =REF(ZIG(3,5),2))AND(REF(ZIG
(3,5),2) =REF(ZIG(3,5),3));
STICKLINE((买=1),(-10),0,1,0),COLOR0000FF;
DRAWTEXT((买=1),(19),'←买'),COLOR0000FF;
STICKLINE((卖=1),10,0,1,0),COLOR00FF00;
DRAWTEXT((卖=1),19,'←卖'),COLOR00FF00;
VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR11:=VARF REF(VAR10,1)ANDvol REF(VOL,1)ANDCLOSE REF(CLOSE,1);
DRAWTEXT(VAR11ANDCOUNT(VAR11,30)=1,15,'←大活动'),LINETHICK1,COLORFF00FF;
STICKLINE(VAR11ANDCOUNT(VAR11,30)=1,1,10,5,0),COLORFF00FF;
VAR12:=(HIGH+LOW+CLOSE)/3;
VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));
VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));
VAR15:=IF(VAR13 =150ANDVAR13 200ANDVAR14 =150ANDVAR14 200,10,0);
VAR16:=IF(VAR13 =-150ANDVAR13 -200ANDVAR14 =-150ANDVAR14 -200,-10,VAR15);
VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR18:=100-ABS(VAR17);
VAR19:=IF(VAR18 90,VAR18,100);
VAR1A:=IF(VARE 0,VARE,0);
VAR1B:=IF(VAR14 =200ANDVAR13 =150,15,IF(VAR14 =-200ANDVAR13 =-150,-15,VAR16))+60;
VAR1C:=VAR1A 48ANDVAR1B 60ANDVAR19
DRAWTEXT(VAR1CANDCOUNT(VAR1C,30)=1,15,'←大笔出货'),LINETHICK1,COLORFFCC66;
STICKLINE(VAR1CANDCOUNT(VAR1C,30)=1,0,10,5,0),COLORFFCC66;
P1:=5;
P2:=4;
VARA:=LLV(LOW,P1);
VARB:=HHV(HIGH,P1);
K上窜金叉留股:EMA((CLOSE-VARA)/(VARB-VARA)*100,P2),COLORLIMAGENTA,LINETHICK2;
D上窜卖股:EMA(0.667*REF(K上窜金叉留股,1)+0.333*K上窜金叉留股,2),COLORWHITE,LINETHICK2;
风险:82;
VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;
VAR400:=EMA(VAR300,5);
操盘:=3*VAR300-2*VAR400;
A1:=CROSS(操盘,VAR300)ANDVAR300 2.1ANDC
STICKLINE(A1,30,0,4,0),COLOR770077;
STICKLINE(A1,30,0,3,0),COLOR990099;
STICKLINE(A1,30,0,2,0),COLORBB00BB;
STICKLINE(A1,30,0,1,0),COLORDD00DD;
STICKLINE(A1,30,0,0.3,0),COLORFF00FF;
DRAWTEXT(A1,36,'财神到'),COLORRED;
★遵守纪律★:100,COLORRED,NODRAW;
★交易之魂★:100,COLORRED,NODRAW;
R1:=(CLOSE-LLV(LOW,90))/(HHV(HIGH,90)-LLV(LOW,90))*200;
R2:=EMA((CLOSE-(LLV(LOW,5)))/((HHV(HIGH,5))-(LLV(LOW,5)))*100,4)*2;
R3:=EMA(0.618*REF(R2,1)+0.382*R2,2);
R4:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
R5:=POW(MA(LOW,5),2)+MA(LOW,5);
R6:=POW(MA(HIGH,5),2)+MA(HIGH,5);
R7:=(R4-LLV(R5,64))/(HHV(R6,64)-LLV(R5,64))*150+65-10;
R8:=SMA((SMA(R7,3,1)*1.5-100),3,1);
R9:=3*(SMA(R7,3,1)*1.5-100)-2*R8;
R10:=(HIGH+LOW+CLOSE*2)/4;
R11:=(R10-(EMA(R10,13)))*100/(STD(R10,13));
R12:=EMA((EMA(R11,5)),13)+200-100;
R13:=(SMA(R1,3,1))+R2+(SMA(R7,3,1)*1.5-100)+R12;
R14:=(SMA((SMA(R1,3,1)),3,1))+R3+R8+(EMA(R12,10));
R15:=(3*(SMA(R1,3,1))-2*(SMA((SMA(R1,3,1)),3,1)))+(3*R12-2*(EMA(R12,10)))+
R9+(3*R12-2*(EMA(R12,10)));
R16:=(HIGH+LOW+CLOSE)/3;
R17:=(R16-MA(R16,34))/(0.015*AVEDEV(R16,34));
R18:=(HIGH+LOW+CLOSE+R16)/4;
R19:=(R18-(EMA(R18,24)))/(STD(R18,24))*100;
R20:=(R16-MA(R16,24))/(0.015*AVEDEV(R16,24));
R21:=(((EMA(R19,5))+R20+R17)/3+165)/4;
R22:=(R13+R14+R15*30)/32/5-15;
A1:=EMA(EMA(CLOSE,13),13);
A2:=(A1-REF(A1,1))/REF(A1,1)*6400;
A3:=100*WINNER(CLOSE*0.95);
:EMA(((R21+R22)/2/1.1),1),COLORRED,LINETHICK2;
确认:MA(买卖,3),COLORWHITE,LINETHICK2;
AR1:=EMA(OPEN,7);
AR2:=EMA(AR1,21);
AR3:=CROSS(AR1,AR2);
AR5:=EMA(SMA((CLOSE-LLV(LOW,20))/(HHV(HIGH,16)-LLV(LOW,20))*100,8,1),3);
短买:IF(TROUGHBARS(1,6,1)=0ANDHIGH LOW+0,50,20),COLORLIBLUE;
短卖:IF(PEAKBARS(2,9,1)=1,50,80),COLORMAGENTA;
中买:IF(TROUGHBARS(3,18,1)=0ANDHIGH LOW+0.1,20,0),COLORLIMAGENTA,LINETHICK2;
中卖:IF(PEAKBARS(2,15,1)=0,80,100),COLORRED;
全买:(ZIG(3,35) REF(ZIG(3,35),1)ANDREF(ZIG(3,35),1) REF(ZIG(3,35),2))
*90,STICK,COLORRED,LINETHICK3;
全卖:(ZIG(3,35) REF(ZIG(3,35),1)ANDREF(ZIG(3,35),1) REF(ZIG(3,35),2))
*90,STICK,COLORGREEN,LINETHICK3;
:50,COLORWHITE;
通达信真正的短线之王指标公式截图