“弱势选股条件”
2020/2/17 18:46:09
公式编写说明:
条件公式一:昨收:= REF(C,1);RSI:SMA(MAX(C-昨收,0),6,1)/SMA(ABS(C-昨收),6,1)*100;WR:=-100*(HHV(HIGH,14)-C)/(HHV(HIGH,14)-LLV(LOW,14));WR反向:(0-WR)-100;RSI买点:=RSI<20 AND RSI>REF(RSI,1);WR反向买点:=WR反向>-70 AND WR反向<REF(WR反向,1);选股:RSI买点 AND WR反向买点;STICKLINE(选股,50,-60,2,0)COLORYELLOW;T0:=BARSCOUNT(C)>12;T1:=C=LLV(C,12);T2:=RSI>LLV(RSI,12);T3:=RSI<25;TRSI:=T0 AND T1 AND T2 AND T3 AND C/HHV(C,120)<0.7;RSI成W底:IF(REF(TRSI,1) AND C>REF(C,1),100,0),STICK;要求提取这里面的“选股”及“RSI成W底”这两个条件条件公式二:CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;AA:=IF(CROSS(2-100*(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9)),-90),-50,-100)=-50 AND IF((EMA(CS,2))*2>REF((EMA(CS,2))*2,1) AND REF((EMA(CS,2))*2,1)<REF((EMA(CS,2))*2,2) AND (EMA(CS,2))*2<26,50,0);倒转锤头:=MIN(O,C)=L AND (H-L)>2.0*(MAX(O,C)-L);XG:AA AND 倒转锤头;条件公式三:BIAS1:=(C-MA(C,6))/MA(C,6)*100;BIAS2:=(C-MA(C,12))/MA(C,12)*100;BIAS3:=(C-MA(C,24))/MA(C,24)*100;BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;乖离:=MA(BIAS,3);CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;VAR1J:=REF("WR.WR1"(10,6),1)>REF("WR.WR1"(10,6),2);VAR2J:=REF("WR.WR1"(10,6),1)>98;VAR3J:="WR.WR1"(10,6)<REF("WR.WR1"(10,6),1);A:=CROSS(BIAS,乖离) AND 乖离<-10;B:=IF(CROSS(2-100*(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9)),-90),-50,-100)=-50 AND IF((EMA(CS,2))*2>REF((EMA(CS,2))*2,1) AND REF((EMA(CS,2))*2,1)<REF((EMA(CS,2))*2,2) AND (EMA(CS,2))*2<26,50,0)=50;D:=VAR1J AND VAR2J AND VAR3J;A AND B AND D;要求以上条件公式一的两个子条件跟条件公式二及条件公式三组合成新的选股预警公式!谢谢老师帮忙!!!
公式源码回答:
昨收:=
REF(C,1);
RSI:=SMA(MAX(C-昨收,0),6,1)/SMA(ABS(C-昨收),6,1)*100;
WR:=-100*(HHV(HIGH,14)-C)/(HHV(HIGH,14)-LLV(LOW,14));
WR反向:=(0-WR)-100;
RSI买点:=RSI<20
AND RSI>REF(RSI,1);
WR反向买点:=WR反向>-70 AND
WR反向<REF(WR反向,1);
选股:=RSI买点 AND
WR反向买点;
T0:=BARSCOUNT(C)>12;
T1:=C=LLV(C,12);
T2:=RSI>LLV(RSI,12);
T3:=RSI<25;
TRSI:=T0
AND T1 AND T2 AND T3 AND C/HHV(C,120)<0.7;
RSI成W底:=REF(TRSI,1) AND
C>REF(C,1);
CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
AA:=IF(CROSS(2-100*(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9)),-90),-50,-100)=-50
AND IF((EMA(CS,2))*2>REF((EMA(CS,2))*2,1) AND
REF((EMA(CS,2))*2,1)<REF((EMA(CS,2))*2,2) AND
(EMA(CS,2))*2<26,50,0);
倒转锤头:=MIN(O,C)=L AND
(H-L)>2.0*(MAX(O,C)-L);
XG:=AA AND
倒转锤头;
BIAS1:=(C-MA(C,6))/MA(C,6)*100;
BIAS2:=(C-MA(C,12))/MA(C,12)*100;
BIAS3:=(C-MA(C,24))/MA(C,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:=MA(BIAS,3);
VAR1J:=REF("WR.WR1"(10,6),1)>REF("WR.WR1"(10,6),2);
VAR2J:=REF("WR.WR1"(10,6),1)>98;
VAR3J:="WR.WR1"(10,6)<REF("WR.WR1"(10,6),1);
A:=CROSS(BIAS,乖离) AND
乖离<-10;
B:=IF(CROSS(2-100*(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9)),-90),-50,-100)=-50
AND IF((EMA(CS,2))*2>REF((EMA(CS,2))*2,1) AND
REF((EMA(CS,2))*2,1)<REF((EMA(CS,2))*2,2) AND
(EMA(CS,2))*2<26,50,0)=50;
D:=VAR1J AND VAR2J AND VAR3J;
A AND B
AND D AND XG AND 选股 AND RSI成W底;
投 股票网 www.to u18.cn
股市公式下载推荐