通达信强势建仓 副图源码 无未来
2014-10-30 13:46:12点击:
N1:=3;N2:=7;N3:=21;
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;
底部区域:20,COLORGREEN,LINETHICK2;
分界线:50,COLORWHITE,LINETHICK2;
风险区域:80,COLORYELLOW,LINETHICK2;
ZB1:=RSI1<底部区域;
建仓:IF(CROSS(RSI1,底部区域) ,80,0),COLORRED,LINETHICK3;
DRAWICON(CROSS(RSI1,底部区域) ,30,11);
ZB2:=(ZB1=0 AND RSI1<=风险区域);
卖出:IF(ZB2=1 AND REF(ZB2,1)=0 AND 建仓=0,50,100),COLORMAGENTA,LINETHICK3;
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;
底部区域:20,COLORGREEN,LINETHICK2;
分界线:50,COLORWHITE,LINETHICK2;
风险区域:80,COLORYELLOW,LINETHICK2;
ZB1:=RSI1<底部区域;
建仓:IF(CROSS(RSI1,底部区域) ,80,0),COLORRED,LINETHICK3;
DRAWICON(CROSS(RSI1,底部区域) ,30,11);
ZB2:=(ZB1=0 AND RSI1<=风险区域);
卖出:IF(ZB2=1 AND REF(ZB2,1)=0 AND 建仓=0,50,100),COLORMAGENTA,LINETHICK3;
- 上一篇:画线通道中规线波谷线BS上升通道下降通道 2014/10/30
- 下一篇:通达信牛犊戏虎 选股副图源码 无未来 2014/10/30