组合主图
参数D=72
MA05:MA(C,5)LINETHICK3,COLOR00CCFF;
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
五日乖离率:=(C-MA05)/MA05*100;
BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416;
速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1);
加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;
IF(BB05>30 AND MA05>REF(MA05,1), MA05,DRAWNULL),LINETHICK3,COLORRED;
BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;
IF(BB05<0 AND MA05<REF(MA05,1), MA05,DRAWNULL),LINETHICK3,COLORGREEN;
三拾日乖离率:=(C-MA30)/MA30*100,NODRAW;
VAR1:=(MA20-MA30)>REF((MA20-MA30),1) AND MA20>REF(MA20,1) AND MA30>REF(MA30,1);
VAR2:=(MA30-MA20)<REF((MA30-MA20),1) AND MA20<REF(MA20,1) AND MA30<REF(MA30,1);
BB30:=ATAN((MA30/REF(MA30,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 MA05>REF(MA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA10>REF(MA10,1)
AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;
清仓:=FILTER(COUNT(CROSS(30,BB05),5)>=1 AND (C>MA30 OR O>MA30) AND MA05<REF(MA05,1) AND 三拾日乖离率<REF(三拾日乖离率,1) AND MA10<REF(MA10,1),10);
DRAWTEXT(加仓 ,LOW*0.98,'←加仓'),COLORRED;
JC:=CROSS(0,五日乖离率) AND 三拾日乖离率<REF(三拾日乖离率,1) AND MA10>REF(MA10,1) ;
减仓:=FILTER(JC,10);
MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA05>REF(MA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<MA30;
买入:=FILTER(MR,10);
DRAWTEXT(减仓,HIGH*1.02,'←风险'),COLORCYAN;
DRAWTEXT(买入,LOW*0.98,'←买入'),COLORYELLOW;
DRAWTEXT(清仓 ,HIGH*1.02,'←清仓'),COLORGREEN;
DRAWTEXT(强势狙击,LOW*0.98,'←强势狙击'),COLORYELLOW;
VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW));
VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);
MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50;
压力:MA(REF(HHV(C,30),1),2),COLOR9DFFFF;
支撑:MA(REF(LLV(C,30),1),2),COLORABFF46;
D:=72;
TR1:=REF(HIGH,1)-REF(LOW,1);
CDP1:=(REF(H,1)+REF(L,1)+REF(C,1))/3;
AH1:=CDP1+TR1;
BH1:=(CDP1+CDP1)-REF(L,1);
YYK:=1;
ARK:=1;
BL1:=(CDP1+CDP1)-REF(H,1);
AL1:=CDP1-TR1;
TR:=HIGH-LOW;
CGP:=1;
CDP:=(H+L+C)/3;
AH:=CDP+TR;
BHD:=1;
BH:=(CDP+CDP)-L;
BL:=(CDP+CDP)-H;
PAK:=1;
AL:=CDP-TR;
DAE:=1;
胜算买入:= (25),;
高胜算抄月殳:=1;
高胜算抄月殳系统:=1;
安全操盘:=1;
买入操盘:=1;
卖出操盘:=IFN(买入操盘 AND 高胜算抄月殳系统 AND BHD ,0,1);
胜算系统:=IF(NOT(卖出操盘*高胜算抄月殳系统 AND CGP AND ARK),0,1);
卖出:=IFN(高胜算抄月殳 AND 高胜算抄月殳系统 AND 卖出操盘*高胜算抄月殳系统 AND 安全操盘*高胜算抄月殳 ,0,1);
胜算操盘:=IFN(安全操盘 AND BHD AND 高胜算抄月殳系统 ,0,1);
安全线操盘:=IF(NOT(买入 AND DAE*ARK AND 高胜算抄月殳系统),0,1);
操盘线操盘:=IF(买入操盘*ARK*PAK*BHD,1,0);
牛熊分界线操盘:=IFN(卖出,0,1);
高胜算买入:=IF(NOT(安全操盘*高胜算抄月殳 AND 安全操盘*DAE AND 安全线操盘 AND 高胜算抄月殳系统),0,1);
高胜算卖出:=IFN(卖出操盘 AND 胜算系统*卖出操盘*ARK AND 操盘线操盘,0,1);
建仓:=IFN(NOT(高胜算抄月殳*买入 AND 买入操盘 AND 买入*高胜算抄月殳 AND 高胜算抄月殳系统) ,1,0);
VAR4:=100-(3)*(VAR2)+(2)*(VAR3);
高胜算出卖:= (-98),;
VAR5:=((3)*(VAR2)+(2)*(VAR3))/(4);
止损:=IFN(NOT(高胜算抄月殳*卖出操盘 AND 买入操盘 AND 安全操盘*高胜算抄月殳 AND PAK) ,1,0);
操盘线:IF(安全线操盘 AND 高胜算抄月殳*清仓 AND 建仓*高胜算抄月殳系统 AND 止损*ARK AND 买入*DAE,MA(C,4)*止损,0),COLORRED,LINETHICK3;
VAR8:=REF(VAR5,1);
操盘线标准:= (132),;
X1:=(C+L+H)/3;
X2:=EMA(X1,6);
X3:=EMA(X2,5);
安全线标准:= (24),;
安全线: IF(安全线操盘*建仓 AND PAK AND 止损 AND 高胜算抄月殳系统*安全线操盘 AND 建仓 AND 买入 AND 加仓*高胜算抄月殳,加仓*MA(C,19)*高胜算抄月殳,0),COLORGRAY,LINESTICK,LINETHICK1;
牛熊分界线标准:= (8),;
牛熊分界线: IF(清仓*止损 AND PAK AND 高胜算买入 AND 止损 AND 高胜算抄月殳系统*安全线操盘 AND 建仓 AND 买入 AND 加仓*高胜算抄月殳,加仓*MA(C,200)*高胜算抄月殳,0),COLORYELLOW,CIRCLEDOT,LINETHICK1;
DRAWTEXT(CROSS(安全线*卖出,操盘线*止损)AND 安全线操盘*卖出 AND PAK AND 止损 AND 高胜算抄月殳系统*安全线操盘 AND 建仓 AND 止损 AND 加仓*高胜算抄月殳 ,H*1.01,'←S 卖出'), COLOR00FF00,LINETHICK9;
高胜算加仓:=(30),;
高胜算止损:=(-150),;
VAR6:=ABS(ABS(VAR5)-ABS(VAR4));
DRAWTEXT(CROSS(操盘线*高胜算抄月殳,安全线*高胜算抄月殳系统*买入) AND 安全线操盘*建仓 AND PAK AND 止损 AND 高胜算抄月殳系统*安全线操盘 AND 建仓 AND 买入 AND 加仓*高胜算抄月殳,L*0.99,'←B 买入'),COLORYELLOW,LINETHICK9;
X5:=(C+L+H)/9;
X6:=EMA(X1,3);
VAR7:=ABS(ABS(VAR5)-ABS(VAR6));
STICKLINE(CROSS(操盘线*高胜算抄月殳,安全线*高胜算抄月殳系统*加仓*买入),OPEN,CLOSE,2,1),COLORYELLOW;
X8:=EMA(X5,1);
{参数 D:38,93,76}
X9:=EMA(X6,1);
X10:=EMA(X9,1);
STICKLINE(CROSS(安全线*买入,操盘线*卖出) AND BACKSET(CLOSE<操盘线,2) AND (操盘线<安全线),OPEN,CLOSE,2,1),COLORLIGREEN;
VAR22:=100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34));
VAR23:=MA(VAR22,3);
VAR24:=EMA(AMOUNT/VOL/100,5);
VAR25:=EMA(AMOUNT/VOL/100,13);
VAR26:=VAR24-VAR25;
DRAWICON(CROSS(操盘线*加仓,安全线*止损),L*0.98,9);
VAR36:=BARSCOUNT(CLOSE);
VAR37:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
VAR38:=((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2;
VAR39:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
DRAWICON(CROSS(安全线,操盘线),H*1,2);
MA5:MA(CLOSE,5);
MA60:MA(CLOSE,60);
CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
YJD:=(EMA(CS,3)-50)*2;
STICKLINE(CROSS(YJD,-80),LOW*0.94,LOW*0.96,2,1),COLORYELLOW;
DRAWTEXT(CROSS(YJD,-80),LOW*0.95,'波段抄底'),COLORYELLOW;
A2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100, , COLOR00FF00;
STICKLINE(A2<REF(A2,1) AND A2>79,1.02*HIGH,1.01*HIGH,5,0),COLOR00FFFF;
DRAWTEXT(A2<REF(A2,1) AND A2>79,1.01*HIGH,'波段顶'),COLORF000F0;
KDJ_K:="KDJ.K"(9,3,3);KDJ_D:="KDJ.D"(9,3,3);KDJ_J:="KDJ.J"(9,3,3);
买1:=CROSS(KDJ_J,0) OR (CROSS(KDJ_J,KDJ_K) AND KDJ_D<26);
买2:=CROSS("RSI.RSI1"(6,2,2),20) OR CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
买3:=CROSS("MACD.DIF","MACD.DEA") OR CROSS("MACD.MACD",0);
买0:=买1+买2+买3;
{买:IF(买0>1,买0,0);}
DRAWICON(买0>1,L*0.98,16);
|