飞狐光棍翻脸/光棍反脸副图指标
源码
{光棍翻脸}
VarC:=EMA(((2*C+H+L)/4-LLV(L,34))/(HHV(H,34)-LLV(L,34))*100,8);
VarD:=EMA(VarC,5);
STICKLINE(VarC-VarD>=0,79,80,6,0),colorgreen;
STICKLINE(VarC-VarD<
STICKLINE(VarC-VarD>=0,19,20,6,0),colorgreen;
STICKLINE(VarC-VarD>=0,49,50,6,0),colorcyan;
STICKLINE(VarC-VarD<0,49,50,6,1),colorred;
STICKLINE(VarC-VarD<0,19,20,6,1),colorred;
STICKLINE(VarC-VarD>0,VarC,VarD,8,1),colorcyan;
STICKLINE(VarC-VarD<0,VarC,VarD,8,1),colorred;
{光棍反脸}
Var6:=(2*C+H+L)/4;
Var8:=LLV(LOW,60);
VarA:=HHV(HIGH,60);
防线B:=EMA((Var6-Var8)/(VarA-Var8)*100,8),COLORCYAN;
B1:=EMA(防线B,5);
波段趋势:b1,pointdot,coloryellow;
守仓:STICKLINE(防线B-B1>0,防线B,B1,8,0),COLORRED;
空仓:STICKLINE(防线B-B1<0,防线B,B1,8,1),COLORBLUE;
STICKLINE(防线B>0 AND 防线B-B1>=0,79,80,6,0),COLORRED;
STICKLINE(防线B>0 AND 防线B-B1<0,79,80,6,0),COLORGREEN;
STICKLINE(防线B>0 AND 防线B-B1>=0,49,50,6,0),COLORRED;
STICKLINE(防线B>0 AND 防线B-B1<0,49,50,6,0),COLORGREEN;
STICKLINE(防线B>0 AND 防线B-B1>=0,19,20,6,0),COLORRED;
STICKLINE(防线B>0 AND 防线B-B1<0,19,20,6,0),COLORGREEN;