飞狐孤独波段主图指标
源码
N:=7;P:=5;X:=8;Q:=6;
STICKLINE(open>=close ,close ,open,9,0 ),COLORaaaaaa;
STICKLINE(open>=close ,close ,open,6,0 ),COLORbbbbbb;
STICKLINE(open>=close ,close ,open,2.4,0 ),COLORcccccc;
STICKLINE(open>=close ,close ,open,1.1,0 ),COLORdddddd;
STICKLINE(close>open,close,open,9,0 ),COLOr6666cc;
STICKLINE(close>open,close,open,6 ,0 ),COLOR7777dd;
STICKLINE(close>open,close,open,2.4 ,0 ),COLOR8888ee;
STICKLINE(close>open,close,open,1.1 ,0 ),COLOR9999ff;
STICKLINE(close>open,open,low,0.5,0 ),COLOR1199ff;
STICKLINE(close>open,close,HIGH,0.5 ,0 ),COLOR1199ff;
STICKLINE(open>=close,close,low,0.5 ,0 ),COLORcccccc;
STICKLINE(open>=close,open,HIGH,0.5 ,0 ),COLORcccccc;
BBI: (MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORFFFFFF;
UPR: BBI+3*STD(BBI,10)LINETHICK2,COLORYELLOW;
DWN: BBI-3*STD(BBI,10)LINETHICK2,colorFF10FF;
A1:=(EMA(CLOSE,2.7)+MA(CLOSE,6)+MA(CLOSE,10.8))/3;
A2:=(EMA(CLOSE,3)+MA(CLOSE,7.5)+MA(CLOSE,13))/3;
A3:=(EMA(CLOSE,4)+MA(CLOSE,8.5)+MA(CLOSE,16.5))/3;
A4:=(EMA(CLOSE,4.8)+MA(CLOSE,10.2)+MA(CLOSE,18.6))/3;
A5:=(EMA(CLOSE,6.5)+MA(CLOSE,11.8)+MA(CLOSE,21))/3;
安全线: MA(CLOSE,60), CIRCLEDOT,color4361FF;
Var1:=REF(CLOSE,1);
Var2:=SMA(MAX(CLOSE-Var1,0),6,1)/SMA(ABS(CLOSE-Var1),6,1)*100;
DRAWTEXT(CROSS(84,Var2),HIGH,'卖!'), ,color43FFFF ;
Var3:=(2*CLOSE+HIGH+LOW)/4;
Var4:=LLV(LOW,34);
Var5:=HHV(HIGH,34);
Var6:=EMA((Var3-Var4)/(Var5-Var4)*100,N);
Var7:=EMA(0.667*REF(Var6,1)+0.333*Var6,P);
Var8:=LLV(LOW,120);
Var9:=HHV(HIGH,60);
最低价: Var8,LINETHICK2,color43FF10;
最高价: Var9,LINETHICK2,color43FF10;
DRAWTEXT(IF(COUNT(CLOSEQ/10 AND VOL>=1.5*MA(VOL,5) AND COUNT(Var6>=Var7,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW,'买'), ,COLORRED ;
DRAWTEXT(IF(COUNT(CLOSE0.6 AND COUNT(Var6>Var7,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND REF(CLOSE>OPEN,3) AND
REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND OPEN>REF(CLOSE,1),1,0),LOW,'买进'), , COLORYELLOW;
VarA:=MA(CLOSE,80)-MA(CLOSE,10)/3;
DRAWTEXT(IF(CLOSEMA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08 AND CLOSE
VarB:=OPEN
VarC:=CLOSE>MAX(A1,MAX(BBI,A5));
VarD:=VOL/MA(VOL,30)>1.2;
VarE:=CLOSE/REF(CLOSE,1)>1.03;
DRAWTEXT(IF(VarB AND VarC AND VarD AND VarE AND VOL/240>MA(VOL,5)/240 AND REF(CLOSE,3);