短线攻击买入 及时止损逃顶《通达信+指标+公式+副图+源码》分享
副图公式源码支持: 手机/电脑
CHA2:=(CLOSE+HIGH+LOW)/(3);
CHA3:=(EMA(CHA2,10));
CHA4:=(REF(CHA3,1));
CHP1:=HHV(HIGH,25);
CHP2:=LLV(LOW,25);
CHP3:=EMA((CLOSE-CHP2)/(CHP1-CHP2)*100,20);
CHP4:=EMA((CLOSE-CHP2)/(CHP1-CHP2)*100,5);
CHP5:=CROSS(CHP4,CHP3);
STICKLINE((CHA3>CHA4),CHA3,CHA4,3,0),COLORYELLOW;
STICKLINE((CHA3
DRAWTEXT(CROSS(CHP3,CHP4) AND BARSLAST(CHP5)>3,HIGH+1,'短逃'),COLORGREEN;
DRAWTEXT(CROSS(CHP3,CHP4) AND BARSLAST(CHP5)<=3,HIGH+1,'止损'),COLORWHITE;
DRAWTEXT(CROSS(CHP4,CHP3),LOW-1,'短攻'),COLORYELLOW;
DRAWICON(CROSS(CHP3,CHP4),HIGH+0.5,2);
DRAWICON(CROSS(CHP4,CHP3),LOW-0.5,1);
STICKLINE(C
STICKLINE(C
STICKLINE(C
STICKLINE(C
STICKLINE(C>O,O,C,3,0),COLOR000099;
STICKLINE(C>O,O,C,2,0),COLORLIBLUE;
STICKLINE(C>O,O,C,1.3,0),COLORLIRED;
STICKLINE(C>O,O,C,0.3,0),COLORCC66FF;
选股公式源码
{选股公式:短攻}
CHA2:=(CLOSE+HIGH+LOW)/(3);
CHA3:=(EMA(CHA2,10));
CHA4:=(REF(CHA3,1));
CHP1:=HHV(HIGH,25);
CHP2:=LLV(LOW,25);
CHP3:=EMA((CLOSE-CHP2)/(CHP1-CHP2)*100,20);
CHP4:=EMA((CLOSE-CHP2)/(CHP1-CHP2)*100,5);
CHP5:=CROSS(CHP4,CHP3);
{STICKLINE((CHA3>CHA4),CHA3,CHA4,3,0),COLORYELLOW;
STICKLINE((CHA3
STICKLINE(C
STICKLINE(C
STICKLINE(C
短攻:CROSS(CHP4,CHP3);
{卖出公式一:短逃}
CHP1:=HHV(HIGH,25);
CHP2:=LLV(LOW,25);
CHP3:=EMA((CLOSE-CHP2)/(CHP1-CHP2)*100,20);
CHP4:=EMA((CLOSE-CHP2)/(CHP1-CHP2)*100,5);
CHP5:=CROSS(CHP4,CHP3);
短逃:CROSS(CHP3,CHP4) AND BARSLAST(CHP5)>3;
{卖出公式二:止损}
CHP1:=HHV(HIGH,25);
CHP2:=LLV(LOW,25);
CHP3:=EMA((CLOSE-CHP2)/(CHP1-CHP2)*100,20);
CHP4:=EMA((CLOSE-CHP2)/(CHP1-CHP2)*100,5);
CHP5:=CROSS(CHP4,CHP3);
止损:CROSS(CHP3,CHP4) AND BARSLAST(CHP5)<=3;