飞狐建仓拉升副图指标
{建仓拉升指标使用方法:
成本均线CYC,空头排列建仓期;
空转多头建仓毕,短线拐点拉升急!}
源码
Var2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
Var5:=AMOUNT/SUM(AMOUNT,5);
Var13:=AMOUNT/SUM(AMOUNT,13);
Var34:=AMOUNT/SUM(AMOUNT,34);
Var0:=AMOUNT/SUM(AMOUNT,55);
CYC5:DMA(Var2,Var5);
CYC13:DMA(Var2,Var13);
CYC34:DMA(Var2,Var34);
CYC0:DMA(Var2,Var0),COLORFF9900;
DTPL:=CYC5>CYC13 AND CYC13>CYC34 AND CYC34>CYC0;
建仓:CROSS(DTPL,0.9),COLOR00FFFF,POINTDOT,LINETHICK0;
LS1:=CROSS(CYC5,REF(CYC5+0.01,1));
LS2:=CROSS(C,CYC5) AND (C=HHV(C,4) OR C>REF(C,4));
拉升:FILTER(LS1 OR LS2,3) AND COUNT(DTPL,5)>=4,COLORFF00FF,POINTDOT,LINETHICK0;
{以下设置主图显示方式}
DRAWTEXT(建仓,CYC0,'★建仓完毕'),COLOR00FFFF;
DRAWICON(拉升,CYC34,1);
DRAWTEXT(拉升,CYC13,'↑'),COLORFFFFFF;