网友求助:

源码:
单股:=LLV(MA(HIGH,(3)),1);
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
VC:=(2*C+H+L)/4;
VD:=LLV(L,3);
VE:=HHV(H,3);
V12:=EMA((VC-VD)/(VE-VD)*100,5);
V13:=EMA(V12,2);
RSI2:=SMA(RSI,6,1);
AA:=RSI>RSI2 AND 单股 AND V12>V13;
BB:=BARSLAST(AA);
XG:COUNT(AA,BB+3);

 

解答如下:

供参考做三个选股
单股:=LLV(MA(HIGH,(3)),1);
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
VC:=(2*C+H+L)/4;
VD:=LLV(L,3);
VE:=HHV(H,3);
V12:=EMA((VC-VD)/(VE-VD)*100,5);
V13:=EMA(V12,2);
RSI2:=SMA(RSI,6,1);
AA:=RSI>RSI2 AND 单股 AND V12>V13;
BB:=BARSLAST(AA);
XG:=COUNT(AA,BB+3);
XG1:XG=1;


单股:=LLV(MA(HIGH,(3)),1);
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
VC:=(2*C+H+L)/4;
VD:=LLV(L,3);
VE:=HHV(H,3);
V12:=EMA((VC-VD)/(VE-VD)*100,5);
V13:=EMA(V12,2);
RSI2:=SMA(RSI,6,1);
AA:=RSI>RSI2 AND 单股 AND V12>V13;
BB:=BARSLAST(AA);
XG:=COUNT(AA,BB+3);
XG2:XG=2;

单股:=LLV(MA(HIGH,(3)),1);
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
VC:=(2*C+H+L)/4;
VD:=LLV(L,3);
VE:=HHV(H,3);
V12:=EMA((VC-VD)/(VE-VD)*100,5);
V13:=EMA(V12,2);
RSI2:=SMA(RSI,6,1);
AA:=RSI>RSI2 AND 单股 AND V12>V13;
BB:=BARSLAST(AA);
XG:=COUNT(AA,BB+3);
XG3:XG=3;