注转的 两个最简单直接的指标组合1年一倍
luyued 发布于 2011-02-07 17:42 浏览 N 次大智慧
DRAWTEXTABS(0,0,' ☆全功能KDJ+MAC☆'),colorgreen; 通达信的------------ 1、“全功能KDJ+MAC”明天买=-10,并且“F趋势TBT” TDP>TIT时,第二天买入。 通过个股的线性 板块的线性 大盘的线性 比对!选择强势股,再结合MACD+KDJ 所处的位置, 理解是:老师的第一个指标是将MACD和KDJ在同一图上显示了出来,这样当看某一支股时,能从KDJ和MACD上看到更多的信息,可以弥补单纯看一个指标的不足,同时该指标还聚合了股票的支撑和压力位,明天的买卖点位,有利于投资者迅速作出决策.
{DRAWGBK(close>0,STRIP(RGB(25,25,112),RGB(47,79,79),0));}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1),LINETHICK1,COLORWHITE;
D:SMA(K,3,1),LINETHICK1,COLOR00DDDD;
J:3*K-2*D,LINETHICK1,COLORred;
DIFF:EMA(CLOSE,12)-EMA(CLOSE,26),linethick0,COLOR0099FF;
DEA :EMA(DIFF,9),linethick0,COLORD89837;
MACD:2*(DIFF-DEA),COLORFF9999,linethick0;
YLZC:=if(close=INDEXC,(INDEXC+INDEXh+INDEXl+INDEXO)/4,AMOUNT/(vol+0.01)/100);
阻价:=if(close=INDEXC,YLZC+INDEXC-INDEXl,YLZC+(close-low));
支价:=if(close=INDEXC,INDEXl+INDEXC-YLZC,low+(close-YLZC));
今压:REF(阻价,1),LINETHICK0,COLORAA11BB;
今撑:REF(支价,1),LINETHICK0,COLOR009900;
明压:阻价,LINETHICK0;
明撑:支价,LINETHICK0;
rsv1:=(hhv(h,9.8)-c)/(hhv(h,9.8)-llv(l,9.8))*101;
kk:=sma(rsv1,3,1);
dd:=sma(kk,3,1);
jj:=3*kk-2*dd;
买卖:=if(jj>=100,100,if(jj<=0,0,jj));
明天买:if(买卖=100,0-10,0),color00cccc;
明天卖:if(买卖=0,90,100),color00ff00;
KX:=250;
KH:=HHV(K,KX);
DH:=HHV(D,KX);
JH:=HHV(J,KX);
KL:=LLV(K,KX);
DL:=LLV(D,KX);
JL:=LLV(J,KX);
HKMAX:=MAX(KH,MAX(DH,JH));
LKMIN:=MIN(KL,MIN(DL,JL));
KHLB:=(HKMAX+LKMIN)/2;
KHLC:=HKMAX-LKMIN;
MHF:=HHV(DIFF,KX);
MHD:=HHV(DEA,KX);
MHM:=HHV(MACD,KX);
MLF:=LLV(DIFF,KX);
MLD:=LLV(DEA,KX);
MLM:=LLV(MACD,KX);
HMAX:=MAX(MHF,MAX(MHD,MHM));
LMIN:=MIN(MLF,MIN(MLD,MLM));
FHLB:=(HMAX-LMIN)/100;
FHLC:=HMAX-LMIN;
SH:=(0-FHLB)*(KHLC/FHLC)+KHLB;
DIFFA:(DIFF-FHLB)*(KHLC/FHLC)+KHLB,linethick2;
DEAA:(DEA-FHLB)*(KHLC/FHLC)+KHLB,linethick2;
MACDA:=(macd-FHLB)*(KHLC/FHLC)+KHLB;
CDA:=MACD0;
CDB:=MACD>=ref(MACD,1) and MACD>0;
CDC:=MACD>ref(MACD,1) and MACD<0;
CDD:=MACD<=ref(MACD,1) and MACD<0;
STICKLINE(CDA,SH,macda,6,0),COLOR00AAFF;{黄色段}
STICKLINE(CDA,SH,macda,6.6,0),COLOR0066AA;
STICKLINE(CDA,SH,macda,4.4,0),COLOR0099DD;
STICKLINE(CDA,SH,macda,3.3,0),COLOR00BBEE;
STICKLINE(CDA,SH,macda,2.2,0),COLOR00DDFF;
STICKLINE(CDA,SH,macda,1.1,0),COLOR00FFFF;
STICKLINE(CDB,SH,macda,6,0),COLOR0000AA; {红色段}
STICKLINE(CDB,SH,macda,6.6,0),COLOR0011BB;
STICKLINE(CDB,SH,macda,4.4,0),COLOr0022CC;
STICKLINE(CDB,SH,macda,3.3,0),COLOR0033DD;
STICKLINE(CDB,SH,macda,2.2,0),COLOR0044EE;
STICKLINE(CDB,SH,macda,1.1,0),COLOR0055FF;
STICKLINE(CDC,SH,macda,6,0),COLORAA00BB;{向上粉红}
STICKLINE(CDC,SH,macda,6.6,0),COLORBB1177;
STICKLINE(CDC,SH,macda,4.4,0),COLORCC2299;
STICKLINE(CDC,SH,macda,3.3,0),COLORDD33AA;
STICKLINE(CDC,SH,macda,2.2,0),COLOREE44BB;
STICKLINE(CDC,SH,macda,1.1,0),COLORFF55BB;
STICKLINE(CDD,SH,macda,6,0),COLORFF7700;
STICKLINE(CDD,SH,macda,6.6,0),COLORAA7711;
STICKLINE(CDD,SH,macda,4.4,0),COLORCC9922;
STICKLINE(CDD,SH,macda,3.3,0),COLOREEBB33;
STICKLINE(CDD,SH,macda,2.2,0),COLORFFCC44;
STICKLINE(CDD,SH,macda,1.1,0),COLORFFDD55;
PARTLINE(DIFFA,DIFF>0,RGB(255,153,153),DIFF<0,RGB(255,153,153));
PARTLINE(DEAA,DEA>0,RGB(65,105,225),DEA<0,RGB(65,105,225));
DRAWTEXT(BARSTATUS=2,SH,' 0'),color00aaaa;
TYP:=(HIGH+LOW+CLOSE)/3;
STICKLINE(diff>ref(diff,1),20,20,2,0),COLORRED;
STICKLINE(diff STICKLINE(K>=ref(K,1) or k>d and diff>ref(diff,1),80,80,2,1),COLORRED;
STICKLINE(K
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1),LINETHICK1,COLORWHITE;
D:SMA(K,3,1),LINETHICK1,COLOR00DDDD;
J:3*K-2*D,LINETHICK1,COLORRED;
DIFF:EMA(CLOSE,12)-EMA(CLOSE,26),LINETHICK0,COLOR0099FF;
DEA :EMA(DIFF,9),LINETHICK0,COLORD89837;
MACD:2*(DIFF-DEA),COLORFF9999,LINETHICK0;
YLZC:=IF(CLOSE=INDEXC,(INDEXC+INDEXH+INDEXL+INDEXO)/4,AMOUNT/(VOL+0.01)/100);
阻价:=IF(CLOSE=INDEXC,YLZC+INDEXC-INDEXL,YLZC+(CLOSE-LOW));
支价:=IF(CLOSE=INDEXC,INDEXL+INDEXC-YLZC,LOW+(CLOSE-YLZC));
今压:REF(阻价,1),LINETHICK0,COLORAA11BB;
今撑:REF(支价,1),LINETHICK0,COLOR009900;
明压:阻价,LINETHICK0;
明撑:支价,LINETHICK0;
RSV1:=(HHV(H,9.8)-C)/(HHV(H,9.8)-LLV(L,9.8))*101;
KK:=SMA(RSV1,3,1);
DD:=SMA(KK,3,1);
JJ:=3*KK-2*DD;
买卖:=IF(JJ>=100,100,IF(JJ<=0,0,JJ));
明天买:IF(买卖=100,0-10,0),COLOR00CCCC;
明天卖:IF(买卖=0,90,100),COLOR00FF00;
KX:=250;
KH:=HHV(K,KX);
DH:=HHV(D,KX);
JH:=HHV(J,KX);
KL:=LLV(K,KX);
DL:=LLV(D,KX);
JL:=LLV(J,KX);
HKMAX:=MAX(KH,MAX(DH,JH));
LKMIN:=MIN(KL,MIN(DL,JL));
KHLB:=(HKMAX+LKMIN)/2;
KHLC:=HKMAX-LKMIN;
MHF:=HHV(DIFF,KX);
MHD:=HHV(DEA,KX);
MHM:=HHV(MACD,KX);
MLF:=LLV(DIFF,KX);
MLD:=LLV(DEA,KX);
MLM:=LLV(MACD,KX);
HMAX:=MAX(MHF,MAX(MHD,MHM));
LMIN:=MIN(MLF,MIN(MLD,MLM));
FHLB:=(HMAX-LMIN)/100;
FHLC:=HMAX-LMIN;
SH:=(0-FHLB)*(KHLC/FHLC)+KHLB;
DIFFA:(DIFF-FHLB)*(KHLC/FHLC)+KHLB,LINETHICK2;
DEAA:(DEA-FHLB)*(KHLC/FHLC)+KHLB,LINETHICK2;
MACDA:=(MACD-FHLB)*(KHLC/FHLC)+KHLB;
CDA:=MACD0;
CDB:=MACD>=REF(MACD,1) AND MACD>0;
CDC:=MACD>REF(MACD,1) AND MACD<0;
CDD:=MACD<=REF(MACD,1) AND MACD<0;
STICKLINE(CDA,SH,MACDA,6,0),COLOR00AAFF;{黄色段}
STICKLINE(CDA,SH,MACDA,6.6,0),COLOR0066AA;
STICKLINE(CDA,SH,MACDA,4.4,0),COLOR0099DD;
STICKLINE(CDA,SH,MACDA,3.3,0),COLOR00BBEE;
STICKLINE(CDA,SH,MACDA,2.2,0),COLOR00DDFF;
STICKLINE(CDA,SH,MACDA,1.1,0),COLOR00FFFF;
STICKLINE(CDB,SH,MACDA,6,0),COLOR0000AA; {红色段}
STICKLINE(CDB,SH,MACDA,6.6,0),COLOR0011BB;
STICKLINE(CDB,SH,MACDA,4.4,0),COLOR0022CC;
STICKLINE(CDB,SH,MACDA,3.3,0),COLOR0033DD;
STICKLINE(CDB,SH,MACDA,2.2,0),COLOR0044EE;
STICKLINE(CDB,SH,MACDA,1.1,0),COLOR0055FF;
STICKLINE(CDC,SH,MACDA,6,0),COLORAA00BB;{向上粉红}
STICKLINE(CDC,SH,MACDA,6.6,0),COLORBB1177;
STICKLINE(CDC,SH,MACDA,4.4,0),COLORCC2299;
STICKLINE(CDC,SH,MACDA,3.3,0),COLORDD33AA;
STICKLINE(CDC,SH,MACDA,2.2,0),COLOREE44BB;
STICKLINE(CDC,SH,MACDA,1.1,0),COLORFF55BB;
STICKLINE(CDD,SH,MACDA,6,0),COLORFF7700;
STICKLINE(CDD,SH,MACDA,6.6,0),COLORAA7711;
STICKLINE(CDD,SH,MACDA,4.4,0),COLORCC9922;
STICKLINE(CDD,SH,MACDA,3.3,0),COLOREEBB33;
STICKLINE(CDD,SH,MACDA,2.2,0),COLORFFCC44;
STICKLINE(CDD,SH,MACDA,1.1,0),COLORFFDD55;
TYP:=(HIGH+LOW+CLOSE)/3;
STICKLINE(DIFF>REF(DIFF,1),20,20,2,0),COLORRED;
STICKLINE(DIFF STICKLINE(K>=REF(K,1) OR K>D AND DIFF>REF(DIFF,1),80,80,2,1),COLORRED;
STICKLINE(K
第二个
{F趋势TBT}
INPUT:N(9,1,999);
ZSC:=IF(INBLOCK('工程建筑'),"991002$CLOSE",IF(INBLOCK('电力'),"991003$CLOSE",IF(INBLOCK('计算机'),"991004$CLOSE",
IF(INBLOCK('电子信息'),"991006$CLOSE",IF(INBLOCK('房地产'),"991007$CLOSE",IF(INBLOCK('纺织服装'),"991008$CLOSE",
IF(INBLOCK('钢铁'),"991009$CLOSE",IF(INBLOCK('供水供气'),"991010$CLOSE",IF(INBLOCK('化工化纤'),"991011$CLOSE",
IF(INBLOCK('电器'),"991014$CLOSE",IF(INBLOCK('交通设施'),"991016$CLOSE",IF(INBLOCK('银行类'),"991017$CLOSE",
IF(INBLOCK('旅游酒店'),"991018$CLOSE",IF(INBLOCK('煤炭石油'),"991019$CLOSE",IF(INBLOCK('酿酒食品'),"991020$CLOSE",
IF(INBLOCK('农林牧渔'),"991021$CLOSE",IF(INBLOCK('商业连锁'),"991023$CLOSE",IF(INBLOCK('建材'),"991024$CLOSE",
IF(INBLOCK('其他行业'),"991025$CLOSE",IF(INBLOCK('汽车类'),"991026$CLOSE",IF(INBLOCK('机械'),"991027$CLOSE",
IF(INBLOCK('医药'),"991028$CLOSE",IF(INBLOCK('外贸'),"991031$CLOSE",IF(INBLOCK('教育传媒'),"991032$CLOSE",
IF(INBLOCK('仪电仪表'),"991033$CLOSE",IF(INBLOCK('有色金属'),"991034$CLOSE",IF(INBLOCK('造纸印刷'),"991035$CLOSE",
IF(INBLOCK('券商'),"991036$CLOSE",IF(INBLOCK('电力设备'),"991037$CLOSE",IF(INBLOCK('通信'),"991135$CLOSE",
IF(INBLOCK('运输物流'),"991136$CLOSE",IF(INBLOCK('保险'),"991255$CLOSE",0))))))))))))))))))))))))))))))));
TMT:SLOPE(C,N)/MA(C,N)*100,ColorFFFF00,LINETHICK0;
PARTLINE(TMT,TMT>=0,RGB(255,0,0),TMT<0,RGB(0,255,255)),LINETHICK2;
TIT:SLOPE(ZSC,N)/MA(ZSC,N)*100,COLORYELLOW;
TDP:SLOPE(INDEXC,N)/MA(INDEXC,N)*100,ColorDC00DC;
POLYLINE(C>0,0),COLORWHITE;
板块:=STRLEFT(BKNAME,STRFIND(BKNAME,',',1)-1);
DRAWTEXTABS(5,5,'TIT = ('+' '+板块+'指数 )'),COLORYELLOW;
修改了第二个公式,不然,显示不出板块指数。同时,直接使用了BKNAME, 个人觉得更加全面点。
{F趋势TBT}
INPUT:N(9,1,999);
ZSC:=IF(INBLOCK('工程建筑'),"991002$CLOSE",IF(INBLOCK('电力'),"991003$CLOSE",IF(INBLOCK('计算机'),"991004$CLOSE",
IF(INBLOCK('电子信息'),"991006$CLOSE",IF(INBLOCK('房地产'),"991007$CLOSE",IF(INBLOCK('纺织服装'),"991008$CLOSE",
IF(INBLOCK('钢铁'),"991009$CLOSE",IF(INBLOCK('供水供气'),"991010$CLOSE",IF(INBLOCK('化工化纤'),"991011$CLOSE",
IF(INBLOCK('电器'),"991014$CLOSE",IF(INBLOCK('交通设施'),"991016$CLOSE",IF(INBLOCK('银行类'),"991017$CLOSE",
IF(INBLOCK('旅游酒店'),"991018$CLOSE",IF(INBLOCK('煤炭石油'),"991019$CLOSE",IF(INBLOCK('酿酒食品'),"991020$CLOSE",
IF(INBLOCK('农林牧渔'),"991021$CLOSE",IF(INBLOCK('商业连锁'),"991023$CLOSE",IF(INBLOCK('建材'),"991024$CLOSE",
IF(INBLOCK('其他行业'),"991025$CLOSE",IF(INBLOCK('汽车类'),"991026$CLOSE",IF(INBLOCK('机械'),"991027$CLOSE",
IF(INBLOCK('医药'),"991028$CLOSE",IF(INBLOCK('外贸'),"991031$CLOSE",IF(INBLOCK('教育传媒'),"991032$CLOSE",
IF(INBLOCK('仪电仪表'),"991033$CLOSE",IF(INBLOCK('有色金属'),"991034$CLOSE",IF(INBLOCK('造纸印刷'),"991035$CLOSE",
IF(INBLOCK('券商'),"991036$CLOSE",IF(INBLOCK('电力设备'),"991037$CLOSE",IF(INBLOCK('通信'),"991135$CLOSE",
IF(INBLOCK('运输物流'),"991136$CLOSE",IF(INBLOCK('保险'),"991255$CLOSE",0))))))))))))))))))))))))))))))));
TMT:SLOPE(C,N)/MA(C,N)*100,ColorFFFF00,LINETHICK0;
PARTLINE(TMT,TMT>=0,RGB(255,0,0),TMT<0,RGB(0,255,255)),LINETHICK2;
TIT:SLOPE(ZSC,N)/MA(ZSC,N)*100,COLORYELLOW;
TDP:SLOPE(INDEXC,N)/MA(INDEXC,N)*100,ColorDC00DC;
POLYLINE(C>0,0),COLORWHITE;
板块:=STRLEFT(BKNAME,STRFIND(BKNAME,',',1)-1);
{DRAWTEXTABS(5,5,'TIT = ('+' '+板块+'指数 )'),COLORYELLOW;}
DRAWTEXTABS(5,5,'所属板块: '+BKNAME),coloraaaaaa;
DRAWTEXTABS(5,25,'板块指数: '+zsc),coloraaaaff;
2、“全功能KDJ+MAC”明天卖=90,并且“F趋势TBT” TDP>TIT时,第二天卖出。
3、如果“全功能KDJ+MAC”明天卖=90,并且“F趋势TBT” TDP
全功能KDJ+macd中,黄线形成坑低吸,绿线形成坑则卖出。
第二个看了下大概意思,首先知道本股的线性回归率,然后再比较本股对应板块的线性回归率,再比较对应大盘的线性回归率
分析个股是处在吸筹 洗盘 还是主升回档等阶段,再决定操作!!!
当K上穿D,且MACD大于零时,且个股趋势大于零
老师的第二个指标是将大盘,板块和个股三条线的线性回归与九天移动平均线的比值比较,以图示的形式显示出来,从而可以看出该股相对于与大盘和板块的强弱,有利于投资者根据自己的喜好,更快的进行决策.
第二个指标应该是可以排序的,如果用于排序,对于快速选股更有意义.
以上说的不知正确如否,欢迎老师指正.
是指南针的趋势TBT,TDP大盘,TIT板块,TMT个股,除了带上穿板块的箭头,趋势通道的箭头她的金华部分都有了,
MSN空间完美搬家到新浪博客!
- 05-23· 【引用】在西湖白堤.
- 05-23· 全家老小游西湖-自驾杭州
- 05-18· 关注四川端午
- 05-18· 吸血蝙蝠
- 05-18· 27款网络高人气国货护肤品
- 05-18· 秋天来了,三顺依然白白
- 05-18· 真假普兰娜辨别
- 05-18· 兰花交易的规则
- 05-18· 【原创】:七律无题
- 05-18· 七彩缤纷咖喱饭
- 05-15· 淘宝【母婴】店铺TOP10
- 05-13· 原来雪人也可以这样美
- 05-13· 2008年5月27日
- 05-13· 随即随记
- 05-13· 超妍美容用品公司
- 05-13· 嘉怡参赛
- 05-13· 转贴 [饒舌]路嘉怡路嘉欣
- 05-13· 嘉怡在此.哈哈哈.
- 05-13· 六月就该买了 Beauty Talks与
- 05-13· 嘉怡