飞狐短线黑马副图指标
源码
VOL/120>MA(VOL,5)/120 AND CLOSE>OPEN*(1+4.8/100) AND CLOSE<MA(CLOSE,30)*1.6;
VAR1:=IF(MA(VOL,5)/120 AND CLOSE>REF(CLOSE,1)*1,8,0);
VAR2:=IF(CLOSE/REF(CLOSE,1)>=1.05 AND VOL/CAPITAL*100<10 AND CLOSE<18 AND HIGH/CLOSE<1.01 AND VAR1>0,10,0);
VAR3:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR4:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
FNZH:=VAR4<-50 AND VAR3>7;
VAR2>9 OR FNZH;
AR1:=IF(CLOSE AND MA(VOL,5)/120 AND CLOSE>REF(CLOSE,1)*1 AND CLOSE,88,0);
VAR2:=IF(CLOSE/REF(CLOSE,1)>1.05 AND VOL/CAPITAL*100<10 AND CLOSE<17 AND HIGH/CLOSE<1.01 AND VAR1>0,91,0);
VAR2>90;
A:=HHV(MA((LOW+HIGH+CLOSE)/3,3),3);
B:=LLV(MA((LOW+HIGH+CLOSE)/3,3),5);
DRAWTEXT(CLOSE>=A AND BARSCOUNT(CLOSE)=SYSPARAM(1),A*1.03,''),SHIFT1,colorFFFF;
DRAWTEXT(REF(CLOSE,1)<REF(A,1) AND CLOSE>=A AND BARSCOUNT(CLOSE)=SYSPARAM(1),A*0.5,'黑马:进场!'),SHIFT1,colorFF;
DRAWTEXT(REF(CLOSE,1)>REF(A,1) AND CLOSE<A AND BARSCOUNT(CLOSE)=SYSPARAM(1),A*0.5,'黑马:退场!'),SHIFT1,colorFF00;
DRAWTEXT(REF(CLOSE,1)>REF(B,1) AND CLOSE<B AND BARSCOUNT(CLOSE)=SYSPARAM(1),A*0.98,''),SHIFT1,colorFF00;
DRAWTEXT(BARPOS=SYSPARAM(2),HIGH,'\n'+'\n'+' 欢迎你使用:
LHY:='
DRAWTEXT(SYSPARAM(2)=BARSCOUNT(CLOSE),CLOSE,LHY),ALIGN4,colorFF00FF;