以下是通达信风行一线擒牛副图指标源码
通达信风行一线擒牛副图指标源码:
ma5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA60:=MA(C,60);
MM:=MIN(MA5,MA60);
MM2:=MIN(MA10,MA60);
SS:DRAWBAND(MM,RGB(250,0,250),MM2,0);
HM:=MAX(MA5,MA60);
HM2:=MAX(MA10,MA60);
{DRAWBAND(HM2,RGB(0,255,190),HM,0);}
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
KK:=MIN(MA5,MA20);
KK2:=MIN(MA10,MA20);
DRAWBAND(KK,RGB(0,255,190),KK2,0);
MA(C,5);
MA(C,10);
MA(C,20);
MA(C,60);
动力线:(3*C+L+H+O)/6,COLOR00FF00;
识别线:SMA(SMA(动力线,3,1),3,1),COLOR0000FF;
强弱线:SMA(SMA(动力线,5,1),5,1),COLORYELLOW;
{压力支撑}
压力:HHV(动力线,10),COLOR1199FF,NODRAW;
支撑:LLV(动力线,10),COLOR1199FF,NODRAW;
STICKLINE(识别线 =强弱线,识别线,强弱线,1,0),COLOR669933;
STICKLINE(识别线 强弱线,强弱线,识别线,1,0),COLORFFBBD8;
STICKLINE(动力线 识别线,动力线,识别线,1,0),COLOR8A8A8A,NODRAW;
STICKLINE(动力线 识别线,动力线,识别线,1,0),COLORFFFFFF,NODRAW;
STICKLINE(动力线 识别线AND动力线 REF(动力线,1),动力线,识别线,1,0),NODRAW,COLORFFFFFF;
SMA(SMA(动力线,3,1),3,1),COLOR54A7A7,LINETHICK2;
K1:=BACKSET(识别线 REF(识别线,1)AND动力线 =识别线,2);
IF(K1,识别线,DRAWNULL),COLOR0000FF,LINETHICK2;
SMA(SMA(动力线,5,1),5,1),COLOR669933,LINETHICK2;
K2:=BACKSET(强弱线 REF(强弱线,1),2);
IF(K2,强弱线,DRAWNULL),COLOR00FFFF,LINETHICK2;
日DIF:="MACD.DIF#DAY";
日DEA:="MACD.DEA#DAY";
日死叉:STICKLINE(日DIF 日DEA,100,99.9,5,0),COLORGREEN;
日:STICKLINE(日DIF 日DEA,100,99.9,5,0),COLORRED;
DRAWTEXT(ISLASTBAR,100,'日'),COLORWHITE;
{周MACD}
周DIF:="MACD.DIF#WEEK"(12,26,9);
周DEA:="MACD.DEA#WEEK"(12,26,9);
周死叉:STICKLINE(周DIF 周DEA,34,33.9,5,0),COLORGREEN;
周金叉:STICKLINE(周DIF 周DEA,34,33.9,5,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,-9.9,5,0),COLORGREEN;
月金叉:STICKLINE(月DIF 月DEA,-10,-9.9,5,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;
{立体K线}
STICKLINE((OPEN =CLOSE),CLOSE,OPEN,2.5,0),COLORFF6600;
STICKLINE((OPEN =CLOSE),CLOSE,OPEN,1.5,0),COLORFF9900;
STICKLINE((OPEN =CLOSE),CLOSE,OPEN,0.5,0),COLORFFCC00;
STICKLINE((CLOSE OPEN),CLOSE,OPEN,2.5,0),COLOR000099;
STICKLINE((CLOSE OPEN),CLOSE,OPEN,1.5.0,0),COLOR0000CC;
STICKLINE((CLOSE OPEN),CLOSE,OPEN,0.5,0),COLOR0000FF;
STICKLINE((CLOSE OPEN),LOW,HIGH,0,0),COLOR1199FF;
STICKLINE((OPEN =CLOSE),LOW,HIGH,0,0),COLORDDDDDD;
动力线,COLOR00FF00;
压力,COLOR1199FF;
支撑,COLOR1199FF;
通达信风行一线擒牛副图指标截图