●戰(zhàn)無不勝● D盤口排序
CHECK1:=CHECKUSER(1);
指數(shù)貢獻:(CLOSE-MA(CLOSE,5))*FINANCE(1)/1000,colorFF00FF;
==================================================================================================
大單之差
N:=100;N1:=100;
CHECK1:=CHECKUSER(1);
大單之差:(SUM(IF(BUYVOL>=N,VOL,0),0))-(SUM(IF(SELLVOL>=N1,VOL,0),0));
==================================================================================================
內(nèi)外盤比
CHECK1:=CHECKUSER(1);
內(nèi)外盤比率:SUM(BUYVOL,0)/SUM(SELLVOL,0);
==================================================================================================
牛熊排隊
N:=15;P:=5;
CHECK1:=CHECKUSER(1);
VAR1:=BUYVOL*100/FINANCE(7);
VAR2:=SELLVOL*100/FINANCE(7);
VAR3:=IF(VAR1>1.5,BUYVOL,0);
VAR4:=IF(VAR2>1.5,SELLVOL,0);
牛熊排隊:(SUM(VAR3,0)-SUM(VAR4,0))*(IF(BARSCOUNT(CLOSE)>50,1,0))/FINANCE(7);
==================================================================================================
增倉減倉
CHECK1:=CHECKUSER(1);
VAR1:=BUYVOL*100/FINANCE(7);
VAR2:=SELLVOL*100/FINANCE(7);
VAR3:=IF(VAR1>1.5,BUYVOL,0);
VAR4:=IF(VAR2>1.5,SELLVOL,0);
倉位增減:(SUM(VAR3,0)-SUM(VAR4,0))*(IF(BARSCOUNT(CLOSE)>100,1,0))/100;
{●戰(zhàn)無不勝● C風(fēng)險收益}
CHECK1:=CHECKUSER(1);
POLYLINE(1,"KDJ.D"),colorFFFF00;
短高:IF(BETWEEN("KDJ.K",100,80),88,100),PRECISION0;
短低:IF(BETWEEN("KDJ.K",20,0),12,0),PRECISION0;
波低:IF(BETWEEN("KDJ.K#week",10,0),30,0),PRECISION0;
波高:IF(BETWEEN("KDJ.K#week",100,90),70,100),PRECISION0;
中低:IF(BETWEEN("KDJ.K#MONTH",20,0),30,0),PRECISION0,colorFF;
中高:IF(BETWEEN("KDJ.K#MONTH",100,75),70,100),PRECISION0;
POLYLINE(1,0),colorFFFF;
A1:=BARSLAST(REF(CROSS("MACD.DIFF","MACD.DEA"),1));
B1:=REF(CLOSE,A1+1)>CLOSE AND REF("MACD.DIFF",A1+1)<"MACD.DIFF" AND CROSS("MACD.DIFF","MACD.DEA");
MACD底背離:STICKLINE(FILTER(B1>0,5),0,25,3,0),colorFF00;
DRAWTEXT(FILTER(B1>0,5),25,'MACD底背'),colorFF00;
A2:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1));
B2:=REF(CLOSE,A2+1)>CLOSE AND REF("KDJ.K",A2+1)<"KDJ.K" AND CROSS("KDJ.K","KDJ.D");
KDJ底背離:STICKLINE(FILTER(B2>0,5),0,25,3,0),colorFFFF;
DRAWTEXT(FILTER(B2>0,5),25,'KDJ底背'),colorFFFF;
A3:=BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1));
B3:=REF(CLOSE,A3+1)>CLOSE AND REF("RSI.RSI1",A3+1)<"RSI.RSI1" AND CROSS("RSI.RSI1","RSI.RSI2");
RSI底背離:STICKLINE(FILTER(B3>0,5),0,25,3,0),colorFFFF00;
DRAWTEXT(FILTER(B3>0,5),25,'RSI底背'),colorFFFF00;
POLYLINE(1,100),colorFF;
C1:=BARSLAST(REF(CROSS("MACD.DEA","MACD.DIFF"),1));
D1:=REF(CLOSE,C1+1)<CLOSE AND REF("MACD.DIFF",C1+1)>"MACD.DIFF" AND CROSS("MACD.DEA","MACD.DIFF");
MACD頂背離:STICKLINE(FILTER(D1>0,5),100,75,3,0),color66FF;
DRAWTEXT(FILTER(D1>0,5),75,'MACD頂背'),color66FF;
C2:=BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1));
D2:=REF(CLOSE,C2+1)<CLOSE AND REF("KDJ.K",C2+1)>"KDJ.K" AND CROSS("KDJ.D","KDJ.K");
KDJ頂背離:STICKLINE(FILTER(D2>0,5),100,75,3,0),colorFF;
DRAWTEXT(FILTER(D2>0,5),75,'KDJ頂背'),colorFF;
C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1));
D3:=REF(CLOSE,C3+1)<CLOSE AND REF("RSI.RSI1",C3+1)>"RSI.RSI1" AND CROSS("RSI.RSI2","RSI.RSI1");
RSI頂背離:STICKLINE(FILTER(D3>0,5),100,75,3,0),colorFF00FF;
DRAWTEXT(FILTER(D3>0,5),75,'RSI頂背'),colorFF00FF;
{●戰(zhàn)無不勝● C風(fēng)險收益}
N:=9;M1:=3;M2:=3;
CHECK1:=CHECKUSER(1);
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1);
J:=3*K-2*D;
DRAWGBK(K,COLORRGB(255,0,0),COLORRGB(255,255,0),1);
FILLRGN(K<20 AND CROSS(K,D) AND K>D,0,20),colorFF;
FILLRGN(K>60 AND CROSS(D,K) AND K<D,100,80),colorFF00;
D,colorFF0000;
80;
20;
{●戰(zhàn)無不勝● C風(fēng)險收益}
CHECK1:=CHECKUSER(1);
RSV:=(CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,18,1);
J:=3*K-2*D;
A:=ABS(1/1-D);
中線風(fēng)險度:ABS(1/1-"KDJ.D#MONTH"(7,2,2)),LINETHICK0;
波段風(fēng)險度:ABS(1/1-"KDJ.D#week"),LINETHICK1,colorFF0000;
短線風(fēng)險度:A,LINETHICK2,colorFF;
PARTLINE(A<REF(A,1),A),LINETHICK2,colorFF00;
風(fēng)險線:78,LINETHICK3,colorFF;
安全線:18,LINETHICK3,colorFF00;
平衡線:50;