X7:=MA(C,4);
X8:=MA(SUM(AMOUNT,2)/SUM(V,2)/100,2);
超短指标:=IF(CROSS(X7,X8) ,1,0);
X1:=MA(INDEXDEC,3);
X2:=MA(INDEXADV,3);
X3:=MA((X2-X1),1);
X5:=MA((X2-X1),3);
DRAWBAND(X5,RGB(0,22,224),X3,RGB(255,50,50));
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主买:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
主卖:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2));
差额:=主买+主卖,LINETHICK0;
BB:=SUM(差额,3);
资金流入:DRAWICON(BB>REF(BB,2),600,1);
资金流入1:=IF(BB>REF(BB,2),1,0);
资金流入2:DRAWICON(资金流入1<REF(资金流入1,1),600,12);
X11:=SUM(AMOUNT,3);
X12:=SUM(VOL,3);
X13:=X11/X12/100;
X14:=SUM(AMOUNT,13);
X15:=SUM(VOL,13);
X113:=X14/X15/100;
X16:=SUM(AMOUNT,20);
X19:=SUM(VOL,20);
X120:=X16/X19/100;
X111:=SUM(AMOUNT,45);
X112:=SUM(VOL,45);
X145:=X16/X19/100;
提前买卖:=IF(CROSS(X145*0.97,X13) OR CROSS(X120*0.97,X13),1,0);
L13:=LLV(AMOUNT/V/100,13);
L5:=LLV(AMOUNT/V/100,3);
四边形1:=IF(CROSS(REF(LLV(AMOUNT/V/100,7),1),REF(C,1)) AND C>O AND REF(LLV(AMOUNT/V/100,13),0)>REF(LLV(AMOUNT/V/100,13),3),1,0);
四边形2:=IF(REF(LLV(AMOUNT/V/100,10),1)=REF(LLV(AMOUNT/V/100,3),1) AND O-L>H-C AND AMOUNT/V/100>REF(LLV(AMOUNT/V/100,3),2),1,0);
AA05:=MA(C,5);
五日乖离率:=(C-AA05)/AA05*100;
BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;
速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);
加速度5:=EMA((速度5-REF(速度5,1)),3);
AA10:=MA(C,10);
AA20:=MA(C,20);BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;
AA30:=MA(C,30);
三拾日乖离率:=(C-AA30)/AA30*100;
VAR11:=(AA20-AA30)>REF((AA20-AA30),1)
AND AA20>REF(AA20,1) AND AA30>REF(AA30,1);
VAR22:=(AA30-AA20)<REF((AA30-AA20),1) AND AA20<REF(AA20,1) AND
AA30<REF(AA30,1);
BB30:=ATAN((AA30/REF(AA30,1)-1)*100)*180/3.1416;
强势狙击:=FILTER(BB30>30 AND BB10>45 AND
CROSS(BB05,60),10);
加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND
AA05>REF(AA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND
AA10>REF(AA10,1)
AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;
清仓:=FILTER(COUNT(CROSS(30,BB05),5)>=1 AND (C>AA30 OR O>AA30) AND
AA05<REF(AA05,1) AND 三拾日乖离率<REF(三拾日乖离率,1) AND
AA10<REF(AA10,1),10);
加仓1:=IF(加仓 ,1,0);
强势狙击1:=IF(强势狙击 ,1,0);
BBBB:300;
CCCC:-300;
EEEE:1500;
DDDD:0;
TYP := (HIGH + LOW + CLOSE)/3;
CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,6));
差值1:=ABS(REF(CCI1,1)-CCI1),LINETHICK0;
CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));
差值2:=ABS(REF(CCI2,1)-CCI2),LINETHICK0;
CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));
差值3:=ABS(REF(CCI3,1)-CCI3),LINETHICK0;
CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));
差值4:=ABS(REF(CCI4,1)-CCI4),LINETHICK0;
CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));
差值5:=ABS(REF(CCI5,1)-CCI5),LINETHICK0;
CCI:=CCI1+CCI2+CCI3+CCI4+CCI5;
AAA:=(3*C+H+L+O)/6;
VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;
VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;
VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;
VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;
VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;
VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;
短线:=VAR1;
中线:=VAR6;
下跌:=IF(VAR1=VAR6,VAR6, DRAWNULL);
TJ1:= CCI1>差值4;
立桩量:=FILTER(TJ1,0);
TJ2:=IF(BARSLAST(立桩量)=1 ,1,IF(BARSLAST(立桩量)=2 ,1,
IF(BARSLAST(立桩量)=3 ,1,0)));
成立1:=TJ2;
条件成立1:=FILTER(成立1,5);
TJ11:= CCI1<-差值4 ;
立桩量2:=FILTER(TJ11,0);
TJ22:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(HIGH,1),1,
IF(BARSLAST(立桩量2)=2 AND CLOSE>REF(HIGH,2),1,
IF(BARSLAST(立桩量2)=3 AND CLOSE>REF(HIGH,3),1,0)));
成立2:=TJ22;
条件成立2:=FILTER(成立2,5);
TJ111:=(ABS(CCI1)>CCI AND ABS( 差值1)> ABS(差值5))
OR (VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1);
立桩量3:=FILTER(TJ111,5);
TJ222:=IF(BARSLAST(立桩量3)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量3)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量3)=3 AND CLOSE>REF(HIGH,3),1,0)));
突破3:=TJ222=1;
TJ3:=IF(BARSLAST(立桩量3)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量3)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量3)=3 AND CLOSE>REF(LOW,3),1,0)));
三天法则:=TJ3=1;
成立:=三天法则 AND 突破3;
条件成立:=FILTER(成立,5);
TJ31:=(VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1);
TJ32:=FILTER(TJ31,1);
立桩量1:=IF(条件成立2,1,0);
BB1:=(C+L+H)/3;
BB5:=ATAN(EMA(BB1,7)-REF(EMA(BB1,7),1))*3.1416*10;
EMA3:=EMA(C,3);
绝买:=IF(FILTER(BB5>1 AND EMA(BB1,7)>REF(EMA(BB1,7),1),10),1,0);
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,VOL,0);J2:=IF(CLOSE<QJ,VOL,0);
量能:=IF(CAPITAL<1,MA(VOL,74),MA(SUM(J1-J2,22),3));
趋势:=IF(CAPITAL<1,EMA(量能,360),EMA(量能,21));
VARB:=SMA(RV,3,1);
VARC:=SMA(VAR4,3,1);
KK:=EMA(SMA(RG,3,1),2);DD:=SMA(KK,3,1);
共振点:=IF(CROSS(VARB,VARC) AND CROSS(KK,DD),1,0);
MAV:=AMOUNT/1000000;
SK := EMA(MAV,13) - EMA(MAV,34);
SD := EMA(SK,3);
B:=(SK-SD);
TJB:=CROSS(B,0) AND B>REF(B,1);
能量多空:=IF(TJB,1,0);
RSV1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
K1:=SMA(RSV1,5,1);
D1:=SMA(K1,5,1);
HJ1:=3*K1-2*D1;
AA1:=EMA(HJ1,5);
AA2:=REF(AA1,1);
RSV2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K2:=SMA(RSV2,3,1);
D2:=SMA(K2,3,1);
HJ2:=3*K2-2*D2;
BBB1:=EMA(HJ2,5);
BBB2:=REF(BBB1,1);
DDD:=AA1>AA2 AND BBB1>BBB2;
注意买入:=DD AND NOT(REF(DDD,1)) AND (AA1<50 OR BB1<50);
J线共振:=IF(注意买入,1,0);
选择权:= 立桩量1+加仓1+强势狙击1+四边形1+四边形2+提前买卖+超短指标+绝买+共振点+能量多空+J线共振;
DRAWICON(选择权=2,700,17);
DRAWICON(选择权=3,700,16);
DRAWICON(选择权=4,700,11);
DRAWICON(选择权=5,700,14);
DRAWICON(选择权=6,700,9);
DRAWICON(选择权=7,700,19);
第一行:DRAWTEXT(X3>700,1300,'第一行为选择,苹果和买入为推荐,桔子可以考虑买入');
第二行:DRAWTEXT(X3>700,1100,'第二行为资金行,资金和第一行配合,成功率会极大提高');
主图:DRAWTEXT(X3>700,900,'主图为大盘指标,建议大盘向上时考虑进入');
|