飞狐主力进场副图指标
源码
VAR2:=REF(LOW,1);
VAR3:=((SMA(ABS((LOW - VAR2)),13,1) / SMA(MAX((LOW - VAR2),0),13,1)) * 100);
VAR4:=EMA(IF((CLOSE * 1.2),(VAR3 * 13),(VAR3 / 13)),13);
VAR5:=LLV(LOW,34);
VAR6:=HHV(VAR4,34);
VAR7:=IF(LLV(LOW,56),1,0);
VAR8:=((EMA(IF((LOW <= VAR5),((VAR4 + (VAR6 * 2)) / 2),0),3) / 618) * VAR7);
VAR9:=EMA(CLOSE,5);
VAR10:=(((CLOSE - MA(CLOSE,34)) / MA(CLOSE,34)) * (0 - 10));
STICKLINE((VAR9 > REF(VAR9,1)),0,(VAR9 * 0.08),4,1),color10E410;
减仓:IF((VAR9 > REF(VAR9,1)),VAR9,0),LINETHICK0,color10E410;
STICKLINE((VAR9 < REF(VAR9,1)),0,(VAR9 * 0.08),4,1),color1010FF;
增仓:IF((VAR9 < REF(VAR9,1)),VAR9,0),LINETHICK0,color1010FF;
STICKLINE((VAR8 > REF(VAR8,1)),0,VAR8,4,1),color10FFFF;
主力进场:IF((VAR8 > REF(VAR8,1)),(VAR8 * 8),0),LINETHICK0,color10FFFF;
STICKLINE((VAR8 < REF(VAR8,1)),0,VAR8,4,1),colorFFF810;
洗缓:IF((VAR8 < REF(VAR8,1)),(VAR8 * 10),0),LINETHICK0,colorFFF810;
主力持仓:(LOW * 5),LINETHICK0,colorFF10FF;
增减力度:VAR10,colorFF7676;
XL1:=(MA(LOW,2) * 0.96);
XL2:=(MA(LOW,26) * 0.85);
XL3:=(((REF(XL1,1) < XL2) AND (REF(XL1,1) < XL1)) AND (REF(XL1,1) < REF(XL1,2)));
STICKLINE(XL3,0,(VAR8 * 3),4,0),color6EFF;
DRAWTEXT(XL3,(VAR8 * 2),'买'),color6EFF;
↑买:DRAWICON(XL3,0,4),colorFF;