N1:=10;
B0:=REF(CLOSE-OPEN,2);
B1:=REF(CLOSE,1);
B2:=REF(CLOSE,2);
B3:=REF(CLOSE,3);
B4:=REF(CLOSE,4);
CMAX:=MAX(MAX(MAX(CLOSE,B1),B2),B3);
CMIN:=MIN(MIN(MIN(CLOSE,B1),B2),B3);
变盘:STICKLINE(CLOSE=CMAX AND B1=CMIN,B2,CLOSE,4,1),COLORFF00FF;
DRAWTEXT(变盘,(HIGH * 1.01),'变'),COLORYELLOW;
买入:STICKLINE(B1=CMAX AND CLOSE=CMIN,B2,CLOSE,7,0),COLORGREEN;
STICKLINE(B1=CMIN AND CLOSE>=B2 OR (B2=CMIN AND B1<=B3 OR B3=CMIN AND B1<=B2) AND B2<B4 AND CLOSE>=B1,B1,B2,7,0),COLORRED;
S2:=SMA(C,3,1);
S6:=SMA(C,5,1);
DK:=2*(S2-S6);
LC := REF(CLOSE,1);
RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,COLOR9900FF;
{www.gupang.com 股旁网_大智慧股票指标公式}
DRAWTEXT(CROSS(RSI1,80),(HIGH * 1.1),'卖'),COLORYELLOW;
DRAWICON(CROSS(RSI1,80),(HIGH)*(1.02),2);
低位金叉:=CROSS(RSI1,50) AND( DK>REF(DK,3));
DRAWTEXT(低位金叉,L-1.04,' 买'),COLORYELLOW;
DRAWICON(CROSS(RSI1,50),L-0.58,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'顶'),COLOR1880FF;
202108211234.jpg
|