公式解读:
公式源码如下:
DRAWGBK(C 0,RGB(0,10,10),RGB(88,0,0),0, 11 ,0);
Q2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
Q3:=SMA(Q2,9,1);
Q4:=SMA(Q3,3,1);
做多线:3*Q3-2*Q4,COLORRED,LINETHICK2;
VAR12:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
做空线:SMA(VAR12,3,1),COLORGREEN,LINETHICK2;
线:70,COLORLIMAGENTA,LINETHICK2;
强弱分界线:40,COLORWHITE;
天线:100,COLORGREEN,POINTDOT;
{主力建仓}
活筹:=(100*WINNER(REF(CLOSE,1)*1.1)-100*WINNER(REF(CLOSE,1)*0.9));
主力:=100*WINNER(CLOSE*0.9),COLORCYAN;
VAR1:=1;
VAR2:=1/WINNER(CLOSE);
VAR3:=MA(CLOSE,13);
VAR4:=100-ABS((CLOSE-VAR3)/VAR3*100);
VAR5:=LLV(LOW,75);
VAR6:=HHV(HIGH,75);
VAR7:=(VAR6-VAR5)/100;
VAR8:=SMA((CLOSE-VAR5)/VAR7,20,1);
VARA:=3*VAR8-2*SMA(VAR8,15,1);
线:=(100-VARA)*VAR1,COLORRED,LINETHICK2;
主力线:=MA(WINNER(CLOSE*0.95)*100,3)*VAR1,COLORYELLOW,LINETHICK2;
新庄:=(100-IF(VAR2 5,IF(VAR2 100,VAR2,VAR4-10),0))*VAR1,COLORGREEN,LINETHICK1,POINTDOT;
VARD:=散户线 VAR4;
STICKLINE(1,新庄,100,1,0),COLORMAGENTA,LINETHICK6;
即时虚拟量:=IF(CURRBARSCOUNT=1ANDPERIOD=5,/FROMOPEN*240,DRAWNULL),NODRAW;
虚拟量:=IF(CURRBARSCOUNT 1,VOL,即时虚拟量);
即时:虚拟量/REF(MA(虚拟量,5),1),NODRAW,COLORWHITE;
主力进场:=主力筹码 2ANDREF(主力筹码,1) 1;
主力建仓:=主力进场AND即时量比 2;
STICKLINE(主力建仓,100,0,1,0),COLORRED;
DRAWTEXT(主力进场AND即时量比 2,80, 主 ),COLORYELLOW;
DRAWTEXT(主力进场AND即时量比 2,65, 力 ),COLORYELLOW;
DRAWTEXT(主力进场AND即时量比 2,50, 进 ),COLORYELLOW;
DRAWTEXT(主力进场AND即时量比 2,35, 场 ),COLORYELLOW;
VAR1G:=(((CLOSE/MA(CLOSE,40))*100) 78);
VAR2G:=(((CLOSE/MA(CLOSE,60))*100) 74);
VAR3G:=(HIGH (LOW*1.051));
VAR4G:=(VAR3GAND(COUNT(VAR3G,5) 1));
AA:=IF((VAR4GAND(VAR1GORVAR2G)),2,0);
BB:=C/REF(C,25) =1.1;
CC:=(SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100) 15;
V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
操盘线:=SMA(V3,2,1);
V5:=SMA(操盘线,2,1);
:=IF(操盘线 REF(操盘线,1)ANDREF(操盘线,1) REF(操盘线,2)AND操盘线 23,1.5,0);
买就赢利:=BBANDAAANDCCAND抄底;
参考:=MA(CLOSE,5);
做多:=MA(CLOSE,10);
准线:=EMA(CLOSE,14);
涨幅%:=(C-REF(C,1))/REF(C,1)*100;
条件6:=参考 做多AND做多 准线;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27);
DEAF:=EMA(DIFF,9);
低位金叉:=CROSS(DIFF,DEAF)ANDDIFF -0.1;
A1:=BARSLAST(REF(CROSS(DIFF,DEAF),1));
底:=REF(CLOSE,A1+1) CLOSEANDDIFF REF(DIFF,A1+1)ANDCROSS(DIFF,DEAF);
潜伏:=低位金叉AND底背离;
DIF1:=EMA(C,13)-EMA(C,21);
DEA:=EMA(DIF1,5);
埋伏:=REF(DIF1 0ANDDIF1 DEA,1)ANDDIF1 0ANDDIF1 DEAAND潜伏AND条件6;
好运当头:=买就赢利OR庄家埋伏;
STICKLINE(好运当头,100,0,1,0),COLORRED;
DRAWTEXT(好运当头,80, 好 ),COLORYELLOW;
DRAWTEXT(好运当头,65, 运 ),COLORYELLOW;
DRAWTEXT(好运当头,50, 当 ),COLORYELLOW;
DRAWTEXT(好运当头,35, 头 ),COLORYELLOW;
COUNT(C O,3)=3ANDREF(C,2)=REF(H,2)ANDH REF(C,1)ANDC REF(O,1);
S:=IF(NAMELIKE( S ),1,0)=0;{非S}
ST:=IF(NAMELIKE( ST ),1,0)=0;{非ST}
SST:=IF(NAMELIKE( *S ),1,0)=0;{非*S}
月K: KDJ.K (89,3,3),COLOR00FF00;
月D: KDJ.D (89,3,3),COLOR00FF00,LINETHICK2;
周K: KDJ.K (27,3,3),colorred;
周D: KDJ.D (27,3,3),colorred,LINETHICK2;
DRAWBAND(周D,RGB(0,255,0),周K,RGB(255,0,255));
DRAWBAND(月D,RGB(0,0,205),月K,RGB(139,69,19));
日K: KD.K (5,3,3),colorwhite;
日D: KD.D (5,3,3),colorwhite,LINETHICK2;
日金叉:=IF(CROSS(日K,日D),50,0),COLORFFFFFF;
DRAWTEXT(日金叉,50, 日叉 ),COLORFFFFFF;
周金叉:=IF(CROSS(周K,周D),30,0),colorred;
DRAWTEXT(周金叉,30, 周叉 ),colorred;
月金叉:=IF(CROSS(月K,月D),20,0),COLOR0080FF;
DRAWTEXT(月金叉,20, 月叉 ),coloryellow;
停牌:=DYNAINFO(4) 0;
PE:=C/FINANCE(33);
SYL:=PE 0;{市盈率为正}
JBM:=SANDSTANDSSTAND停牌ANDSYL;
A1:=BARSLAST(REF(CROSS(MACD.DIF,MACD.DEA),1));
底背离:=REF(CLOSE,A1+1) CLOSEANDMACD.DIF REF(MACD.DIF,A1+1)ANDCROSS(MACD.DIF,MACD.DEA);
TS1:=BARSLAST(CROSS(MACD.MACD*10,0));
CC:=BARSLAST(CROSS(MACD.DEA,MACD.DIF));
TS:=REF(BARSLAST(CROSS(MACD.DIF,MACD.DEA)),1);
EE:=(EVERY(MACD.DIF =0.25ANDMACD.DEA =0.05,TS+1)ANDCOUNT(CROSS(MACD.DEA,MACD.DIF),TS+1)=1ANDCROSS(KDJ.J,KDJ.D));
XG1:COUNT(底背离,TS) =0ANDEEANDHHV(C,30)/C =1.25ANDH HHV(H,5)ANDJBMANDC/O =1.07;
DIF:EMA(C,12)-EMA(C,26),COLORMAGENTA;
DEA:EMA(DIF,4),COLORGREEN;
MACD:2*(DIF-DEA),LINETHICK;
STICKLINE(MACD 0,0,MACD,3,1),COLORYELLOW;
STICKLINE(MACD 0,0,MACD,3,1),COLORGREEN;
KDIF:(C*DIF)/(c+DIF)+MACD,LINETHICK;
KMACD:2*(KDIF-DIF),COLOR1133FF,COLORSTICK;
A1:=Ema(C,12)-EMA(C,25);
A2:=EMA(A1,6);
★主力:(A2 =0)*A2,COLORWHITE,LINETHICK0;
stICKLINE(A2 =0,A2,0,5,0),COLORWHITE;
STICKLINE(A2 0,A2,0,5,0),COLORD4FF7F;
STICKLINE(A1 0,A1,0,5,0),COLORB00058;
STICKLINE(A1 =0,A1,0,5,0),COLORRED;
VAR8:=vol 2*MA(VOL,30);
VAR9:= .ADX (12,6);
VARA:= DMI.ADXR (12,6);
VARB:=CLOSE MA(CLOSE,30)ANDCLOSE MA(CLOSE,30)*1.04;
VARC:=MA(CLOSE,30) REF(MA(CLOSE,30),1);
VARD:=BArslAST(crOSS(MA(CLOSE,5),MA(CLOSE,10))) BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5)));
VARF:=TROUGHBARS(3,15,1)
VAR10:=EMA(CLOSE,30) REF(EMA(CLOSE,30),2);
VAR11:=IF(VARF=1,50,0);
★:EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3),COLORWHITE;
0,COLORRED;
STICKLINE(FILTER(VARF=1,5)AND★机构 -10,50,0,15,1),COLORYELLOW;
STICKLINE(FILTER(VARF=1,5),86,0,8,0),COLORRED;
DRAWTEXT(FILTER(VARF=1,3),76, ★◆黄金柱◆ ),COLORYELLOW;
STICKLINE(★机构 -10,0,★机构,0.85,0),COLORGREEN;
STICKLINE(★机构 10,0,★机构,0.95,0),COLORYELLOW;
★低点:CROSS(,11)*80,COLORBLUE;
DRAWTEXT(★低点,39, ★低点 ),COLOR66FFCC;
VAR6:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR7:=SMA(Abs(VAR6-H),13,1)/SMA(MAX(VAR6-H,0),10,1);
VAR0:=EMA(IF(H =VAR9,VAR8,0),3);
★主出场:IF(VAR0 REF(VAR0,1),-VAR0+100,100),COLORGREEN;
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10),COLORGREEN;
VAR4:=LLV(LOW,33),COLORWHITE;
VAR5:=EMA(IF(LOW =VAR4,VAR3,0),3);
★主进场:IF(VAR5 REF(VAR5,1),VAR5,0),COLORRED;