智勇出击

V1:=MA((O+C+H+L)/4,2);

V2:=MA((O+C+H+L)/4,5);

N1:=BARSLAST(CROSS(V1,V2));

N2:=BARSLAST(CROSS(V2,V1));

N:=IF(N1<N2,N1+1,-N2-1);

A1:=(H+L+C*2)/4;

A2:=EMA(A1,10);

A3:=STD(A1,10);

A4:=(A1-A2)*100/A3;

A5:=EMA(A4,5);

A6:=(EMA(A5,10)+100/2-5)/2;

A7:=IF(A6<100,IF(A6>-100,A6,-100),100);

多:IF(A7>0,A7,0),COLORYELLOW,NODRAW;

空:IF(A7<0,ABS(A7),0),COLORMAGENTA,NODRAW;

A8:=ABS(EMA(A6,4));

A9:IF(A8<100,A8,100),COLORGREEN,LINETHICK2;

DRAWICON(CROSS(多,A9),多*1.1,1);

DRAWICON(CROSS(A9,多),A9*1.1,2);

STICKLINE(空>REF(空,1),空,REF(空,1),10,0),COLORRED;

STICKLINE(空<REF(空,1),空,REF(空,1),10,0),COLORMAGENTA;

STICKLINE(多>REF(多,1),多,REF(多,1),10,0),COLORYELLOW;

STICKLINE(多<REF(多,1),多,REF(多,1),10,0),COLORRED;

NOTEXT获利了结:IF(多>80,75,80),COLORMAGENTA;

NOTEXT出局:IF(多>90,85,90),COLORGREEN;

DRAWTEXT(多>80 AND REF(多,1)<80,70,'逐步'),COLORYELLOW;

DRAWTEXT(多>80 AND REF(多,1)<80,65,'获利'),COLORYELLOW;

DRAWTEXT(多>80 AND REF(多,1)<80,60,'了结'),COLORYELLOW;

DRAWTEXT(多>90 AND REF(多,1)<90,80,'出局'),COLORWHITE;

VAR1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;

多头:=IF(VAR1>0,VAR1,0),COLORMAGENTA;

空头:=IF(VAR1<0,ABS(VAR1),0),COLORBLUE;

趋势:100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1),COLORGREEN,NODRAW;

STICKLINE(趋势>=REF(趋势,1),趋势,REF(趋势,1),10,1),COLORRED;

STICKLINE(趋势<REF(趋势,1),趋势,REF(趋势,1),10,1),COLORGREEN;

价格:(C-LLV(L,60))/(HHV(H,60)-LLV(L,60))*100,COLORWHITE;

持有:EMA(((2*C+H+L)/4-LLV(L,34))/(HHV(H,34)-LLV(L,34))*100,13),COLORBLUE,NODRAW;

出货:EMA(0.667*REF(持有,1)+0.333*持有,2),COLORRED;

DRAWICON(CROSS(持有,出货),持有*1.05,1);

DRAWICON(CROSS(出货,持有),出货*1.05,2);

STICKLINE(持有>REF(持有,1),持有,REF(持有,1),10,0),COLORBLUE;

STICKLINE(持有<REF(持有,1),持有,REF(持有,1),10,0),COLORRED;

STICKLINE(持有>出货,持有,出货,10,0),COLORBLUE,NODRAW;

STICKLINE(持有<出货,持有,出货,10,0),COLORRED,NODRAW;

底部:=SMA(SMA((C-LLV(L,9))/(HHV(H,9)- LLV(L,9))*100,3,1),3,1)-SMA((HHV(H,9)-C)/(HHV(H,9)-LLV(LOW,9))*100-70,9,1);

底部区域:=IF(底部>60,底部-60,0),COLORYELLOW;

末日:=趋势>=REF(趋势,1)AND 持有<REF(持有,1)AND 价格<持有 AND 持有>70;

DRAWTEXT(末日 AND COUNT(末日,5)=1,65,'末日降临');

倚天:=趋势<REF(趋势,1)AND 空<REF(空,1)AND 趋势>90;

DRAWTEXT(倚天 AND COUNT(倚天,5)=1,60,'倚'),COLORBLUE;

DRAWTEXT(倚天 AND COUNT(倚天,5)=1,55,'天'),COLORBLUE;

屠龙:=趋势<REF(趋势,1)AND 多>REF(多,1)AND 趋势>80;

DRAWTEXT(屠龙 AND COUNT(屠龙,5)=1,60,'屠'),COLORBLUE;

DRAWTEXT(屠龙 AND COUNT(屠龙,5)=1,55,'龙'),COLORBLUE;

大:=IF(C>REF(C,1),V,0)/100;

小:=IF(C<REF(C,1),V,0)/100;

正:=EMA(MA(大,3),13),COLORRED;

负:=-EMA(MA(小,3),13),COLORGREEN;

比:IF(正>REF(正,1)AND 负>REF(负,1),-正/负,0),COLORYELLOW,NODRAW;

S1:=IF(C<REF(MIN(C,O),1),1,0);

S2:=IF(C<REF(MIN(C,O),2),1,0);

B1:=S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIG(3,5) ,REF(ZIG(3,5),1));

B2:=S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIG(3,10) ,REF(ZIG(3,10),1));

B3:=S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIG(3,15) ,REF(ZIG(3,15),1));

STICKLINE(B1 AND B2 AND B3,0,12,5,0),COLORYELLOW;

STICKLINE(B1 AND B2,0,8,5,0),COLORMAGENTA;

STICKLINE(B1,0,4,5,0),COLORBLUE;

智勇出击:=ZIG(3,6)>REF(ZIG(3,6),1)AND REF(ZIG(3,6),1)<REF(ZIG(3,6),2),COLORWHITE,LINETHICK2;

DRAWTEXT(智勇出击=1,15,'T'),COLORWHITE,NODRAW;

小获且退:=ZIG(3,10)<REF(ZIG(3,10),1)AND REF(ZIG(3,10),1)>REF(ZIG(3,10),2),COLORYELLOW,LINETHICK2;

DRAWTEXT(小获且退=1,45,'退'),COLORYELLOW;

V3:=PEAKBARS(2,15,1)<10;

V4:=IF(V3=1,2,0);

顶:=IF(V4=2,2,0);

大胜且归:=IF(顶>REF(顶,1),2,0),COLORRED,LINETHICK2;

DRAWTEXT(大胜且归=2,50,'撤'),COLORRED;

(0)

相关推荐