【副图 虎哥优化指标】说明:
1、神奇线是参数为28的KDJ。牛熊线则是参数为28的RSI。相对稍稍变异一点而矣。
2、两个指标中都加入了对应大盘的曲线以对比个股跟大盘的走势
{STICKLINE(C,95,95,0.5,0.5),COLOR3C3CFF;
STICKLINE(C,5,5,0.5,0.5),COLORCYAN;}
均价:=(HIGH+LOW+CLOSE)/3;
大盘均价:=(INDEXH+INDEXL+INDEXC)/3;
个股趋势:SMA(((均价-LLV(均价,M2))/(HHV(均价,M2)-LLV(均价,M2))*100),3,1),COLORWHITE;
DRAWBAND(个股趋势,RGB(155,50,50),50,RGB(0,100,50));
大盘趋势:SMA(((大盘均价-LLV(大盘均价,M2))/(HHV(大盘均价,M2)-LLV(大盘均价,M2))*100),3,1),COLORYELLOW;
中线转强:IF(个股趋势 50,个股趋势,DRAWNULL),COLORRED;
中线转弱:IF(个股趋势 50,个股趋势,DRAWNULL),COLORGREEN;
TJ:=IF( 000引用.FWYXQ 0,1,0);
RSV:=(均价-LLV(均价,9))/(HHV(均价,9)-LLV(均价,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
CCI:=(均价-MA(均价,14))/(0.015*AVEDEV(均价,14));
DIFF:=EMA(均价,2)-EMA(均价,55);
DEA:=EMA(DIFF,6);
MACD:=2*(DIFF-DEA);
转折点:IF(K D AND CCI 0 AND DIFF DEA AND MACD 0 AND TJ 0,1,DRAWNULL),COLORMAGENTA,NODRAW;
STICKLINE(转折点 0,50,个股趋势,0,0),COLORRED;
{STICKLINE(转折点=0,50,个股趋势,0,0),COLORGREEN;}
中线关注:IF(个股趋势 =50 AND REF(个股趋势,1) 50,1,DRAWNULL),COLORRED,NODRAW;
DRAWICON(个股趋势 =50 AND REF(个股趋势,1) 50,50,13);