以下是通达信逆袭者操盘主图指标公式源码
通达信逆袭者操盘主图指标公式源码:
MA7:MA(C,7),COLOR0000FF;
MA13:MA(C,13),COLOR0096FF;
MA21:MA(C,21),COLOR00FF99;
MA49:MA(C,49),COLORFF00FF;
A:=BARSCOUNT(CLOSE);
AH:=HHV(HIGH,200);
AL:=LLV(LOW,200);
B0:=(AH-AL)/40;
B1:=HIGH+B0;
B2:=LOW-B0;
DRAWTEXT((A+0)/34=FLOOR((A+0)/34),B2-2.2*B0*1.1,'变盘'),COLORRED;
DRAWTEXT(IF(CROSS(69,SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100),1,0),HIGH*1.045,'警'),COLORWHITE;
LC:=REF(CLOSE,1);
:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100;
DRAWICON(CROSS(RSI,11),L*0.99,3);
VAR28:=SMA(MAX(CLOSE-LC,0),5.5,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(FILTER(EMA(CLOSE,60)-EMA(CLOSE,12) 0ANDEMA(CLOSE,12)/LOW 1.15,5),LOW,'买'),COLORFF00FF;
VARA:=((AMOUNT)/())/(100);
VARB:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);
VARC:=((SUM(AMOUNT,7))/(VARA))/(100);
VARD:=DMA(VARB,(VOL)/(VARC));
VARE:=((CLOSE-VARD)/(VARD))*(100);
VARF:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100);
VARJ:=MA(VARE,20)+STD(VARE,20);
BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);
AA:=SMA(VARF,3,1);
SS:=(REF(BIAS18,1) =5)ANDCROSS(VARJ,VARE)AND(AA
DRAWTEXT((REF(BIAS18,1) =5)ANDCROSS(VARJ,VARE)AND(AA SS)ANDCROSS(84,RSI),H*1.028,'卖'),LINETHICK7,COLORGREEN;
DRAWTEXT(CROSS(84,RSI)ANDCROSS(76,VAR28),H*1.01,'出'),LINETHICK7,COLORYELLOW;
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,13)*21+C,49);
STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,1.2,0),COLORYELLOW;
STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,1.2,0),COLORBLUE;
V1:=EMA(CLOSE,60)-EMA(CLOSE,300);
V2:=EMA(V1,300);
V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
操盘线:=SMA(V3,2,1),LINETHICK3;
V5:=SMA(操盘线,2,1);
DRAWICON(CROSS(操盘线,V5)ANDMA7 REF(MA7,1),L*0.987,5);
DRAWICON(操盘线 REF(操盘线,1)ANDREF(操盘线,1) REF(操盘线,2)ANDMA21 REF(MA21,1)ANDREF(操盘线,1) 40ANDCROSS(V5,操盘线),H*1.01,6);
STICKLINE((REF(BIAS18,1) =5)ANDCROSS(VARJ,VARE)AND(AA SS)ANDCROSS(84,RSI)ANDCROSS(76,VAR28),C,O,3,0),COLORGREEN,LINETHICK2;{底位红色}
STICKLINE(操盘线 REF(操盘线,1)ANDCROSS(操盘线,V5)ANDV5 50ANDMA13 REF(MA13,1),C,O,3,0),COLORMAGENTA,LINETHICK2;{底位红色};
M1:=5;
M2:=10;
M3:=20;
M4:=30;
M5:=60;
N:=80;
N1:=14;
M:=3;
stICKLINE(C =ma(C,N),MA(C,N),MA(C,N*0.7),4,0),COLORRED;
STICKLINE(C MA(C,N),MA(C,N),MA(C,N*0.7),4,0),COLORBLUE;
DRAWKLINE(H,O,L,C);
黄金柱B:=V/REF(V,1) =2.0;
K1B:=SUMBARS(黄金柱B,1);
K2B:=SUMBARS(黄金柱B,2);
K3B:=SUMBARS(黄金柱B,3);
K4B:=SUMBARS(黄金柱B,4);
K5B:=SUMBARS(黄金柱B,5);
K6B:=SUMBARS(黄金柱B,6);
K7B:=SUMBARS(黄金柱B,7);
K8B:=SUMBARS(黄金柱B,8);
K9B:=SUMBARS(黄金柱B,9);
K10B:=SUMBARS(黄金柱B,10);
AABB:STICKLINE(K1B,REFV(L,K1B-1)*1.002,REFV(L,K1B-1),2,0),COLORYELLOW;
T60B:=V=HHV(V,60);
T100B:=V=HHV(V,100);
T2B:=V/REF(vol,1)
T3B:=REF(C,1)/REF(O,1)
MA5:=MA(CLOSE,M1),LINETHICK1,COLORYELLOW;
MA10:=MA(CLOSE,M2),LINETHICK1,COLORWHITE;
MA20:=MA(CLOSE,M3),LINETHICK1,COLORYELLOW;
稳健操盘线:MA(CLOSE,M4),POINTDOT,COLORRED;
MA60:=MA(CLOSE,M5),POINTDOT,LINETHICK1,COLORGREEN;
TR1:=SMA(MAX(MAX(HIGH-LOW,Abs(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N1,1);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
DMP:=SMA(IF(HD 0ANDHD LD,HD,0),N1,1);
DMM:=SMA(IF(LD 0ANDLD HD,LD,0),N1,1);
pdi:=DMP*100/TR1,COLORRED;
mdi:=DMM*100/TR1,COLORGREEN;
ADX:=SMA(ABS(MDI-PDI)/(MDI+PDI)*100,N1,1),COLORYELLOW;
阶段线1:=16;
阶段线2:=30;
1:=PDI MDIANDADX
DMI2:=PDI MDIANDADX
DMI3:=PDI MDIAND16MDIORPDI MDI);
DMI6:=ADX
ZT:=C/REF(C,1) 1.097;
XH:=FILTER(ZT,13);
BH:=BArslAST(ZT);
CZ:=REF(H,BH)-REF(L,BH);
STICKLINE(ZT,O,C,3,0),COLORRED;
DRAWTEXT(ZT,L*0.98,''),COLORF00FF0;
VARZT:=BARSLAST(C/REF(C,1) 1.097);
{涨跌停显示}
:=IF((C-REF(C,1))*100/REF(C,1) =(10-0.01*100/REF(O,1)),1,0);
STICKLINE(涨停,O,C,3,0),COLORRED;
ZDF:=(C-REF(C,1))/REF(C,1)*100;
STICKLINE(ZDF -9.9,O,C,3,0),COLORGREEN;
VAR111:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买:=IF(CLOSE OPEN,VAR111*(HIGH-LOW),IF(CLOSE OPEN,VAR111*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED;
卖:=IF(CLOSE OPEN,0-VAR111*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE OPEN,0-VAR111*(HIGH-LOW),0-VOL/2)),COLOR00FF00;
差:=(买+卖);
买卖比:=ABS(买/卖);
水平面:=MA(CLOSE,89),COLORFF00FF;
bbi:=(MA(CLOSE,M1)+MA(CLOSE,M2)+MA(CLOSE,M3)+MA(CLOSE,M4))/4;
MA1:=MA(CLOSE,24),COLOR00E300,LINETHICK1;
V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1);
MA13:=MA(CLOSE,13);
X1:=(C+L+H)/3;
BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
EMA8:=EMA(C,8);
A1:=MIN(O,C);
B1:=ABS(O-C);
T1:=FILTER(BB13 1ANDEMA(X1,13) REF(EMA(X1,8),1),10);
LC:=REF(CLOSE,1);
rsi:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))*100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
T2:=COUNT(crOSS(BBI,3),3)=1ANDCROSS(C,BBI);
T12:=V2
T0:=BARSLAST(T12);
L1:=REF(L,T0);
H1:=REF(H,T0);
L11:=MIN(REF(L,1),L);
L10:=MIN(L11,REF(L,2));
L21:=MAX(REF(L,1),L);
L20:=MAX(L21,REF(L,2));
T111:=(REF(V2 =1,3)ORREF(V2 =1,2)ORREF(V2 =1,1))AND
((L10 L1ANDL20 H1)OR(L11 L1ANDL21 H1));
T11:=T111ANDREF(T111,1)=0;
V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
V2X:=(1-7/100)*(DMA(CLOSE,V1));
V3:=(1+7/100)*(DMA(CLOSE,V1));
V5:=MA((LOW+HIGH+CLOSE)/3,5);
A1XX:=CROSS(MA(C,1),MA(C,3));
XG:=A1XX;
VAR1:=EMA(EMA(CLOSE,13),13);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
A10:=CROSS(控盘,0);
无庄控盘:=IF(控盘 0,控盘,0),COLORGRAY,NODRAW;
:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*20,LINETHICK0,COLORWHITE;
:=(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*20,LINETHICK0,COLORYELLOW;
红柱:=SMA(短线,3,1),LINETHICK0,COLORFF00FF;
绿柱:=SMA(中线,3,1),COLORSTICK,COLOR00FF00;
开始控盘:=IF(A10,5,0),LINETHICK1,COLORWHITE;
有庄控盘:=IF(控盘 REF(控盘,1)AND控盘 0,控盘,0),COLORRED,NODRAW;
VAR2:=100*WINNER(CLOSE*0.95);
高度控盘:=IF(VAR2 50ANDCOST(85) CLOSEAND控盘 0,控盘,0),COLORFF00FF,NODRAW;
出货:=IF(控盘 REF(控盘,1)AND控盘 0,控盘,0),COLOR00FF00,NODRAW;
VV1:=(C*2+H+L)/4*10;
VV2:=EMA(VV1,13)-EMA(VV1,34);
VV3:=EMA(VV2,5);V4:=2*(VV2-VV3)*5.5;
主力撤:=IF(V4 =0,V4,0),COLORGREEN;
主力进:=IF(V4 =0,V4,0);
VV5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
V6:=EMA(3*VV5-2*SMA(VV5,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),COLORYELLOW;
大盘资金撤走:=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,5,0),COLORCC9900;
AA:=(趋势线 =13)ANDFILTER((趋势线 =13),15);
{DRAWTEXT(AA,30,'准备现金'),COLORCC9900;}
买入股票:=STICKLINE(趋势线 =13ANDV12 13,0,50,5,0),COLOR0099FF;
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),1,0),STICK,COLORFFFFFF,LINETHICK3;
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;
QS:=(MA(3*SMA(A54,6,1)-2*SMA(SMA(A54,5,1),5,1),2));
控盘B:=FILTER(IF(A10,1,0),5);
{价格原码}
JJ:=DYNAINFO(11);
{买卖原码}
P:=55;S:=8;
财:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10,COLORRED,LINETHICK2;
神:=EMA(财,M1),COLORGREEN,LINETHICK1;
{股价与偏离买卖条件}
BTJ1:=(C-JJ)/JJ -0.005;
BTJ11:=(C-JJ)/JJ -0.03;
BTJ12:=LAST(JJ =REF(JJ,1),5,1)AND(C-JJ)/JJ 0.005;
STJ1:=(C-JJ)/JJ 0.005;
{控盘买卖条件}
STJ01:=控盘 REF(控盘,1)AND控盘
STJ02:=控盘
BTJ2:=控盘 REF(控盘,1)AND控盘 -0.2;
BTJ22:=控盘 REF(控盘,1)AND控盘
{波段买卖条件}
BTJ3:=CROSS(财,神)AND财 -0.3;
BTJ32:=CROSS(财,神)AND财 -0.1;
STJ31:=CROSS(神,财);
STJ32:=CROSS(神,财)AND财 1.618;
VAR1A:=EMA(EMA(CLOSE,9),9);
专用:=(VAR1A-REF(VAR1A,1))/REF(VAR1A,1)*1000;
VAR2A:=100*WINNER(CLOSE*0.95);
高手专用:=VAR2A 50ANDCOST(85) CLOSEAND专用
CV:=CLOSE;
BBI:=(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4;
UPR:=BBIBOLL+6*STD(BBIBOLL,11);
DWN:=BBIBOLL-6*STD(BBIBOLL,11);
QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XVL:=(IF(CLOSE OPEN,QJJ*(HIGH-LOW),IF(CLOSE OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE OPEN,0-QJJ*(HIGH-LOW),0-VOL/2)));
HSL:=(XVL/20)/1.15;
强势股:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22)) 1500;
绝杀前十:=高手专用AND高度控盘,COLORFF00FF;
VARC:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;
DRAWICON(CROSS(82,VARC),H*1.02,2);
{DRAWTEXT(CROSS(82,VARC),2,'|逃庄'),COLORWHITE;}
VAR34:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1);
VAR35:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);
VAR36:=IF(VAR34 0.010,0.900,1)ANDIF(VAR34 (-0.025),1,1.200);
VAR37:=VAR36*(VAR35-VAR34)*100;
VAR38:=SUM(VAR37,10);
VAR310:=VAR38
VAR326:=IF(CLOSEANDMA(VOL,5)/240ANDCLOSE REF(CLOSE,1)*1.0ANDCLOSE,1,0);{VAR38 VAR39;}
VAR327:=IF(CLOSE/REF(CLOSE,1) 1.050ANDVOL/CAPITAL*100 10ANDCLOSE 17ANDHIGH/CLOSE 1.010ANDVAR326 0,1,0);
{STICKLINE(VAR327=1,0,1,2,0),COLORYELLOW;}
DRAWICON(VAR327=1,L*0.95,1);
{DRAWTEXT(VAR327=1,-1,'|杀庄'),COLORWHITE;}
HZ:=EMA(CLOSE,13);
短波:=EMA(HZ,1);
中波:=EMA(HZ,26);
均线148天:=EMA(C,148);
:=SUM(AMOUNT,0)/SUM(VOL,0)/100;
HZ2:=EMA(HZ,8);
拉升一号:=CROSS(短波,HZ2);
DRAWICON(拉升一号,L*0.99,11);
DRAWTEXT(拉升一号,L*0.97,'↖拉升'),COLORFF00FF;
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
红线上起:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED,LINETHICK2;
绿线下熊股出:MA(红线上牛股起,6),COLORGREEN,LINETHICK2;
涨停紫色:STICKLINE((C-REF(C,1))/REF(C,1) 0.095,C,O,3.05,0),COLORMAGENTA;
AAA:=(ma(CLOSE,13)+MA(CLOSE,17))/2;
CCC:=(stD(CLOSE,13)+STD(CLOSE,17))/2;
BBB:=AAA+2.1*CCC;
DDD:=AAA+0.72*CCC;
ZZZ:=IF(CCC 1.88,MA(DDD,3),DDD);
平仓:ZZZ*1.145,COLORCYAN;
风险:ZZZ*1.095,COLORGREEN;
回档:ZZZ*1.04,COLORYELLOW;
平衡:ZZZ*0.986,COLORWHITE;
反弹:ZZZ*0.918,COLORMAGENTA;
超低:ZZZ*0.880,COLORRED;
满仓:ZZZ*0.83,COLORBLUE;
VAR32:=CLOSE/REF(CLOSE,1) =1.062ANDHIGH/CLOSE 1.005ANDMA(CLOSE,90)/CLOSE =1.150;
VAR33:=VAR32ANDCOUNT(VAR32,20)=1;
VAR34:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1);
VAR35:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);
VAR36:=IF(VAR34 0.010,0.900,1)ANDIF(VAR34 (-0.025),1,1.200);
VAR37:=VAR36*(VAR35-VAR34)*100;
VAR38:=SUM(VAR37,10);
VAR39:=SMA(VAR38,40,1);
VAR310:=VAR38
VAR311:=crOSS(CLOSE,MA(CLOSE*1.055,3))ANDCLOSE OPEN*1.060ANDvol =REF(VOL,1)*1.5AND
CLOSE =MA(CLOSE,10);
VAR312:=VAR310ANDVAR311;
VAR313:=(-100)*(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3));
VAR314:=CROSS(VAR313,(-87))ANDOPEN=1.090*REF(CLOSE,1)ANDINDEXC 0.980*REF(INDEXC,1)
ANDCLOSE =1.470*LLV(CLOSE,58);
VAR315:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR316:=EMA(VAR315,9);
VAR317:=2*(VAR315-VAR316);
VAR318:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR319:=SMA(VAR318,3,1);
VAR320:=SMA(VAR319,3,1);
VAR321:=EMA(IF(VAR316 REF(VAR316,1),1,(-1)),14)*14;
VAR322:=EMA(IF(VAR320 REF(VAR320,1),1,(-1)),14)*14*2;
VAR323:=(MA(CLOSE,5)/MA(CLOSE,70)-1)*100;
VAR324:=(VAR323+VAR322+VAR321)/3;
VAR325:=MA(CLOSE,80)-MA(CLOSE,10)/3;
VAR326:=IF(CLOSEANDMA(VOL,5)/240ANDCLOSE REF(CLOSE,1)*1.0ANDCLOSE,88,0);
{VAR38 VAR39;}
VAR327:=IF(CLOSE/REF(CLOSE,1) 1.050ANDVOL/CAPITAL*100 10ANDCLOSE 17AND
HIGH/CLOSE 1.010ANDVAR326 0,91,0);
DRAWTEXT(VAR327 90,LOW*0.95,'杀'),COLORYELLOW;
通达信逆袭者操盘主图指标公式截图