飞狐原码如下:
DRAWGBK(CLOSE>0,COLORRGB(0,0,0),COLORRGB(0,0,0),1);
MA5:MA(CLOSE,5),LINETHICK2,colorFF;
MA10:MA(CLOSE,10),LINETHICK2,colorFFFF;
PARTLINE(MA5<REF(MA5,1),MA5),LINETHICK2,colorFF00;
PARTLINE(MA10<REF(MA10,1),MA10),LINETHICK2,colorFFFFFF;
MA30:MA(CLOSE,30),LINEDOT,colorFF;
MA144:MA(CLOSE,144),LINEDOT,colorFFFF00;
PARTLINE(MA10>REF(MA10,1),MA10),LINETHICK2,colorFFFF;
STICKLINE(CLOSE>MA10 AND CLOSE>OPEN,CLOSE,OPEN,8,1),colorFF;
STICKLINE(CLOSE>MA10 AND CLOSE>OPEN,OPEN,LOW,1,1),colorFF;
STICKLINE(CLOSE>MA10 AND CLOSE>OPEN,CLOSE,HIGH,1,1),colorFF;
STICKLINE(CLOSE>MA10 AND CLOSE<OPEN,CLOSE,OPEN,8,0),colorFF;
STICKLINE(CLOSE>MA10 AND CLOSE<OPEN,CLOSE,HIGH,1,1),colorFF;
STICKLINE(CLOSE>MA10 AND CLOSE<OPEN,OPEN,LOW,1,1),colorFF;
STICKLINE(CLOSE<MA10 AND CLOSE>OPEN,CLOSE,OPEN,8,1),colorFFFF00;
STICKLINE(CLOSE<MA10 AND CLOSE>OPEN,OPEN,LOW,1,1),colorFFFF00;
STICKLINE(CLOSE<MA10 AND CLOSE>OPEN,CLOSE,HIGH,1,1),colorFFFF00;
STICKLINE(CLOSE<MA10 AND CLOSE<OPEN,CLOSE,OPEN,8,0),colorFFFF00;
STICKLINE(CLOSE<MA10 AND CLOSE<OPEN,CLOSE,LOW,1,1),colorFFFF00;
STICKLINE(CLOSE<MA10 AND CLOSE<OPEN,OPEN,HIGH,1,1),colorFFFF00;
VAR1:=LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04;
VAR2:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;
买入提示:=VAR1 AND VAR2;
DRAWTEXT(买入提示,LOW-0.28,'进'),ALIGN0,colorFFFF;
进:=VAR1 AND VAR2;
STICKLINE(进,HIGH,LOW,0.5,1),colorFFFF;
STICKLINE(进,OPEN,CLOSE,5,1),LINETHICK2,colorFFFF;
VAR1:=EMA(CLOSE,8);
VAR2:=EMA(VAR1,20);
VAR3:=CROSS(VAR1,VAR2);
VAR4:=VAR1<MA(CLOSE,120);
VAR5:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR6:=SMA(VAR5,5,1);
VAR7:=SMA(VAR6,8,1);
VAR8:=CROSS(VAR6,VAR7) AND VAR7<20;
VAR9:=CLOSE>LLV(CLOSE,60)+0.3*LLV(CLOSE,60) AND VAR8;
VARA:=IF(CLOSE>1000,VAR8,VAR9);
逃:=VARA;
DRAWTEXT(逃>0,HIGH*1.04,'出'),color7FFFD6;
STICKLINE(逃,HIGH,LOW,0.5,1),LINETHICK2,colorFFFFFF;
STICKLINE(逃,OPEN,CLOSE,5,1),LINETHICK2,colorFFFFFF;;;
MA20:=MA(CLOSE,20);
MA40:=MA(CLOSE,40);
MA60:=MA(CLOSE,60);
MA120:=MA(CLOSE,120);
MA250:=MA(CLOSE,250);
AA:=BARSLAST(MA60>MA40 AND (MA40=MA20 OR MA40>MA20));
BB:=REF(COUNT(CLOSE<MA60,AA)=AA,1);
CC:=CROSS(CLOSE,MA60) AND VOL>MA(VOL,5) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>3;
一箭封喉:=BB AND CC;
DRAWTEXT(一箭封喉,HIGH*1.05,'★'),colorFFFF;
DRAWTEXT(一箭封喉,HIGH*1.02,'一箭封喉'),colorFFFF;
STICKLINE(一箭封喉,HIGH,LOW,0.5,0),colorFFFF;
STICKLINE(一箭封喉,OPEN,CLOSE,5,0),LINETHICK2,colorFFFF;