这么多老师都拿出来优化公式,我也发一个,让大家参考参考.
将投机指标与RSI指标结合在一起并优化介入点,觉得花就别用。能抄底(出现铁底形成字样加笑脸次日收阳可介入),能抓强势(8线都上了50,强势确立),我认为是很不错的.
=========
LC := REF(CLOSE,1);
RSI6:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,LINETHICK3;
RSI12:SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,LINETHICK3;
RSI24:SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100,LINETHICK3;
FILLRGN(rsi6>rsi12 and rsi6>ref(rsi6,1) , rsi6,rsi12),COLORMAGENTA;
FILLRGN(rsi12>rsi24 and rsi12>ref(rsi12,1), rsi12,rsi24),COLORYELLOW;
FILLRGN(rsi6>rsi12 and rsi6<ref(rsi6,1) ,rsi6,rsi12),COLORGREEN;
FILLRGN(rsi12>rsi24 and rsi12<ref(rsi12,1), rsi12,rsi24),COLORBLUE;
FILLRGN(rsi6<rsi12 and rsi6<ref(rsi6,1) ,rsi6,rsi12),COLORGREEN;
FILLRGN(rsi12<rsi24 and rsi12<ref(rsi12,1), rsi12,rsi24),COLORBLUE;
FILLRGN(rsi12<rsi24 and rsi12>ref(rsi12,1), rsi12,rsi24),COLORYELLOW;
FILLRGN(rsi6<rsi12 and rsi12>ref(rsi12,1), rsi6,rsi12),COLORMAGENTA;
TJZB5:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),LINETHICK2;
TJZB13:100*(C-LLV(L,13))/(HHV(C,13)-LLV(L,13)),LINETHICK2,COLORYELLOW;
TJZB26:100*(C-LLV(L,26))/(HHV(C,26)-LLV(L,26)),LINETHICK2;
TJZB34:100*(C-LLV(L,34))/(HHV(C,34)-LLV(L,34)),LINETHICK2;
TJZB72:100*(C-LLV(L,72))/(HHV(C,72)-LLV(L,72)),COLORRED,LINETHICK2;
aa:=TJZB5<20 and TJZB5>ref(TJZB5,1) and TJZB13<20 and TJZB13>ref(TJZB13,1)
and TJZB26<20 and TJZB26>ref(TJZB26,1) and TJZB34<20 and TJZB34>ref(TJZB34,1);
DRAWICON(aa,TJZB13*1.05,1);
bb:=TJZB5>50 and TJZB13>50 and TJZB26>50 and TJZB34>50 and cross(TJZB72,50) and TJZB72>ref(TJZB72,1);
DRAWTEXT(bb,TJZB72*1.05,'主升浪'),ALIGN0,COLORWHITE;
cc:=TJZB5<5 and TJZB13<5 and TJZB26<5 and TJZB34<5;
DRAWICON(cc,TJZB13*1.05,4);
DRAWTEXT(cc,TJZB34*0.85,'铁底 形成'),ALIGN0,COLORWHITE;
底部线:0,LINEDASH;
多空平衡:50,COLORYELLOW,LINEDASH;
风险区:80,LINEDASH;
安全线:20,LINEDASH,colorcyan;
顶部线:100,LINEDASHDOT;
==================
===========
http://www.chcj.net/viewthread.p ... ;extra=&page=22