借用了“太极圈”老师的源码,我借花献佛,美化了一下,意在推介好指标,做指标的人必须记住:指标太多不是件好事,但真正好的东西我们不能忘记!
C/C++ Code复制内容到剪贴板
- DRAWGBK(c>0),color000000;
- LC := REF(CLOSE,1);
- RSI:SMA(MAX(CLOSE-LC,0),9,1)/SMA(ABS(CLOSE-LC),9,1)*100,colorffffff;
- RSI2:SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100,colorff00ff;
- ao:=rsi;
- MID:=MA(ao,20);
- UPPER:=MID + 2.*STDDEV(ao,20);
- LOWER:=MID - 2.*STDDEV(ao,20);
- 高:=ref(hhv(ao,360),1);
- 低:=ref(llv(ao,240),1);
- 【上】:upper,pointdot,colorFFFF00;
- 【下】:lower,pointdot,colorFFFF00;
- DRAWTEXT(cross(ao,lower), lower,' '),COLORRED;
- DRAWICON(cross(ao,lower), lower *0.99,12),ALIGN1;
- DRAWTEXT(cross(lower,ao), lower,' '),COLORRED;
- DRAWICON(cross(lower,ao), lower *0.99,7),ALIGN1;
- drawtext(cross(ao,高),mid,'高'),colorBLUE,ALIGN1;
- drawtext(cross(低,ao),mid,'低'),coloryellow;
- DRAWTEXT(cross(upper,ao), upper,' ');
- DRAWICON(cross(upper,ao), upper*1.4,13),ALIGN1;
- DRAWTEXT(cross(ao,upper),upper,' ');
- DRAWICON(cross(ao,upper), upper*1.3,8),ALIGN1;
白线和粉红线的用法跟原始RSI用法一样,趋势不破不卖(有时候一不小心还会碰上牛股)!意思自己用了就明白,很简单,买入之前最好参考其它指标相配合!