炒股无需复杂 简单一买一卖【指标公式】(含选股)第一部分 副图公式 手机/电脑
CHA1:=HHV(HIGH,25);
CHA2:=LLV(LOW,25);
CHA3:=EMA((CLOSE-CHA2)/(CHA1-CHA2)*100,20);
CHA4:=EMA((CLOSE-CHA2)/(CHA1-CHA2)*100,5);
CHA5:=CROSS(CHA4,CHA3);
DRAWTEXT(CROSS(CHA3,CHA4) AND BARSLAST(CHA5)>3,HIGH+1,'↖卖'),COLORGREEN;
DRAWTEXT(CROSS(CHA3,CHA4) AND BARSLAST(CHA5)<=3,HIGH+1,'↖止损'),COLORBLUE;
DRAWTEXT(CROSS(CHA4,CHA3),LOW-1,'↖买'),COLORYELLOW;
DRAWICON(CROSS(CHA3,CHA4),HIGH+0.5,2);
DRAWICON(CROSS(CHA4,CHA3),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),COLOR0000CC;
STICKLINE(C>O,O,C,1.3,0),COLOR0000FF;
STICKLINE(C>O,O,C,0.3,0),COLORCC66FF;
第二部分 选股公式
{选股公式:买}
CHA1:=HHV(HIGH,25);
CHA2:=LLV(LOW,25);
CHA3:=EMA((CLOSE-CHA2)/(CHA1-CHA2)*100,20);
CHA4:=EMA((CLOSE-CHA2)/(CHA1-CHA2)*100,5);
CHA5:=CROSS(CHA4,CHA3);
{DRAWTEXT(CROSS(CHA4,CHA3),LOW-1,'↖买'),COLORYELLOW;
DRAWICON(CROSS(CHA4,CHA3),LOW-0.5,1);
STICKLINE(C
STICKLINE(C
买:CROSS(CHA4,CHA3);
{卖出公式一:卖}
CHA1:=HHV(HIGH,25);
CHA2:=LLV(LOW,25);
CHA3:=EMA((CLOSE-CHA2)/(CHA1-CHA2)*100,20);
CHA4:=EMA((CLOSE-CHA2)/(CHA1-CHA2)*100,5);
CHA5:=CROSS(CHA4,CHA3);
卖:CROSS(CHA3,CHA4) AND BARSLAST(CHA5)>3;
{卖出公式二:止损}
CHA1:=HHV(HIGH,25);
CHA2:=LLV(LOW,25);
CHA3:=EMA((CLOSE-CHA2)/(CHA1-CHA2)*100,20);
CHA4:=EMA((CLOSE-CHA2)/(CHA1-CHA2)*100,5);
CHA5:=CROSS(CHA4,CHA3);
止损:CROSS(CHA3,CHA4) AND BARSLAST(CHA5)<=3;
|