DIFF:=EMA(CLOSE,3)-EMA(CLOSE,8);
DEA:=EMA(DIFF,5);
MACD:=2*(DIFF-DEA);
X1:=EMA(DIFF,5)*5;
X2:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*5;
选股:CROSS(X2,X1) AND X1<-0.25 AND (REF(C,20)-C)/C>0.30;
BIAS20:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100;
xy:=BARSLAST((BARSLAST(BIAS20<0 AND REF(BIAS20,1)<0))>0);
xz:=IF(REF(xy,1)>0 AND xy=0,10,0);
买入:xz and count(选股>0,18)>1,,STICK,colorred;
{www.gupang.com 股旁网_飞狐股票指标公式}
STICKLINE(买入>0,0 ,买入*1.2,8,0 ),COLOR00AADD;
STICKLINE(买入>0,0 ,买入*0.8,8,0 ),COLOR0099DD;
STICKLINE(买入>0,0 ,买入*0.6,8,0 ),COLOR0066DD;
STICKLINE(买入>0,0 ,买入*0.4,8,0 ),COLOR0033DD;
STICKLINE(买入>0,0 ,买入*0.2,8,0 ),COLOR0000DD;
202108211204.jpg
|