软件名称:[B]【通达信.大智慧】应大家需求【自选股】改成主图加选股.(源码.附图.解释)[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/
软件语言:简体中文
授权方式:免费版
软件大小:7.00 KB
官方主页:Home Page
更新时间:2012-10-07 07:31:17
软件简介:
原来的【自选股】PK主图的目的是用于股与股之间对比.可是不少同学希望要他变化为主图自己又不会.所以要求我给改编顺便我把大智慧的.通达信的一并发表.因为那个自选股变不了通达信的.这么一改就可以了.
公式的本身说明.就不重复了
我想重点说说图上的四区颜色就是因为我们编辑公式的出发点是想告诉使用公式的人能够知道什么时候是考虑买卖股票的机会.关键还是紫色和绿色股价一旦进入这个范围就是考虑买卖的时间.他不能告诉你必然的结果.但是可以提醒你是考虑的时机.没有任何公式可以百分之百确认买卖点.给你个大概几率就很好了.公式本身就是说明历史的.公式右边永远是未来函数.所以别指望公式给你定心丸.主意就在你心里.问谁也于事无补.朋友这就是我的忠告.
通达信源码:---------------------------------------------
VAR6:=(2*C+H+L)/4;
VAR8:=LLV(L,34);
VARA:=HHV(H,34);
BM:=EMA((VAR6-VAR8)/(VARA-VAR8)*100,3);
BM1:=EMA(BM,3);
AA:=BM-BM1>=0;
BB:=BM-BM1<0;
M20:=MA(C,18);
乖离20:=ABS((2*C+H+L)/4-M20)/M20;
乖离线:=DMA(CLOSE,乖离20);
止盈:乖离线*1.06,COLOR00FFFF,LINETHICK1;{20天均线乖离+6%}
止损:乖离线*0.94,COLOR00FF00,LINETHICK1;{20天均线乖离-6%}
DRAWBAND(止盈,RGB(0,0,255),乖离线,RGB(0,0,255));
DRAWBAND(乖离线,RGB(0,0,155),止损,RGB(0,0,155));
DRAWBAND(止盈,RGB(100,0,100),止盈*1.05,RGB(100,0,100));
DRAWBAND(止损,RGB(0,80,0),止损*0.95,RGB(0,180,0));
DMA(CLOSE,乖离20);
乖离线*1.06,COLOR00FFFF,LINETHICK1;
乖离线*0.94,COLOR00FF00,LINETHICK1;
乖离线*1.06*1.05,COLOR0077FF,LINETHICK1;
乖离线*0.94*0.95,COLORFF9900,LINETHICK1;
{MA5}
重心:WMA((2*C+H+L)/4,2),COLOR00FFFF,LINETHICK0;
MA5:WMA(重心,5),COLOR00FF00,DOTLINE;
IF(MA5>REF(MA5,1),MA5,DRAWNULL),COLORRED,LINETHICK3;
DRAWICON(CROSS(AA,BB),(LOW * 0.98),34);
DRAWICON(CROSS(BB,AA),(H*1.01),35);
{K线}
STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>REF(CLOSE,1),LOW,HIGH,0.0,0),COLORRED;
STICKLINE(CLOSE<OPEN OR CLOSE=OPEN AND CLOSE<=REF(CLOSE,1),LOW,HIGH,0.0,0),COLORCYAN;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR008800;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00AA00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00DD00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR000088;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000AA;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000DD;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLOR0000FF;
UploadPic/2012-10/201210615204052280.jpg
大智慧源码:---------------------------------------------------------------------------------------------------------
DRAWGBKlast(c>0,strip(RGB(0,0,140),RGB(0,0,0),0));
{K线}
STICKLINE(CLOSE>OPEN or CLOSE=OPEN and CLOSE>REF(CLOSE,1),LOW,HIGH,0.1,0),colorred;
STICKLINE(CLOSE>OPEN or CLOSE=OPEN and CLOSE>REF(CLOSE,1),OPEN,CLOSE,0,0),colorred;
STICKLINE(CLOSE<OPEN or CLOSE=OPEN and CLOSE<=REF(CLOSE,1),LOW,HIGH,0.1,0),colorcyan;
STICKLINE(CLOSE<OPEN or CLOSE=OPEN and CLOSE<=REF(CLOSE,1),OPEN,CLOSE,0,0),colorcyan;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),COLOR006600;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLOR008800;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLOR00AA00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLOR00BB00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLOR00CC00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00DD00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00EE00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00FF00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLOR000066;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLOR000088;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR0000AA;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLOR0000BB;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR0000CC;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR0000DD;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000EE;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLOR0000FF;
{红股.绿币的趋势线}
{MA5}
重心:WMA((2*C+H+L)/4,2),COLOR00FFFF,LINETHICK0;
MA5:WMA(重心,5),COLOR00FF00,DOTLINE;
PARTLINE(MA5 ,(MA5>REF(MA5,1)),rgb(255,180,0) ),linethick3,LAYER0;
{.吸入抛出}
Var6:=(2*C+H+L)/4;
Var8:=LLV(L,34);
VarA:=HHV(H,34);
BM:=EMA((Var6-Var8)/(VarA-Var8)*100,3);
BM1:=EMA(BM,3);
AA:=BM-BM1>=0;
BB:=BM-BM1<0;
drawbmp(CROSS(AA,BB),(L*0.99),'BU.bmp'),align1,valign0,LAYER0;
drawbmp(CROSS(BB,AA),(H*1.02),'SE.bmp'),align1,valign0,LAYER0;
{乖离止盈止损}
DRAWTEXTABS(30,30,'【乖离红卖绿买】'),LINETHICK3,Color00FF00;
M20:=MA(C,18);
乖离20:=ABS((2*C+H+L)/4-M20)/M20;
乖离线:=DMA(C,乖离20);
PARTLINE(乖离线 ,(乖离线>REF(乖离线,1))-1,rgb(0,255,0),1,rgb(255,0,0) ),DOTLINE,LAYER0;
止盈:乖离线*1.06,COLOR00ffff,LINETHICK1; {20天均线乖离+6%}
止损:乖离线*0.94,COLOR00ff00,LINETHICK1; {20天均线乖离-6%}
止盈*1.05,COLOR0077ff;
止损*0.95,COLORff9900;
FILLRGN(止盈,乖离线,止盈>乖离线,RGB(0,0,160)),LAYER7;
FILLRGN(乖离线,止损,乖离线>止损,RGB(50,50,50)),LAYER7;
FILLRGN(止盈,止盈*1.05,止盈<止盈*1.05,RGB(80,0,80)),LAYER7;
FILLRGN(止损,止损*0.95,止损>止损*0.95,RGB(0,60,0)),LAYER7;
[url=http://www.70822.com/soft/sort013/sort03/down-53576.html]【通达信.大智慧】应大家需求【自选股】改成主图加选股.(源码.附图.解释)[/url]