以下是无敌版控盘通达信指标公式源码和使用说明
无敌版主力控盘通达信指标公式源码:
VAR1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
VAR3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR4:=(VAR1+2*VAR2+3*VAR3)/6;
VAR5:=MA(VAR4,3)-STD(VAR4,3);
VAR6:=STICKLINE(VAR5 -4ANDVAR5 -6,-17,-30,5,0);
VAR7:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100+50;
VAR8:=EMA(VAR7,9);
VAR9:=2*(VAR7-VAR8);
VARA:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(VARA,3,1),coloryellow;
VARB:=SMA(K,3,1);
J:3*K-2*VARB,colorgreen;
试探介入:IF(CROSS(J,VARB)ANDCOUNT(VAR5 -9,4) =1,65,-15),LINETHICK2,COLOR6ACCFF;
果断介入:IF(CROSS(J,VARB)ANDCOUNT(VAR5 -12,3) =1,95,1),colormagenta;
主力介入:IF(CROSS(J,VARB)ANDCOUNT(VAR5 -16,4) =1,40,-15),colorwhite;
VARC:=DRAWICON(CROSS(J,1),1,1);
98;
乖离36:STICKLINE(VAR5 -36,125,110,6,0),COLOR95FBDD;
乖离28:STICKLINE(VAR5 -28ANDVAR5 -36,115,100,6,0),colormagenta;
乖离24:STICKLINE(VAR5 -24ANDVAR5 -28,105,85,6,0),coloryellow;
乖离20:STICKLINE(VAR5 -20ANDVAR5 -24,95,65,6,0),colorred;
乖离18:STICKLINE(VAR5 -18ANDVAR5 -20,85,55,6,0),COLORDDAA78;
乖离16:STICKLINE(VAR5 -16ANDVAR5 -18,75,45,6,0),COLORFFE0C0;
乖离14:STICKLINE(VAR5 -14ANDVAR5 -16,65,35,6,0);
乖离12:STICKLINE(VAR5 -12ANDVAR5 -14,50,20,5,0),colorgreen;
乖离9:STICKLINE(VAR5 -9ANDVAR5 -12,35,5,5,0),COLORAAAE5D;
乖离6:STICKLINE(VAR5 -6ANDVAR5 -9,-2,-15,5,0),colorwhite;
DRAWGBK(C 0,RGB(0,10,10),RGB(48,0,0),0,'11',0);
主力控盘:=(CLOSE-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43))*100;
指标公式:=SMA(主力控盘,2,1);
源码最新:SMA(指标公式,2,1),LINETHICK3,COLORFFCC66;
vgffv1:100,COLORRED;
vgffv2:0,COLORGREEN;
vgffv3:50,COLORFFAA00;
DRAWTEXT(ISLASTBAR,vgffv3,'vgffv3'),COLORFFAA00;
A:92,COLOR3399FF;
B:8,COLOR3399FF;
vgffv4:STICKLINE(CROSS(源码最新,4),0,50,0,0),COLORRED;
DRAWICON(CROSS(源码最新,4),58,1);
DRAWICON(CROSS(源码最新,4),70,26);
vgffv5:STICKLINE(CROSS(96,源码最新),100,50,0,0),COLORGREEN;
DRAWICON(CROSS(96,源码最新),40,2);
DRAWICON(CROSS(96,源码最新),30,15);
IF(源码最新 REF(源码最新,1),源码最新,DRAWNULL),COLORMAGENTA,LINETHICK3;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=2*(DIF-DEA);
vgffv6:=MACD 0ANDMACD REF(MACD,1)ANDREF(MACD,1) =REF(MACD,2);
vgffv7:=C REF(C,1)ANDREF(C,1) =REF(C,2)ANDREF(C,2) =REF(C,3);
vgffv8:=源码最新 89AND(源码最新 =REF(源码最新,1));
vgffv9:=vgffv8ANDvgffv6ANDvgffv7;
deddd1:=MACD 0ANDMACD REF(MACD,1)ANDREF(MACD,1) =REF(MACD,2);
deddd2:=C =REF(C,1)ANDREF(C,1) =REF(C,2)ANDREF(C,2) =REF(C,3);
deddd3:=源码最新 11AND(源码最新 =REF(源码最新,1));
deddd6:=deddd3ANDdeddd1ANDdeddd2;
DRAWICON(deddd6,30,1);
DRAWICON(deddd6,40,7);
STICKLINE(deddd6,0,20,0.01,0),COLORRED;
DRAWICON(vgffv9,70,2);
DRAWICON(vgffv9,60,8);
STICKLINE(vgffv9,100,80,0.01,0),COLORGREEN;
VAR1:=EMA(EMA(CLOSE,13),13);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000,COLORFFCCCC,POINTDOT;
STICKLINE(控盘 0,控盘,0,2,0),COLORWHITE;
无庄控盘:控盘 0,COLORWHITE;
STICKLINE(控盘 REF(控盘,1)AND控盘 0,控盘,0,2,1),COLORRED;
有庄控盘:控盘 REF(控盘,1)AND控盘 0,COLORRED;
VAR2:=100*WINNER(CLOSE*0.95);
STICKLINE(控盘 REF(控盘,1)AND控盘 0,控盘,0,2,0),COLOR00FF00;
主力出货:控盘 REF(控盘,1)AND控盘 0,COLOR00FF00;
STICKLINE(VAR2 50ANDCOST(85) CLOSEAND控盘 0,控盘,0,2,0),COLORFF00FF;
高度控盘:VAR2 50ANDCOST(85) CLOSEAND控盘 0,COLORFF00FF;
A10:=CROSS(控盘,0);
开始控盘:IF(A10,6,0),COLORYELLOW;
控盘天数:BARSLASTCOUNT(有庄控盘OR高度控盘),LINETHICK0,COLORWHITE;
出货天数:BARSLASTCOUNT(主力出货),LINETHICK0,COLORWHITE;
WY1001:=(2*CLOSE+HIGH+LOW)/4;
WY1002:=EMA(WY1001,4);
WY1003:=EMA(WY1002,4);
WY1004:=EMA(WY1003,4);
X:=(WY1004-REF(WY1004,1))/REF(WY1004,1)*2000;
X1:=IF(X REF(X,1),X,DRAWNULL),COLORWHITE,LINETHICK2;
XO:=MA(X,2),COLOR9932CD;
SI:=REF(X,1);
DIF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA1:=EMA(DIF1,9);
无敌版主力控盘通达信指标公式截图