爆發(fā)線:80,COLORRED; 即將爆發(fā)線: 65,COLORMAGENTA; 警戒線: 50,COLORCYAN; 低進線:=10,NODRAW; 抄底線:7.5,COLORBROWN; 趨勢線:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),COLORWHITE,LINETHICK2; LC:= REF(C,1); F1:=ZIG(3,15); 上行:IF((F1> REF(F1,1)),105,5),COLORYELLOW,LINETHICK1; IF(上行>50 AND (C>MA(C,10) OR C>REF(C,2)),趨勢線,DRAWNULL),LINETHICK2,COLORRED; IF(上行<50 AND (C>MA(C,10) OR C>REF(C,2)),趨勢線,DRAWNULL),LINETHICK2,COLORRED; IF(上行>50 AND (C<MA(C,10) OR C<REF(C,2)),趨勢線,DRAWNULL),LINETHICK2,COLORGREEN; IF(上行<50 AND (C<MA(C,10) OR C<REF(C,2)),趨勢線,DRAWNULL),LINETHICK2,COLORGREEN; DRAWTEXT(CROSS(趨勢線,即將爆發(fā)線) AND 上行 > 50,趨勢線,★拉漲) ,COLORMAGENTA; DRAWTEXT(CROSS(趨勢線,抄底線) AND 上行 < 50,趨勢線,★抄底) ,COLORWHITE; DRAWTEXT(CROSS(趨勢線,警戒線) AND 上行 < 50,趨勢線,★關(guān)注) ,COLORWHITE; DRAWTEXT(CROSS(趨勢線,警戒線) AND 上行 > 50,趨勢線,★加倉),COLORCYAN; DRAWTEXT(CROSS(爆發(fā)線,趨勢線),爆發(fā)線,★換莊) ,COLORWHITE; DRAWTEXT(((CROSS(上行,低進線)AND(趨勢線 <= 10)) OR CROSS(趨勢線,低進線)) AND 上行 > 50,趨勢線,★低進) ,COLORYELLOW; DRAWTEXT(CROSS(爆發(fā)線,上行),趨勢線,★高出) ,COLORRED; 抄底XG:CROSS(趨勢線,抄底線) AND 上行 < 50,NODRAW,COLORWHITE; 低進XG:((CROSS(上行,低進線)AND(趨勢線 <= 10)) OR CROSS(趨勢線,低進線)) AND 上行 > 50,NODRAW,COLORYELLOW; 加倉XG:CROSS(趨勢線,警戒線) AND 上行 > 50,NODRAW,COLORCYAN; 拉漲XG:CROSS(趨勢線,即將爆發(fā)線) AND 上行 > 50,NODRAW,COLORMAGENTA;; YY:=((C-MA(C,6))/MA(C,6)*100+(C-MA(C,24))/MA(C,24)*100+(C-MA(C,32))/MA(C,32)*100)/3; DRAWICON(YY>9 AND FILTER(YY<REF(YY,1),5),趨勢線,15); {PP:=BARSLAST(CROSS(MA(C,5),MA(C,10))); 大趨勢:=BARSLAST(CROSS(MA(C,10),MA(C,5))),COLOR00FFFF; PP1:=IF(PP<大趨勢,PP+1,0); PP3:=MA(C,5)>MA(C,20) AND MA(C,10)>MA(C,20) AND MA(C,20)>REF(MA(C,20),1) AND MA(C,30)>REF(MA(C,30),1); MC:=HHV(PP1,5)>=2 AND PP3 AND MA(C,5)>REF(MA(C,5),1) AND MA(C,5)>MA(C,10);} {準(zhǔn)備跑:MC*PP1,COLORFF0000,LINETHICK1; STICKLINE(YY<-9 AND YY> REF(YY,1),抄底線,0,3,0),COLOR0000FF; STICKLINE(YY>9 AND FILTER(YY<REF(YY,1),5),抄底線,0,3,0),COLOR80FF80; STICKLINE(YY>20 AND FILTER(YY<REF(YY,1),5),抄底線,0,3,0),COLOR80FF80; STICKLINE(HHV(YY>20,10) AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(C,20)+2*STD(C,20)),抄底線,0,3,0)COLORFF0033;} A1:=C>REF(C,4); NT:=BARSLASTCOUNT(A1); TJ11:=NT=9; TJ13:=ISLASTBAR AND BETWEEN(NT,5,8); AY:=(BACKSET(TJ11>0,9) OR BACKSET(TJ13>0,NT))*NT; DRAWTEXT(AY>0,趨勢線*1.02,VAR2STR(AY,0)),COLORLIRED; DRAWTEXT(NT=9,趨勢線*1.02,9),COLORGREEN; B1:=C<REF(C,4); NT0:=BARSLASTCOUNT(B1); TJ21:=NT0=9 ; TJ23:=ISLASTBAR AND BETWEEN(NT0,5,8); AY1:=(BACKSET(TJ21>0,9) OR BACKSET(TJ23>0,NT0))*NT0; DRAWTEXT(AY1>0,趨勢線*0.98,VAR2STR(AY1,0)),COLORGREEN; DRAWTEXT(NT0=9,趨勢線*0.98,9),COLORRED; |
|