发布网友 发布时间:2022-05-16 22:22
共1个回答
热心网友 时间:2023-09-13 17:28
修改如下:需要改成主图叠加,以相对坐标叠加勾选。
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;
K:=SMA(RSI1,3,1),COLORFF00FF;
D:=SMA(K,3,1);
D1:=SMA(D,3,1);
J:=3*K-2*D;
买:=CROSS(K,D1);
卖:=CROSS(D1,K);
DRAWTEXT(买,L*0.92,'买'),COLORYELLOW;
DRAWTEXT(卖,L*0.92,'卖'),COLORYELLOW;
效果图