通达信速成炒股法 主副图 源码
转载一篇文章,并做成选股公式。
大受欢迎的[速成炒股法]------一小时包会,大众都喜欢!!!
大多数人都缺乏股票买卖知识,蒙受不必要的损失;
针对这些庞大人群,我编了一个[速成炒股法],简单明了,一小时学成;经过讲授,
大受欢迎!现介绍如下,如认为可以,希望大家帮助普及,恩惠千万家!
(一)指标设置,一主图两副图,就用现成的,改改参数就成:
(1)主图:bbi;
(2)副图1:kdj(参数原来是9,3,3改为21,7,3);
(3)副图2:macd(参数原来是12,26,9改为5,26,3);
速成炒股法原码:
——————————————————————————————————————
{BBI}{主图}
BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
——————————————————————————————————————
{MACD-SC}{副图}
DIF:EMA(CLOSE,5)-EMA(CLOSE,26);
DEA:EMA(DIF,3),LINETHICK1;
MACD:=2*(DIF-DEA);{原文链接由牛牛指标网(www.tdx001.com)提供}
STICKLINE(MACD>=0,MACD,0,0,0),COLORF00FF0;
STICKLINE(MACD<0,MACD,0,0,0),COLORF00FF0;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0,0 ),COLORFFFF00;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0,0 ),COLORFFFF00;
IF(DIF<0,DIF,0),COLORRED,LINETHICK1;
IF(DIF<0,0,DIF),COLORRED,LINETHICK1;
IF(DIF<DEA,DIF,DEA),COLOR00FF00,LINETHICK1;
IF(DIF>DEA,DEA,DEA),COLORWHITE,LINETHICK1;
金叉:=CROSS(DIF,DEA) AND DIF<0.3;
STICKLINE(金叉,0,-0.38,3,0),COLOR0000FF;
——————————————————————————————————————
{KDJ-SC}{副图}
RSV:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
K:SMA(RSV,7,1);
D:SMA(K,3,1);
J:3*K-2*D;
VARK:K,COLORWHITE;
上升K:IF(VARK>REF(VARK,1),VARK,DRAWNULL),COLORRED;
走平K:IF(VARK=REF(VARK,1),VARK,DRAWNULL),COLORFFFFCC;
下降K:IF(VARK<REF(VARK,1),VARK,DRAWNULL),COLORGREEN;
VARD:D,COLORWHITE;{原文链接由牛牛指标网(www.tdx001.com)提供}
上升D:IF(VARD>REF(VARD,1),VARD,DRAWNULL),COLORRED;
走平D:IF(VARD=REF(VARD,1),VARD,DRAWNULL),COLORFFFFCC;
下降D:IF(VARD<REF(VARD,1),VARD,DRAWNULL),COLORGREEN;
VARJ:J,COLORWHITE;
上升J:IF(VARJ>REF(VARJ,1),VARJ,DRAWNULL),COLORRED;
走平J:IF(VARJ=REF(VARJ,1),VARJ,DRAWNULL),COLORFFFFCC;
下降J:IF(VARJ<REF(VARJ,1),VARJ,DRAWNULL),COLORGREEN;
——————————————————————————————————————
{速成选股}
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
DIF:=EMA(CLOSE,5)-EMA(CLOSE,26);
DEA:=EMA(DIF,3),LINETHICK1;
RSV:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
K:=SMA(RSV,7,1);{原文链接由牛牛指标网(www.tdx001.com)提供}
D:=SMA(K,3,1);
XG:CROSS(CLOSE,BBI) AND BBI>REF(BBI,1) AND CROSS(DIF,DEA) AND CROSS(K,D);
(二)用法:
(1)先看主图,如bbi向上时,而k线向上穿越bbi,则是买点;此时此刻kdj,macd相应会金叉;
(2)如bbi一直托住k线向上,则持股不卖,此时kdj,macd相应向上;
(3)一定要看bbi的角度,角度愈大愈强,角度愈小愈弱,角度变平就要变盘了,而kdj,macd相应会表示;
(4)当bbi角度变小变平,而k线向下穿越bbi,则是卖点,此时此刻kdj,macd相应会死叉;
(5)买卖时一定看大盘的强弱,大盘不好宁愿不做,大盘好,此法甚灵;
(6)bbi,kdj,macd,三者是互相印证的在实战中,你会加深体会;
恳切请大家指正与帮助,并帮助普及,恩惠万家!!!
三点看法:
一、零轴下金叉优先;
二、大盘强势选放量,大盘弱势选地量;
三、上次死叉时间不能太近
817155141.png
|