天机论坛

 找回密码
 欢迎注册

QQ登录

只需一步,快速开始

天机股票网 争做最牛的股票资讯集散地 注册 - 常见问题 - 联系方式

你有好料 就来分享 你可以将手中的好料分享赚取金币。 如何获得金币 - 金币回购计划

天天来访问 天天有收获 高端信息区区几个金币就可查看 立即注册 - QQ快速登陆

查看: 2168|回复: 0

[大智慧] 双线理论编写的自用双线主图

[复制链接]
发表于 2013-9-16 09:19:31 | 显示全部楼层 |阅读模式
{根据凯恩斯的双线理论编写,欢迎高手完善。
用法说明:
工作线在生命线之上才适合操作(出现笑脸);
线上阴线买入,买错了也要买; 线下阳线卖出,卖错了也要卖——主要指工作线。
生命线突破四天不破可阴线时买入(出现钱币后回抽买入,越接近均线越好);
连续两日跌破止赢线短线卖出(绿箭头出现关注第二天没收上短线止盈,中短线以上不管);
跌破工作线止损,跌破生命线逃命。}
我用的双线:::::::::::::::::::::::::;
DRAWTEXTREL(566,80,'-***纪律 | :买时不急,卖时不贪,止损不拖,品种不散'),color00FFFF;
DRAWTEXTREL(4,160,'黄点工作线 '),colorYellow;
DRAWTEXTREL(4,560,'粉色K线    |  大量放出'),colorMagenta;
DRAWTEXTREL(4,640,'多空止赢   |  停损线'),colorMagenta;
DRAWTEXTREL(4,240,'线上:工作  |  线下:休息'),color00FFFF;
DRAWTEXTREL(120,160,' | 最低点靠近工作线低吸'),colorYellow;
DRAWTEXTREL(420,80,STKLABEL+' '+STKNAME),Color00FFFF;
DRAWTEXTREL(4,480,'空心:阳线  |  实体:阴线'),color0000FF;
DRAWTEXTREL(4,320,'线上阴线买 | 买错也要买'),color00FFFF;
DRAWTEXTREL(4,400,'线下阳线卖 | 卖错也要卖'),color00FFFF;
七天线:MA(C,7),ColorFFFFFF;
工作线:EMA(C,14),POINTDOT,linethick4,coloryellow;
生命线:MA(C,22),linethick2,colorFF00FF;
季线:ma(c,66),linethick2,color0000FF;
半年线:ma(c,120),linethick2,colorFFFF00;
长期趋势线:ma(c,240),CIRCLEDOT,ColorEEBBEE;
A0:="cpzb.zp";
A1:="cpzb.cp";
A2:="cpzb.DP";
STICKLINE((A2>=2.1),H,L,0.8,1),colorGreen;
STICKLINE(((A2>=2.1) AND (C>REF(C,1))),O,C,8,1),colorGreen;
STICKLINE(((A2>=2.1) AND (C<REF(C,1))),C,O,8,0),colorGreen;
STICKLINE(((A2>0) AND (A2<5)),H,L,0.8,1),colorRed;
STICKLINE((((A2>0) AND (A2<5)) AND (C>REF(C,1))),O,C,8,0),colorRed;
STICKLINE((((A2>0) AND (A2<5)) AND (C<REF(C,1))),C,O,8,1),colorRed;
STICKLINE(((C>=工作线) AND (C>REF(C,1))),H,L,0.5,1),colorRed;
STICKLINE(((C>=工作线) AND (C>REF(C,1))),O,C,8,1),colorRed;
STICKLINE(((C>=工作线) AND (C<REF(C,1))),H,L,0.5,0),colorRed;
STICKLINE(((C>=工作线) AND (C<REF(C,1))),O,C,8,0),colorRed;
STICKLINE(((C<工作线) AND (C>REF(C,1))),H,L,0.5,1),colorGreen;
STICKLINE(((C<工作线) AND (C>REF(C,1))),O,C,8,1),colorGreen;
STICKLINE(((C<工作线) AND (C<REF(C,1))),H,L,0.5,0),colorGreen;
STICKLINE(((C<工作线) AND (C<REF(C,1))),O,C,8,0),colorGreen;
DRAWTEXT(A0,L,' ̄ ̄'),linethick2,ALIGN1,ColorFFFFFF;
DRAWTEXT(A0,L*0.98,' B-B'),linethick5,ALIGN1,colorFFFFFF;
DRAWTEXT(A1,H,' ̄ ̄'),linethick2,ALIGN1,colorcyan;
DRAWTEXT(A1,H*1.03,' S-S'),linethick5,colorcyan;
STICKLINE(A1,C,O,8,0),colorFFFF00;
STICKLINE(A1,H,L,1,0),colorFFFF00;
STICKLINE(A0,C,O,8,0),ColorFFFFFF;
STICKLINE(A0,H,L,1,0),ColorFFFFFF;
STICKLINE((A2>=10 and A2<30),C,O,0,0),ColorFFBBFF;
STICKLINE((A2>=10 and A2<30),C,O,8,0),colorMagenta;
STICKLINE((A2>=10 and A2<30),C,O,7,0),ColorFF22FF;
STICKLINE((A2>=10 and A2<30),C,O,6,0),ColorFF44FF;
STICKLINE((A2>=10 and A2<30),C,O,5,0),ColorFF66FF;
STICKLINE((A2>=10 and A2<30),C,O,4,0),ColorFF88FF;
STICKLINE((A2>=10 and A2<30),C,O,3,0),ColorFF99FF;
STICKLINE((A2>=10 and A2<30),C,O,2,0),ColorFFAAFF;
STICKLINE((A2>=10 and A2<30),C,O,1,0),ColorFFBBFF;
A3:=EMA((((SLOPE(C,21)) * 20) + C),68);
A4:=EMA(C,10);
A5:=REF(C,2);
A6:=((SMA((MAX((C - A5),0)),6,1)) / (SMA(ABS((C - A5)),6,1))) * 100;
A7:=IF(((A6 < (REF(A6,1))) AND (A6 > 79)),A6,0);
DRAWTEXT((CROSS(A4,A3)),L,'△'),linethick2,ALIGN1,colorYellow;
DRAWTEXT(A7,H,'○'),linethick3,colorGreen;
A8:=LLV(L,21);
A9:=HHV(H,21);
A10:=EMA((((CLOSE - A8) / (A9 - A8)) * 100),5);
A11:=EMA((((CLOSE - A8) / (A9 - A8)) * 50),13);
A12:=EMA(((0.667 * (REF(A10,1))) + (0.333 * A10)),2);
A13:=LLV(L,55);
A14:=HHV(H,34);
A15:=EMA((((C - A13) / (A14 - A13)) * 100),3);
A16:=(A11 + A15) / 2;
A17:=EMA(((0.667 * (REF(A15,1))) + (0.333 * A10)),2);
A18:=EMA(A16,5);
A19:=EMA(((0.667 * (REF(A18,1))) + (0.333 * A18)),2);
A20:=CROSS(A10,A11);
A21:=(CROSS(A10,A19)) AND (A19 < 30);
A22:=A21 * 0.6;
DRAWTEXT((A22 = 0.6),L,'◇'),ALIGN1,colorYellow;DRAWTEXT((A20 = 1),L,'◇'),ALIGN1,colorWhite;


==================附如下源码
{操盘线源码}

止盈线:EMA(C,7),LINETHICK1,COLORWHITE;
工作线:EMA(C,14),LINETHICK1,COLORYELLOW;
生命线:EMA(C,25),COLORRED,LINETHICK1;
DRAWICON(CROSS(工作线,生命线),工作线*0.95,5);
DRAWICON(CROSS(C,生命线) AND C>EMA(C,14),L*0.96,1);
DRAWICON(CROSS(止盈线,C) AND REF(C,1)>EMA(C,7) AND REF(C,2)>EMA(C,7) AND REF(C,3)>EMA(C,7) AND REF(C,4)>EMA(C,7),H*1.08,2);
DRAWTEXT(CROSS(REF(C,3),生命线) AND REF(C,1)>EMA(C,25) AND REF(C,2)>EMA(C,25) AND C>EMA(C,25) AND REF(C,4)<EMA(C,25) AND REF(C,5)<EMA(C,25),L*0.96,'$'),COLORYELLOW;
DRAWTEXT(CROSS(工作线,C) AND REF(C,1)>EMA(C,25)  AND REF(C,1)>EMA(C,14) AND REF(C,2)>EMA(C,14) AND REF(C,3)>EMA(C,14) AND REF(C,4)>EMA(C,14),H*1.05,'止损'),COLORYELLOW;
DRAWTEXT(CROSS(生命线,C) AND REF(C,1)>EMA(C,25) AND REF(C,2)>EMA(C,25) AND REF(C,3)>EMA(C,25),H*1.03,'逃命'),COLORGREEN;
DRAWICON(CROSS(生命线,工作线),HIGH*1.04,4);
1.jpg
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 欢迎注册

本版积分规则