求助选股公式:连续两天股价收盘价的涨跌幅在+⼀-1.5%,振幅在3%之内

2024-12-19 01:36:51
推荐回答(3个)
回答1:

涨跌幅:=(c-ref(c,1))/ref(c,1)*100;
振幅:=(h-l)/ref(c,1)*100;
看信号:count(ABS(涨跌幅)<1.5 and 振幅<3,2)=2;
-------------------------------------------------
先在副图里看信号,如果认为没问题了,那就是这样了,

回答2:

涨跌幅:=abs((c-ref(c,1)))*100/ref(c,1)<1.5;
振幅:=(h-l)*100/l<3;
选股:count(涨跌幅,2)=2 and 振幅

回答3:

{捕捞季节}
WY1001:=(2*CLOSE+HIGH+LOW)/3;
WY1002:=EMA(WY1001,3);
WY1003:=EMA(WY1002,3);
WY1004:=EMA(WY1003,3);
XYS0:(WY1004-REF(WY1004,1))/REF(WY1004,1)*100;
STICKLINE(XYS0>=0,XYS0,0,2,0),COLORRED;
STICKLINE(XYS0<0,XYS0,0,2,0),COLORGREEN;
PJGJ:=AMOUNT/VOL/100;
SSRYDJX:=MA(PJGJ,13);
SSRCJL:=EMA(VOL,13);
SSRCJE:=EMA(AMOUNT,13);
SSRCBJX:=SSRCJE/SSRCJL/100;
CYS13:=(CLOSE-SSRCBJX)/SSRCBJX*100;
XYSHSL:=EMA(VOL/CAPITAL*100,13);
ZZX:0,COLORWHITE;
STICKLINE(XYSHSL>6.1 AND CYS13>5 ,2 ,0 ,2,0 ),COLORGREEN;
STICKLINE(XYSHSL>3.8 AND CYS13>5 ,1.5 ,0 ,2 ,0 ),COLORYELLOW;
STICKLINE(XYSHSL>2.1 AND CYS13>5 ,1 ,0 ,2,0 ),COLORCYAN;
STICKLINE(XYSHSL>1.8 AND CYS13>5 ,0.5 ,0 ,2,0 ),COLORBLUE;
XYS1:MA(XYS0,1);
XYS2:MA(XYS0,2);