具体用法跟神奇线一样。神奇线是看中线趋势,辅以短趋势寻找买点,而牛熊线则看长趋势,多翻一些股对比一下长趋势寻找期规律。同样辅以短趋势寻买点。牛熊线里的短趋势跟神奇线不同,要更敏感些。
神奇线是参数为28的KDJ。牛熊线则是参数为28的RSI。相对稍稍变异一点而矣。两个指标中都加入了对应大盘的曲线以对比个股跟大盘的走势
牛熊线:
{DZH2版}
均价:=(HIGH+LOW+CLOSE)/3;
VAR1:=LLV(LOW,12);
VAR2:=HHV(HIGH,5);
快线:=EMA((均价-VAR1)/(VAR2-VAR1)*100,4);
慢线:=EMA(0.667*REF(快线,1)+0.333*快线,2);
转点:=IF(快线>慢线,1,0);
顶部:75,DOTLINE,COLOR3C3CFF,PRECIS0;
底部:25,DOTLINE,COLORCYAN,PRECIS0;
大盘均价:=(INDEXH+INDEXL+INDEXC)/3;
个股LC:=REF(均价,1);
个股牛熊:SMA(MAX(均价-个股LC,0),28,1)/SMA(ABS(均价-个股LC),28,1)*100,COLORYELLOW,PRECIS2;
PARTLINE(个股牛熊,个股牛熊>50),COLORRED,PRECIS2,LAYER0;
PARTLINE(个股牛熊,个股牛熊<50),COLORGREEN,PRECIS2,LAYER0;
FILLRGN(个股牛熊,50,个股牛熊>50,RGB(155,50,50)),PRECIS2;
FILLRGN(个股牛熊,50,50>个股牛熊,RGB(0,100,50)),PRECIS2;
FILLRGN(个股牛熊,75,个股牛熊>75,RGB(100,0,100)),PRECIS2;
FILLRGN(个股牛熊,25,25>个股牛熊,RGB(50,0,155)),PRECIS2;
大盘LC:=REF(大盘均价,1);
大盘牛熊:SMA(MAX(大盘均价-大盘LC,0),28,1)/SMA(ABS(大盘均价-大盘LC),28,1)*100,COLORYELLOW,PRECIS2;
STICKLINE(转点=1,50,50,6,0),COLORYELLOW;
STICKLINE(转点=0,50,50,6,0),COLORCYAN;
===================================================================================================
{通达信6.05以上版}
顶部:STICKLINE(C,75,75,0.5,0.5),COLOR3C3CFF;
底部:STICKLINE(C,25,25,0.5,0.5),COLORCYAN;
均价:=(HIGH+LOW+CLOSE)/3;
VAR1:=LLV(LOW,12);
VAR2:=HHV(HIGH,5);
快线:=EMA((均价-VAR1)/(VAR2-VAR1)*100,4);
慢线:=EMA(0.667*REF(快线,1)+0.333*快线,2);
转点:=IF(快线>慢线,1,0);
大盘均价:=(INDEXH+INDEXL+INDEXC)/3;
N:=28;
个股LC:=REF(均价,1);
个股牛熊:SMA(MAX(均价-个股LC,0),N,1)/SMA(ABS(均价-个股LC),N,1)*100,COLORWHITE;
DRAWBAND(个股牛熊,RGB(155,50,50),50,RGB(0,100,50));
LC:=REF(大盘均价,1);
大盘牛熊:SMA(MAX(大盘均价-LC,0),N,1)/SMA(ABS(大盘均价-LC),N,1)*100,COLORYELLOW;
长线转强:IF(个股牛熊>50,个股牛熊,DRAWNULL),COLORRED;
长线转弱:IF(个股牛熊<50,个股牛熊,DRAWNULL),COLORGREEN;
STICKLINE(转点=1,50,50,2,0),COLORYELLOW;
STICKLINE(转点=0,50,50,2,0),COLORCYAN;
================================================================================
{飞狐}
均价:=(HIGH+LOW+CLOSE)/3;
VAR1:=LLV(LOW,12);
VAR2:=HHV(HIGH,5);
快线:=EMA((均价-VAR1)/(VAR2-VAR1)*100,4);
慢线:=EMA(0.667*REF(快线,1)+0.333*快线,2);
转点:=IF(快线>慢线,1,0);
顶部:75,,LINEDOT,COLOR3C3CFF;
底部:25,,LINEDOT,COLORCYAN;
大盘均价:=(INDEXH+INDEXL+INDEXC)/3;
个股LC:=REF(均价,1);
个股牛熊:SMA(MAX(均价-个股LC,0),28,1)/SMA(ABS(均价-个股LC),28,1)*100,COLORYELLOW;
PARTLINE(个股牛熊>50,个股牛熊),COLORRED;
PARTLINE(个股牛熊<50,个股牛熊),COLORGREEN;
FILLRGN(个股牛熊>50,个股牛熊,50),COLOR32329B;
FILLRGN(50>个股牛熊,个股牛熊,50),COLOR326400;
FILLRGN(个股牛熊>75,个股牛熊,75),COLORMAGENTA;
FILLRGN(25>个股牛熊,25,个股牛熊),COLORBLUE;
大盘LC:=REF(大盘均价,1);
大盘牛熊:SMA(MAX(大盘均价-大盘LC,0),28,1)/SMA(ABS(大盘均价-大盘LC),28,1)*100,COLORYELLOW;
STICKLINE(转点=1,50,50,6,0),COLORYELLOW;
STICKLINE(转点=0,50,50,6,0),COLORCYAN;
=========================================================================================
=========================================================================================
神奇线更新:
{DZH2}
顶部:95,DOTLINE,COLOR3C3CFF,PRECIS0;
底部:5,DOTLINE,COLORCYAN,PRECIS0;
均价:=(HIGH+LOW+CLOSE)/3;
大盘均价:=(INDEXH+INDEXL+INDEXC)/3;
个股趋势:SMA(((均价-LLV(均价,28))/(HHV(均价,28)-LLV(均价,28))*100),3,1),COLORYELLOW,PRECIS2;
大盘趋势:SMA(((大盘均价-LLV(大盘均价,28))/(HHV(大盘均价,28)-LLV(大盘均价,28))*100),3,1),COLORYELLOW,PRECIS2,LAYER0;
PARTLINE(个股趋势,个股趋势>50),COLORRED,PRECIS2,LAYER0;
PARTLINE(个股趋势,个股趋势<50),COLORGREEN,PRECIS2,LAYER0;
FILLRGN(个股趋势,50,个股趋势>50,RGB(155,50,50)),PRECIS2;
FILLRGN(个股趋势,50,50>个股趋势,RGB(0,100,50)),PRECIS2;
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,1,0);
STICKLINE(转点=1,50,50,6,0),COLORYELLOW;
STICKLINE(转点=0,50,50,6,0),COLORCYAN;
=========================================================================
{通达信6.05以上版}
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(均价,28))/(HHV(均价,28)-LLV(均价,28))*100),3,1),COLORWHITE;
DRAWBAND(个股趋势,RGB(155,50,50),50,RGB(0,100,50));
大盘趋势:SMA(((大盘均价-LLV(大盘均价,28))/(HHV(大盘均价,28)-LLV(大盘均价,28))*100),3,1),COLORYELLOW;
中线转强:IF(个股趋势>50,个股趋势,DRAWNULL),COLORRED;
中线转弱:IF(个股趋势<50,个股趋势,DRAWNULL),COLORGREEN;
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,1,0);
STICKLINE(转点=1,50,50,2,0),COLORYELLOW;
STICKLINE(转点=0,50,50,2,0),COLORCYAN;
===============================================================================================
{飞狐}
顶部:95,,LINEDOT,COLOR3C3CFF;
底部:5,,LINEDOT,COLORCYAN;
均价:=(HIGH+LOW+CLOSE)/3;
大盘均价:=(INDEXH+INDEXL+INDEXC)/3;
个股趋势:SMA(((均价-LLV(均价,28))/(HHV(均价,28)-LLV(均价,28))*100),3,1),COLORYELLOW;
PARTLINE(个股趋势>50,个股趋势),COLORRED;
PARTLINE(个股趋势<50,个股趋势),COLORGREEN;
FILLRGN(个股趋势>50,个股趋势,50),COLOR32329B;
FILLRGN(50>个股趋势,50,个股趋势),COLOR326400;
大盘趋势:SMA(((大盘均价-LLV(大盘均价,28))/(HHV(大盘均价,28)-LLV(大盘均价,28))*100),3,1),COLORYELLOW;
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,1,0);
STICKLINE(转点=1,50,50,6,0),COLORYELLOW;
STICKLINE(转点=0,50,50,6,0),COLORCYAN;