副图公式 源码 支持:手机/电脑
GUP1:=REF(OPEN,1);
GUP2:=SMA(MAX(OPEN-GUP1,0),6,1)/SMA(ABS(OPEN-GUP1),6,1)*100;
GUP3:=REF(CLOSE,1);
GUP4:=SMA(MAX(CLOSE-GUP3,0),6,1)/SMA(ABS(CLOSE-GUP3),6,1)*100;
GUP5:=REF(HIGH,1);
GUP6:=SMA(MAX(HIGH-GUP5,0),6,1)/SMA(ABS(HIGH-GUP5),6,1)*100;
GUP7:=REF(LOW,1);
GUP8:=SMA(MAX(LOW-GUP7,0),6,1)/SMA(ABS(LOW-GUP7),6,1)*100;
STICKLINE(GUP4<GUP2,GUP2,GUP4,8,0),COLORGREEN;
STICKLINE(GUP4>GUP2,GUP2,GUP4,8,0),COLORRED;
STICKLINE(GUP4>GUP2 AND GUP6>GUP8 AND GUP8>GUP4,GUP4,GUP6,0.5,1),COLORRED;
STICKLINE(GUP4>GUP2 AND GUP6<GUP8 AND GUP8>GUP2,GUP2,GUP6,0.5,1),COLORRED;
STICKLINE(GUP4<GUP2 AND GUP6>GUP8 AND GUP6<GUP4,GUP4,GUP8,0.5,1),COLORGREEN;
STICKLINE(GUP4<GUP2 AND GUP6<GUP8 AND GUP8>GUP2,GUP2,GUP6,0.5,1),COLORGREEN;
RSI1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
RSI2:=SMA(MAX(CLOSE-REF(C,1),0),12,1)/SMA(ABS(CLOSE-REF(C,1)),12,1)*100;
顶线:80,COLORYELLOW;底线:20,COLORMAGENTA;中线:50;
趋势:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
底部:10;买入:IF(CROSS(趋势,底部),20,0),STICK,LINETHICK6,COLORMAGENTA;顶部:90;5,COLORYELLOW;
生命指数:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3)/4;23.16,COLORGREEN;
顶:IF(生命指数>23.16,20,23.16),COLORGREEN;底:IF(生命指数<2,10,5),COLORYELLOW;
进场:IF(CROSS(生命指数,底),10,0);
选股公式源码
{选股公式一:买入}
GUP1:=REF(OPEN,1);
GUP2:=SMA(MAX(OPEN-GUP1,0),6,1)/SMA(ABS(OPEN-GUP1),6,1)*100;
GUP3:=REF(CLOSE,1);
GUP4:=SMA(MAX(CLOSE-GUP3,0),6,1)/SMA(ABS(CLOSE-GUP3),6,1)*100;
GUP5:=REF(HIGH,1);
GUP6:=SMA(MAX(HIGH-GUP5,0),6,1)/SMA(ABS(HIGH-GUP5),6,1)*100;
GUP7:=REF(LOW,1);
GUP8:=SMA(MAX(LOW-GUP7,0),6,1)/SMA(ABS(LOW-GUP7),6,1)*100;
趋势:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
底部:=10;
买入:CROSS(趋势,底部);
{选股公式二:进场}
GUP1:=REF(OPEN,1);
GUP2:=SMA(MAX(OPEN-GUP1,0),6,1)/SMA(ABS(OPEN-GUP1),6,1)*100;
GUP3:=REF(CLOSE,1);
GUP4:=SMA(MAX(CLOSE-GUP3,0),6,1)/SMA(ABS(CLOSE-GUP3),6,1)*100;
GUP5:=REF(HIGH,1);
生命指数:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3)/4;
底:=IF(生命指数<2,10,5),COLORYELLOW;
进场:CROSS(生命指数,底); |