副图公式源码支持: 手机/电脑
DRAWKLINE(H,O,L,C);
GUP1:=EMA(CLOSE,5);
GUP2:=SMA(L,9,1);
GUP3:=EMA(SLOPE(C,12)*20+C,57);
GUP4:=IF(HIGH>=REF(HIGH,1) AND HIGH>=REF(HIGH,2) AND HIGH>=REF(HIGH,3) AND HIGH>=REF(HIGH,4),LOW,0);
GUP5:=IF(LOW<=REF(LOW,1) AND LOW<=REF(LOW,2) AND LOW<=REF(LOW,3) AND LOW<=REF(LOW,4),HIGH,888888);
DRAWTEXT(GUP3>=REF(GUP3,1) AND GUP2<GUP1,GUP3,'买'), COLORRED;
DRAWTEXT(GUP3<REF(GUP3,1) AND GUP2>GUP1,GUP3,'卖'), COLORGREEN;
选股公式源码
{选股公式:买}
GUP1:=EMA(CLOSE,5);
GUP2:=SMA(L,9,1);
GUP3:=EMA(SLOPE(C,12)*20+C,57);
GUP4:=IF(HIGH>=REF(HIGH,1) AND HIGH>=REF(HIGH,2) AND HIGH>=REF(HIGH,3) AND HIGH>=REF(HIGH,4),LOW,0);
GUP5:=IF(LOW<=REF(LOW,1) AND LOW<=REF(LOW,2) AND LOW<=REF(LOW,3) AND LOW<=REF(LOW,4),HIGH,888888);
买:GUP3>=REF(GUP3,1) AND GUP2<GUP1;
{卖出公式:卖}
GUP1:=EMA(CLOSE,5);
GUP2:=SMA(L,9,1);
GUP3:=EMA(SLOPE(C,12)*20+C,57);
GUP4:=IF(HIGH>=REF(HIGH,1) AND HIGH>=REF(HIGH,2) AND HIGH>=REF(HIGH,3) AND HIGH>=REF(HIGH,4),LOW,0);
GUP5:=IF(LOW<=REF(LOW,1) AND LOW<=REF(LOW,2) AND LOW<=REF(LOW,3) AND LOW<=REF(LOW,4),HIGH,888888);
卖:GUP3<REF(GUP3,1) AND GUP2>GUP1;
|