STEP1:=2/100;
MVALUE1:=20/100;
SARLINE:SAR(4,STEP1,MVALUE1),NODRAW;
//IF(SARLINE 0,SARLINE,NULL),COLORRED,NOTEXT,CIRCLEDOT;
//IF(SARLINE 0,-SARLINE,NULL),COLORCYAN,NOTEXT,CIRCLEDOT;
HH:=CROSS(BACKSET(REFX(CROSSDOWN(SARLINE,0),1),HHVBARS(H,BARSLAST(CROSS(SARLINE,0))+1)+1),0.5);
LL:=CROSS(BACKSET(REFX(CROSS(SARLINE,0),1),LLVBARS(L,BARSLAST(CROSSDOWN(SARLINE,0))+1)+1),0.5);
DRAWLINE3(ISLASTBAR SARLINE 0,HHV(H,BARSLAST(CROSS(SARLINE,0))+1),HHVBARS(H,BARSLAST(CROSS(SARLINE,0))+1),ISLASTBAR SARLINE 0,REF(L,BARSLAST(LL)),BARSLAST(LL),0),LINETHICK3,COLORRED;
DRAWLINE3(ISLASTBAR SARLINE 0,LLV(L,BARSLAST(CROSSDOWN(SARLINE,0))+1),LLVBARS(L,BARSLAST(CROSSDOWN(SARLINE,0))+1),ISLASTBAR SARLINE 0,REF(H,BARSLAST(HH)),BARSLAST(HH),0),LINETHICK3,COLORGREEN;
DRAWLINE3(HH,H,0,LL,L,0,0),COLORGREEN,LINETHICK6;
DRAWLINE3(LL,L,0,HH,H,0,0),COLORRED,LINETHICK6;
DRAWICON(LL,L, ICO118 ),VALIGN0;
DRAWICON(HH,H, ICO119
DRAWCOLORKLINE(HH||LL,COLORYELLOW,0);
//STICKLINE(CROSS(SARLINE 0,0),C,O,COLORYELLOW,0);
//STICKLINE(CROSS(SARLINE 0,0),C,O,COLORGREEN,0);
DRAWLINE(HH||LL,H,1,MAX(C,O),COLORGREEN);
DRAWLINE(HH||LL,L,1,MIN(C,O),COLORMAGENTA);
VALUEWHEN(LL COUNT(LL,BARSLAST(HH)+1)=1||CROSS(BACKSET(ISLASTBAR SARLINE 0,LLVBARS(L,BARSLAST(CROSSDOWN(SARLINE,0))+1)+1),0.5),L),NODRAW;
VALUEWHEN(HH COUNT(HH,BARSLAST(LL)+1)=1||CROSS(BACKSET(ISLASTBAR SARLINE 0,HHVBARS(H,BARSLAST(CROSS(SARLINE,0))+1)+1),0.5),H),NODRAW;
主力资金:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3), COLORRED,LINETHICK2;
即将爆发线: 65,COLOR00FF00;
爆发线:80,RGB(170,170,0),LINETHICK1;
DRAWTEXT(CROSS(主力资金,爆发线),主力资金, ★爆发! ) ,COLORBLUE;
爆发警戒线:50,COLORBLUE,LINETHICK1;
抄底线:20,COLORMAGENTA;
DRAWTEXT(CROSS(主力资金,抄底线),主力资金, ★抄底 ) ,COLORRED;
DRAWTEXT(CROSS(主力资金,爆发警戒线),主力资金, ★加仓 ) ,COLORMAGENTA;
DRAWTEXT(CROSS(主力资金,即将爆发线),主力资金, ★加仓 ) ,COLORMAGENTA;
DRAWTEXT(CROSS(爆发线,主力资金),爆发线, ★平仓 ) ,COLORLIGHTGREEN;
LC:= REF(C,1);
F1:=ZIGZAG(C,3,1);
方向:IF((F1 REF(F1,1)),5,105),COLORLIGHTGREEN,LINETHICK2;
DRAWTEXT(CROSS(抄底线,方向),抄底线, ★逢低进场! ) ,COLORRED;
DRAWTEXT(CROSS(方向,抄底线),方向+20, ★逢高出场! ) ,RGB(0,64,0);
XCLOSE:=EMA((OPEN+HIGH+LOW+CLOSE)/4,3);
神龙线:EMA(MA(C,34),60),LINETHICK2,COLORBLUE;
B8:=神龙线 =XCLOSE;
A8:IF(B8-1,神龙线,NULL),COLORYELLOW,LINETHICK2;
DRAWTEXT(CROSS(神龙线,XCLOSE),H, ),COLORRED,FONTSIZE22;
DRAWTEXT(CROSS(XCLOSE,神龙线),L, ),COLORGREEN,FONTSIZE22,VALIGN0;
MA40:MA(C,40),LINETHICK2,COLORYELLOW;
DRAWKLINE1(H,O,L,C);
//DRAWCOLORKLINE(EVERY(C MA40,3),COLORRED,0);
//DRAWCOLORKLINE(EVERY(C MA40,3),COLORCYAN,0);
DRAWTEXT(CROSS(EVERY(C MA40,3),0),H, ),COLORYELLOW,FONTSIZE20;
DRAWTEXT(CROSS(EVERY(C MA40,3),0),H, ),COLORYELLOW,FONTSIZE20;
CROSS(EVERY(C MA40,3),0)||CROSS(EVERY(C MA40,3),0),SOUND( A
A1:=REF(C,10)=HHV(C,2*10+1);
B1:=FILTER(A1,10);
C1:=BACKSET(B1,10+1);
HD:=FILTER(C1,10);
A2:=REF(C,10)=LLV(C,2*10+1);
B2:=FILTER(A2,10);
C2:=BACKSET(B2,10+1);
LD:=FILTER(C2,10);
A:=REF(C,BARSLAST(HD));
B:=REF(L,BARSLAST(LD));
T1:=BARSLAST(HD) BARSLAST(LD) AND NOT(HD) ;
T2:=BARSLAST(HD) BARSLAST(LD) AND NOT(LD);
S:=BACKSET(ISLASTBAR,SUMBARS(HD,3));
SS:=BACKSET(ISLASTBAR,SUMBARS(LD,3));
压力:=IF(T1,A,A),COLORLIGHTBLUE,POINTDOT,LINETHICK2,NODRAW;
DRAWSL(T1,A,0,1,0,COLORLIGHTRED),DASHDOTDOT;
支撑:=IF(T2,B,B),COLORBLUE,POINTDOT,LINETHICK2,NODRAW;
DRAWSL(T2,B,0,1,0,COLORBLUE),DASHDOT;
NN:=BARSLAST(DATE REF(DATE,1))+1;
DIFF := EMA(CLOSE,6) - EMA(CLOSE,13);
DEA : =EMA(DIFF,5);
MACD:=2*(DIFF-DEA),COLORSTICK;
DRAWCOLORKLINE(CROSS(DIFF,DEA),COLORMAGENTA,0);
DRAWCOLORKLINE(CROSSDOWN(DIFF,DEA),COLORGREEN,0);
MA69:MA(C,69);
DRAWTEXT(MA69 REF(MA69,1) CROSS(C,MA69),H, ),COLORRED;
DRAWTEXT(MA69 REF(MA69,1) CROSSDOWN(C,MA69),H, ),COLORBLUE;
DRAWTEXT(MA69 REF(MA69,1) CROSSDOWN(C,MA69),H, ),COLORCYAN;
DRAWTEXT(MA69 REF(MA69,1) CROSS(C,MA69),H, ),COLORMAGENTA;
VAR3TD:=100-3*SMA((CLOSE-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))*100,20,1),15,1);
VAR4TD:=100-3*SMA((OPEN-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))*100,20,1)+2
*SMA(SMA((OPEN-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))*100,20,1),15,1);
VAR2TD:=VAR3TD REF(VAR4TD,1) AND VOL REF(VOL,1) AND CLOSE REF(CLOSE,1);
VAR2TDX:=VAR3TD REF(VAR4TD,1) AND VOL REF(VOL,1) AND CLOSE REF(CLOSE,1);
DRAWTEXT(VAR2TD AND COUNT(VAR2TD,30)=1,L, 大资金进场 ),COLORFF00FF;
DRAWTEXT(VAR2TDX AND COUNT(VAR2TDX,30)=1,H, 大资金出场 ),COLORCYAN;
VAR3AA:=IF((CLOSE REF(CLOSE,1)),78,0);
VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1)) 1.05) AND ((HIGH)/(CLOSE) 1.01) AND (VAR3AA 0),91,0);
DRAWTEXT(FILTER((VAR4AA 90),45),(LOW), ★大胆搏? ),COLOR00FFFF;
VAR9:=ABS(SAR(3, 1/100, 3/100));
VAR10:=EMA(CLOSE, 10);
VAR11:=IF(CLOSE 450, 8, IF(CLOSE =20 AND CLOSE 150, 0.200, IF(CLOSE 20 AND CLOSE =10, 0.070, IF(CLOSE 10, 0.030, 0.070))));
多头止损:IF( CLOSE VAR9,VAR10,NULL),COLORMAGENTA,LINETHICK2;
空头止损:IF( CLOSE VAR9,VAR10,NULL),COLORBLUE,LINETHICK2;
DRAWICON(CROSS(C,VAR9),L,4),VALIGN0;
DRAWICON(CROSSDOWN(C,VAR9),H,5);
Q_1:=C-REF(C,1);
Q_2:=100*EMA(EMA(Q_1,6),6)/EMA(EMA(ABS(Q_1),6),6);
Q_3:=CROSS(EMA(C,19),EMA(C,7));
Q_4:=CROSS(EMA(C,7),EMA(C,19));
Z1:=L=LLV(L,BARSLAST(Q_3)+1);
Z2:=LLV(L,BARSLAST(Q_3)+1);
Z3:=H=HHV(H,BARSLAST(Q_4)+1);
Z4:=HHV(H,BARSLAST(Q_4)+1);
XX1:=BACKSET(Z1||ISLASTBAR,BARSLAST(Z3)+1);
XX2:=BACKSET(Z3||ISLASTBAR,BARSLAST(Z1)+1);
AA:=TRENDLINES(CROSS(XX1=1,0.5)||ISLASTBAR,Z4,CROSS(XX2=1,0.5)||ISLASTBAR,Z2);
BB:=TRENDLINES(CROSS(XX2=1,0.5)||ISLASTBAR,Z2,CROSS(XX1=1,0.5)||ISLASTBAR,Z4);
ZZ1:BARSLAST(CROSS(XX1=1,0.5)) =BARSLAST(CROSS(XX2=1,0.5)),NODRAW;
ZZ2:BARSLAST(CROSS(XX1=1,0.5)) =BARSLAST(CROSS(XX2=1,0.5)),NODRAW;
Q_B:IF(ZZ1||REF(ZZ1,1),AA,NULL ),NODRAW;
Q_A:IF(ZZ2||REF(ZZ2,1),BB,NULL ),NODRAW;
X01:=LLV(Q_2,2)=LLV(Q_2,7);
X2:=COUNT(Q_2 0,2);
X3:=CROSS(Q_2,MA(Q_2,2));
X4:=REF(Q_B,1) REF(Q_B,2);
X5:=Q_A REF(Q_B,1);
买进:(X01 AND X2 AND X3) AND X4 AND X5,NODRAW;
TJ0:IF(Q_A REF(Q_A,1) ,1,0),NODRAW;
TJ1:IF(Q_B REF(Q_B,1) ,1,0),NODRAW;
//STICKLINE(1,0,1,1,1),COLORLIGHTRED;
//STICKLINE(Q_B REF(Q_B,1),0,3,1,1),COLOR006600;
/*买:=IF(REF(TJ1,1)=0 AND TJ1 =1,30,0),COLORRED,LINETHICK1;
DRAWLINE(买=30,0,1,30,COLORCYAN),LINETHICK1;
云析赢指标公式网:www.qxkj0088.com
卖:=IF(REF(TJ0=0 TJ1=1,1) TJ1=0,2,0),COLORCYAN,LINETHICK1;
DRAWLINE(卖=2,0,1,2,COLORRED),LINETHICK3;
*/
DRAWGBK1(1,COLORWHITE);
DRAWGBK1(Q_B REF(Q_B,1),COLORLIGHTGREY);
DRAWCOLORKLINE(BARSLAST(HH)+1 BARSLAST(LL)+1 ISDOWN=0,COLORRED,1);
DRAWCOLORKLINE(BARSLAST(HH)+1 BARSLAST(LL)+1 ISDOWN,COLORRED,0);
DRAWCOLORKLINE(BARSLAST(HH)+1 BARSLAST(LL)+1 ISDOWN=0,COLORCYAN,1);
DRAWCOLORKLINE(BARSLAST(HH)+1 BARSLAST(LL)+1 ISDOWN,COLORCYAN,0);