升级版决策曲线,通达信,其中奥妙大家慢慢体会,炒股以来一只把它作为一个参考标的,参考价值非常高
源码
{日MACD}
日DIF:="MACD.DIF#DAY";
日DEA:="MACD.DEA#DAY";
日死叉:STICKLINE(日DIF<日DEA,100,98,4,0),COLORGREEN;
日金叉:STICKLINE(日DIF>日DEA,100,98,4,0),COLORRED;
DRAWTEXT(ISLASTBAR,95,'日'),COLORWHITE;
{周MACD}
周DIF:="MACD.DIF#WEEK"(12,26,9);
周DEA:="MACD.DEA#WEEK"(12,26,9);
周死叉:STICKLINE(周DIF<周DEA,34,32,4,0),COLORGREEN;
周金叉:STICKLINE(周DIF>周DEA,34,32,4,0),COLORRED;
DRAWTEXT(ISLASTBAR,33,'--周'),COLORYELLOW;
{月MACD}
月DIF:="MACD.DIF#MONTH"(12,26,9);
月DEA:="MACD.DEA#MONTH"(12,26,9);
月死叉:STICKLINE(月DIF<月DEA,-10,-8,4,0),COLORGREEN;
月金叉:STICKLINE(月DIF>月DEA,-10,-8,4,0),COLORRED;
DRAWTEXT(ISLASTBAR,-7,'--月'),COLORLIGRAY;
LC:=REF(CLOSE,1);
兵哥操作线:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLORWHITE;
IF(兵哥操作线>=REF(兵哥操作线,1),兵哥操作线,DRAWNULL),COLORRED,LINETHICK2;
顶部:100,COLORFFFF00,LINETHICK2,NODRAW;
强区:77,COLORFF85FF,DOTLINE;逃顶区:90,COLORYELLOW,DOTLINE;
生命线:34.00,COLORRED,NODRAW;
抢反弹:10,COLORYELLOW,DOTLINE;
底部:-10,COLORYELLOW,LINETHICK2,NODRAW;
DRAWTEXT(CURRBARSCOUNT=38,0,'底部区'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=38,20,'介入区'),COLORFF00FF;
DRAWTEXT(CURRBARSCOUNT=38,55,'安全区'),COLOR00FFFF;
DRAWTEXT(CURRBARSCOUNT=38,83,'强势区'),COLOR0000FF;
DRAWTEXT(CURRBARSCOUNT=38,94,'逃顶区'),COLOR00FF00;