VARJ1:=(C+H+O+L)/4;
卖出R:=XMA(VARJ1,20)*(1+80/1000),COLORFFFFFF,LINETHICK3;
买入R:=XMA(VARJ1,32)*(1-100/1000),COLOR0000FF,LINETHICK3;
输出1:DRAWBAND(卖出R,RGB(200,50,55),卖出R*1.03,RGB(0,100,50));
输出2:DRAWBAND(买入R,RGB(0,55,0),买入R*0.97,RGB(55,55,0));
MA1:=MA(VARJ1,3);
STICKLINE(卖出R>LOW AND 卖出R<HIGH,卖出R,MAX(卖出R,MAX(OPEN,CLOSE)),3,0),COLORGREEN;
STICKLINE(卖出R>MIN(C,O) AND 卖出R<MAX(C,O),卖出R,MAX(OPEN,CLOSE),3,0),COLORGREEN;
STICKLINE(卖出R>LOW AND 卖出R<HIGH,卖出R,HIGH,0,0),COLORGREEN;
STICKLINE(卖出R<LOW,OPEN,CLOSE,3,0),COLORGREEN;
STICKLINE(卖出R<LOW,HIGH,LOW,0,0),COLORGREEN;
DRAWTEXT(CROSS(C,卖出R),卖出R*1.05,'卖出'),COLOR00FF00;
底撑:=LLV(LOW,60)*1.02,COLOR006EFF;
快线:EMA((CLOSE+LOW)/2,8),COLORFFFFFF;
A:=(3*C+L+O+H)/6;
巨浪2型:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210,COLORRED,LINETHICK1;
均衡:MA(巨浪2型,13),COLOR00FFFF,LINETHICK2;{中长线看日,短线看60分钟,分界线跌破卖出}
庄控线:=EMA(COST(81),10);
ZAR1:=SLOPE(EMA(CLOSE,2),5)*15+C;
ZAR2:=EMA(ZAR1,5);
ZARA:=EMA(EMA(EMA(EMA(EMA(EMA(EMA(EMA(ZAR2,5),5),5),5),5),5),5),5);
ZARB:=BARSLAST(CROSS(CLOSE,ZARA));
ZARC:=BARSLAST(CROSS(ZARA,CLOSE));
上涨注意消失:STICKLINE(CLOSE<ZARA AND CLOSE<REF(CLOSE,ZARC),快线,均衡,0.1,1),COLOR00FF00;
弹:STICKLINE(CLOSE>ZARA AND CLOSE>REF(CLOSE,ZARB),快线,均衡,0.1,1),COLORFF3399;
庄控:STICKLINE(C>均衡 AND 巨浪2型>庄控线,快线,均衡,0.1,1),COLOR00FFFF;
强弱:EMA(EMA((LOW+CLOSE+HIGH)/3,25),25),LINETHICK1,COLOR008800;
止损价位:(REF(CLOSE,1)*1.0035*97+0.2)/99.65,LINETHICK0;
VAR8T:=EMA(IF(L<= LLV(L,34), MA(SMA(ABS(L- REF(LOW,1)),13,1)/SMA(MAX(L- REF(LOW,1),0),13,1)*100,13),0),3);
VAR9T:=(SMA(SMA((((CLOSE - LLV(LOW,54)) / (HHV(HIGH,54) - LLV(LOW,54))) * 100),7,1),5,1));
VAR10T:=((SMA(((CLOSE - LLV(LOW,54)) / (HHV(HIGH,54) - LLV(LOW,54)) * 100),7,1)) * 16.18) - ((SMA(SMA((((CLOSE - LLV(LOW,54)) / (HHV(HIGH,54) - LLV(LOW,54))) * 100),7,1),5,1))* 10.9);
VAR11T:=FILTER(IF(VAR10T<=VAR9T AND VAR8T>REF(VAR8T,1),VAR8T*8,0),55);
VARL2T:=FILTER(CROSS(EMA(0.667*REF(EMA((CLOSE- LLV(LOW,60))/( HHV(HIGH,60)- LLV(LOW,60))*100,13),1)+0.333* EMA((CLOSE- LLV(LOW,60))/( HHV(HIGH,60)- LLV(LOW,60))*100,13),21), EMA((CLOSE- LLV(LOW,60))/( HHV(HIGH,60)- LLV(LOW,60))*100,13)) AND EMA((CLOSE- LLV(LOW,60))/( HHV(HIGH,60)- LLV(LOW,60))*100,13)>84,13);
DRAWTEXT(VAR11T,L*0.988,'锁定底'),COLORFF00FF;
箱底:=LLV(MA((LOW+HIGH+CLOSE+O)/4,6),58);
MA3:=MA(C,3),COLORAAEE00;
试:DRAWTEXT( CROSS(MA3 , 箱底),均衡,'试'),COLORFF00FF;
零轴分强弱:=(EMA((C+L)/2,3)-EMA((C+L)/2,5))+1.8;
用:=EMA(零轴分强弱-0.08,8);
机会:=IF((SMA(MAX((C+L+O)/3-REF(C,6),0),5,1)/SMA(ABS((C+L+O)/3-REF(C,6)),5,1)*100)<3 AND 零轴分强弱>用,-2.8,0),COLOR5290FF;
DRAWTEXT(CROSS(-1,机会)>0,L*0.996,'分15/30'),COLORFFFF00;
中1:=(EMA(((((H+C)/2+L+(C+L)/2)/3)-EMA(LLV((((H+C)/2+L+(C+L)/2)/3),47),2))/(EMA(HHV((((H+C)/2+L+(C+L)/2)/3),21),2)-EMA(LLV((((H+C)/2+L+(C+L)/2)/3),47),2)),2)*90);
DRAWTEXT((CROSS(-3,中1)),强弱,'3天内'),COLOR0000FF;
A1:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);
黑马线:=EMA(A1,5),LINETHICK2,COLOR6600FF;
A4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
趋势线:=(MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2)),LINETHICK2,COLORYELLOW;
A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100;
黑马:DRAWTEXT(CROSS(A1,黑马线)AND 黑马线<A5,L,'黑马'),COLORFF0000;
N:= 3;
VAR1Z:= REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2Z:= SMA(ABS(LOW-VAR1Z),13,1)/SMA(MAX(LOW-VAR1Z,0),10,1);
VAR3Z:= EMA(VAR2Z,10);
VAR4Z:= LLV(LOW,33);
VAR5Z:= EMA(IF(LOW<=VAR4Z,VAR3Z,0),5);
VAR6Z:= REF(CLOSE,1);
VAR7Z:= SMA(MAX(CLOSE-VAR6Z,0),6,1)/SMA(ABS(CLOSE-VAR6Z),6,1)*100;
VAR8Z:= LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04;
VAR9Z:= CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;
VAR10Z:= VAR8Z AND VAR9Z;
VAR11Z:= (2*CLOSE+HIGH+LOW)/4;
VAR12Z:= LLV(LOW,13);
VAR13Z:= HHV(HIGH,13);
VAR14Z:= LLV(LOW,1)=LLV(LOW,35) AND CLOSE>=OPEN*1.04;
VAR15Z:= CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;
VAR16Z:= EMA((VAR11Z-VAR12Z)/(VAR13Z-VAR12Z)*100,13);
VAR17Z:=(CLOSE-MA(CLOSE,6)/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;
VAR19Z:= MA(CLOSE,13);
VAR20Z:= 100-ABS((CLOSE-VAR19Z)/VAR19Z*100);
VAR21Z:= LLV(LOW,75);
VAR22Z:= HHV(HIGH,75);
VAR23Z:= (VAR22Z-VAR21Z)/100;
VAR24Z:= SMA((CLOSE-VAR21Z)/VAR23Z,20,1);
VAR25Z:= SMA((OPEN-VAR21Z)/VAR23Z,20,1);
VAR26Z:= 3*VAR24Z-2*SMA(VAR24Z,15,1);
VAR27:= MA(HHV(HIGH,485),17);
VAR28:= MA(HHV(HIGH,222),17);
VAR29:= MA(HHV(HIGH,96),17);
VAR30:= MA(LLV(LOW,485),17);
VAR31:= MA(LLV(LOW,222),17);
VAR32:= MA(LLV(LOW,96),17);
VAR33:= MA((VAR30*0.96+VAR31*0.96+VAR32*0.96+VAR27*0.558+VAR28*0.558+VAR29*0.558)/6,17);
VAR34:= MA((VAR30*1.25+VAR31*1.23+VAR32*1.2+VAR27*0.55+VAR28*0.55+VAR29*0.65)/6,17);
VAR35:= MA((VAR30*1.3+VAR31*1.3+VAR32*1.3+VAR27*0.68+VAR28*0.68+VAR29*0.68)/6,17);
VAR36:= LLV(LOW,30);
VAR37:= MA((VAR33*3+VAR34*2+VAR35)/6*1.738,17);
VAR38:= VAR37;
VAR39:= LOW;
VAR40:= REF(LOW,1);
VAR41:= SMA(ABS(VAR39-VAR40),3,1)/SMA(MAX(VAR39-VAR40,0),N,1)*100;
VAR42:= MA(IF(CLOSE*1.35<=VAR38,VAR41*10,VAR41/10),N);
VAR43:= HHV(VAR42,30);
绝佳买点:=MA(IF(LOW<=VAR36,(VAR42+VAR43*2)/2,0),N);
大买:=FILTER(绝佳买点>30000,5);
DRAWTEXT(大买,强弱,'大买'),COLORFFFFFF;
LY:=10;
BL:=40;
CJQS:=XMA(CLOSE,LY);
JBQS:=XMA(CLOSE,BL);
NN:=REF(JBQS,BL/2+1-CURRBARSCOUNT)/REF(JBQS,BL/2+2-CURRBARSCOUNT);
MM:=REF(CJQS,LY/2+1-CURRBARSCOUNT)/REF(CJQS,LY/2+2-CURRBARSCOUNT);
JB上轨:=IF(CURRBARSCOUNT>BL/2,JBQS*1.1,REF(JBQS,BL/2+1-CURRBARSCOUNT)*POW(NN,BL/2+1-CURRBARSCOUNT)*1.1);
JB下轨:=IF(CURRBARSCOUNT>BL/2,JBQS*0.9,REF(JBQS,BL/2+1-CURRBARSCOUNT)*POW(NN,BL/2+1-CURRBARSCOUNT)*0.9);
CJ上轨:=IF(CURRBARSCOUNT>LY/2,CJQS*1.05,REF(CJQS,LY/2+1-CURRBARSCOUNT)*POW(MM,LY/2+1-CURRBARSCOUNT)*1.05);
CJ下轨:=IF(CURRBARSCOUNT>LY/2,CJQS*0.95,REF(CJQS,LY/2+1-CURRBARSCOUNT)*POW(MM,LY/2+1-CURRBARSCOUNT)*0.95);
DRAWTEXT(O<=CJ下轨,(L),'抢'),COLORYELLOW;
DRAWTEXT(CROSS(H,CJ上轨),(H),'砸'),COLORYELLOW;
落袋为安:DRAWTEXT(CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),H*1.01,'落袋为安'),COLORFF5588;
VARZS2:=(2*CLOSE+HIGH+LOW)/4;
VARZS4:=LLV(LOW,5);
VARZS5:=HHV(HIGH,4);
散户:=EMA((VARZS2-VARZS4)/(VARZS5-VARZS4)*100,4);
庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2);
低吸:DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.03,'低吸'),COLORF0ABCD;
高抛:=DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.03,'高抛'),COLOR989898;
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);
DRAWTEXT(FILTER(D1>0,5),H*1.03,'M顶'),COLOR00FF00;{MACD顶背离}
C2:=BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1));
D2:=REF(C,C2+1)<C AND REF("KDJ.K",C2+1)>"KDJ.K" AND CROSS("KDJ.D","KDJ.K");
DRAWTEXT(FILTER(D2>0,5),H*1.02,'K顶'),COLOR989898;{KDJ顶背离}
C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1));
D3:= |