5秒快速注册 登录
老钱庄股票论坛 返回首页

毛健33的个人空间 http://h.laoqianzhuang.com/?863670 [收藏] [复制] [分享] [RSS]

日志

赢在龙头

已有 276 次阅读2011-2-10 22:35

{交易机器人}  
H1:EMA(C,8);  
H2:EMA(H1,20);  
Var1:=(HHV(H,36)-C)/(HHV(H,36)-LLV(L,36))*100;  
Var2:=SMA(Var1,5,1);  
Var3:=SMA(Var2,8,1);  
Var4:=CROSS(Var2,Var3) AND Var3< 20;  
Var5:=C>LLV(C,60)*1.13 AND Var4;  
Var6:=IF(C>200,Var4,Var5);  
STICKLINE(H1>H2,H1,H2,0,1),COLORRED;  
STICKLINE(H1< H2,H1,H2,0,1),COLORGREEN;



{波段魔线}  
阻力:CLOSE*1.17 LINETHICK1 COLORWHITE;  
强阻力:CLOSE*1.2 LINETHICK1 COLORYELLOW;



{资金趋势}  
均价:=(H+L+O+C)/4;  
分水岭:ma(3*均价-2*sma(均价,2,1),12)linethick;  
做多趋势:if(均价>分水岭,均价,分水岭),COLORYELLOW;  
支撑:REVERSE(做多趋势)+2*分水岭,COLORMAGENTA;  
下跌:if(均价<分水岭,均价,分水岭),COLORGRAY;  
B:=(2*Ema(LLV(均价,7),10)-均价);  
做空趋势:(3*B-2*SMA(B,10,1)),COLORgreen,linethick2;  
阻力:=REVERSE(下跌)+2*分水岭;  



{波段赢家}  
获利了结:EMA(EMA(EMA(HIGH,5),5),5)*1.15,ColorFFFFFF,linethick1;  
风险: EMA(EMA(EMA(HIGH,5),5),5)*1.1,COLORYELLOW;  
回档: EMA(EMA(EMA(HIGH,5),5),5)*1.05,Color00FF00;  
平衡: EMA(EMA(EMA(HIGH,5),5),5),ColorFF00FF,linethick1;  
反弹: EMA(EMA(EMA(HIGH,5),5),5)*0.95,COLORGRAY,linethick1;  
超跌: EMA(EMA(EMA(HIGH,5),5),5)*0.9,colorblue,linethick1;  



{博弈资金}  
A:=v*100/capital;    
主力:MA(A,4),COLORYELLOW,POINTDOT;    
游资:MA(A,9),COLORGREEN,POINTDOT;    
大户:MA(A,17),COLORRED,POINTDOT;    
散户:MA(A,34),COLORF2E9E7,POINTDOT;    
关注线:MA(A,180),COLORFF00FF,linethick2;    
STICKLINE(主力>0,0,主力,2,0),COLORYELLOW;  
STICKLINE(游资>0,0,游资,2,0),COLORGREEN;  
STICKLINE(大户>0,0,大户,2,0),COLORRED;  
STICKLINE(散户>0,0,散户,2,0),COLORF2E9E7;  



{多空对比}  
短期:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE;  
中期:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORYELLOW;  
中长期:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORMAGENTA;  
长期:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLORRED,LINETHICK2;  
20,POINTDOT;  
50,POINTDOT;  
80,POINTDOT;  



{个股资金进出}  
Var1:=SMA(AMOUNT,10,1)/1000000;  
Var2:=REF(Var1,1);  
Var3:=MA(REF(CLOSE,1),5);  
收盘:Var1*CLOSE/Var3*1/10,COLOR009900,LINETHICK0,POINTDOT;  
开盘:Var1*OPEN/Var3*1/10,POINTDOT,COLOR009900,LINETHICK0;  
最高:Var1*HIGH/Var3*1/10,POINTDOT,COLOR009900,LINETHICK0;  
最低:Var1*LOW/Var3*1/10,POINTDOT,COLOR009900,LINETHICK0;  
生命线:EMA(收盘,12),COLORWHITE;    
昨收盘:=REF(收盘,1),POINTDOT,COLOR009900,LINETHICK0;  
涨跌:=(收盘-REF(收盘,1))/REF(收盘,1)*100,POINTDOT,COLOR009900,LINETHICK0;  
STICKLINE(收盘>开盘,收盘,开盘,5,0),COLORRED;  
STICKLINE(收盘>开盘,最高,MAX(收盘,开盘),0,1),COLORRED;  
STICKLINE(收盘>开盘,MIN(收盘,开盘),最低,0,1),COLORRED;  
STICKLINE(收盘<开盘,收盘,开盘,5,0),COLORGREEN;  
STICKLINE(收盘<开盘,最高,MAX(收盘,开盘),0,1),COLORGREEN;  
STICKLINE(收盘<开盘,MIN(收盘,开盘),最低,0,1),COLORGREEN;



{股价定位图}  
主力底仓:COST(9),COLORWHITE,LINETHICK2;  
建仓:COST(21),COLORYELLOW,LINETHICK2;  
平衡:COST(36),COLORMAGENTA,LINETHICK2;  
中位:COST(67),COLORGREEN,LINETHICK2;  
拉高:COST(84),COLORGRAY,LINETHICK2;  
高位:COST(94),COLORBLUE,LINETHICK2;  
STICKLINE(C>=O,C,O,8,0),COLORRED;  
STICKLINE(C>=O,H,L,0,0),COLORRED;  
STICKLINE(C<=O,C,O,8,0),COLORGREEN;  
STICKLINE(C<=O,H,L,0,0),COLORGREEN;  



{机构能量线}  
Var1:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;  
机构做空能量线: SMA(Var1,3,1),linethick2,colorgreen;  
Var2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;  
机构做多能量线: SMA(Var2,5,1)-8,linethick2,colorred;  



{资金指数}  
主流资金:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3), COLORMAGENTA,linethick2;    
非主流资金:EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),colorgreen,linethick2;  
20,pointdot,colorf00ff0;  
50,pointdot,colorgreen;  
80,pointdot,colorwhite;  



{主力操盘轨迹}  
RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;  
Y0:SMA(RSV,3,1),COLORRED,LINETHICK1;  
Y1:SMA(Y0,3,1),COLORYELLOW,LINETHICK1;  
RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;  
Y2:SMA(RSV1,5,1),COLORMAGENTA,LINETHICK2;  
Y3:SMA(Y2,10,1),COLORGREEN,LINETHICK2;  
18,COLORWHITE;  
85,COLORBLUE;  
STICKLINE(Y0>Y1,Y0,Y1,6,0),COLORRED;  
STICKLINE(Y0<=Y1,Y0,Y1,6,0),COLORYELLOW;  
STICKLINE(Y2>Y3,Y2,Y3,6,0),COLORMAGENTA;  
STICKLINE(Y2<=Y3,Y2,Y3,6,0),COLORGREEN;  



{动能运行轨迹(不太一样)}  
RSV:=(((CLOSE - LLV(LOW,33)) / (HHV(HIGH,33) - LLV(LOW,33))) * 100);  
Y0:SMA(RSV,7,1);  
Y1:SMA(SMA(RSV,7,1),3,1);  
Y2:(((CLOSE/COST(13))<=0.8)*10),COLORMAGENTA;  
Y3:SMA(SMA(SMA(RSV,6,1),5,1),3,1),COLORGREEN;  
DRAWICON(CROSS(18,Y0) and Y1<21,10,1);  
20,COLORBLUE;  
80,COLORGRAY;  



{多空生命量能}  
生命量能: EMA(100*(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N)),K)/4,PRECISION2, STICK,colorred;  
DRAWICON(生命量能>23.15,生命量能,12);  
DRAWICON(生命量能<1,5,1);  
生命分水岭: 10;  
强势: 21;  
量能底限:生命量能<1,COLORYELLOW;



{波段至尊}  
下轨:MA(CLOSE,20)+2*STD(CLOSE,20),PRECISION2,colorred;  
上轨:ABS(EMA((EMA(下轨,6)+EMA(下轨,12)+EMA(下轨,24)+EMA(下轨,48))/4,2)*1.055),PRECISION2,colorred;  
STICKLINE(下轨>0,下轨,上轨,0.8,1),colorred;

主流资金:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3), colorred,linethick2;
非主流资金:EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),colorgreen,linethick2;
20,POINTDOT,colorf00ff0;
50,POINTDOT,colorgreen;
80,POINTDOT,colorwhite
赢:=MA(C,1);
在:=SMA(SMA(SMA(赢,2,1),2,1),2,1);
龙:=MA(在,3);
FILLRGN(在,龙,在>=龙),ColorFFFFFF;
FILLRGN(在,龙,在<龙),color008800;
赢在龙头:=(L+H+C*4)/6;
工作:EMA(赢在龙头,12),COLOR00FF00;
度假:EMA(赢在龙头,19);
赢在:=(工作-REF(工作,1))/REF(工作,1)*100;
龙头:=(度假-REF(度假,1))/REF(度假,1)*100;
G:=BARSLAST(CROSS(赢在,0));
赢在龙:REF(赢在龙头,G),COLORWHITE,LINETHICK1;
A2:=3*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5);
A4:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;
A5:=EMA(CLOSE,12)-EMA(CLOSE,26);
A6:=EMA(A5,9);
A7:=(A5-A6);
PARTLINE(LLV(L,21),A7),COLORFFFF00;
PARTLINE(LLV(L,21),A7),COLORRED,CIRCLEDOT;
STICKLINE(C>REF(C,1),C,O,5,0),COLOR00EEEE;
STICKLINE(C>REF(C,1),C,O,3.5,0),COLOR0088CC;
STICKLINE(C>REF(C,1),C,O,3,0),COLOR0066DD,LINETHICK2;
STICKLINE(C>REF(C,1),C,O,2,0),COLOR0044EE;
STICKLINE(C>REF(C,1),C,O,1,0),COLOR0022FF;
STICKLINE(C=0),COLORMAGENTA,LINETHICK2;
PARTLINE(工作,赢在>=0),COLOR0000FF,LINETHICK2;
PARTLINE(赢在龙,赢在>=0),LINETHICK1,COLORRED;
STICKLINE(H>=REF(赢在龙头,G),REF(赢在龙头,G),REF(赢在龙头,G),0,0),Color00FF00,POINTDOT,LINETHICK1;
STICKLINE(H>=REF(赢在龙头,G),REF(赢在龙头,G),REF(赢在龙头,G),0,0),Color00FF00,POINTDOT,LINETHICK2;
STICKLINE(H>=REF(赢在龙头,G),REF(赢在龙头,G),REF(赢在龙头,G),0,1),Color00FF00,CIRCLEDOT,LINETHICK3;
STICKLINE(H>=REF(赢在龙头,G),REF(赢在龙头,G),REF(赢在龙头,G),0,0),Color00FF00,POINTDOT,LINETHICK4;
STICKLINE(H>=REF(赢在龙头,G),REF(赢在龙头,G),REF(赢在龙头,G),0,0),Color00FF00,POINTDOT,LINETHICK5;
STICKLINE(H>=REF(赢在龙头,G),REF(赢在龙头,G),REF(赢在龙头,G),0,0),Color00FF00,POINTDOT,LINETHICK6;
STICKLINE(H>=REF(赢在龙头,G),REF(赢在龙头,G),REF(赢在龙头,G),0,0),Color00FF00,POINTDOT,LINETHICK7;

通达信公式原码

赢:=MA(C,1);
在:=SMA(SMA(SMA(赢,2,1),2,1),2,1);
龙:=MA(在,3);
DRAWBAND(龙,RGB(50,100,100),在,RGB(231,231,231));{6.05版本才能用彩色带}
赢在龙头:=(L+H+C*4)/6;
工作:EMA(赢在龙头,12),COLOR00FF00;
度假:EMA(赢在龙头,19);
赢在:=(工作-REF(工作,1))/REF(工作,1)*100;
龙头:=(度假-REF(度假,1))/REF(度假,1)*100;
G:=BARSLAST(CROSS(赢在,0));
赢在龙:REF(赢在龙头,G),COLORWHITE,LINETHICK1;
A2:=3*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5);
A4:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;
A5:=EMA(CLOSE,12)-EMA(CLOSE,26);
A6:=EMA(A5,9);
A7:=(A5-A6);
IF(A7,LLV(L,21),DRAWNULL),COLORFFFF00;
IF(A7,LLV(L,21),DRAWNULL),COLORRED,CIRCLEDOT;
STICKLINE(C>REF(C,1),C,O,3,0),COLOR00EEEE;
STICKLINE(C>REF(C,1),C,O,2.5,0),COLOR0088CC;
STICKLINE(C>REF(C,1),C,O,2,0),COLOR0066DD,LINETHICK2;
STICKLINE(C>REF(C,1),C,O,1.5,0),COLOR0044EE;
STICKLINE(C>REF(C,1),C,O,1,0),COLOR0022FF;
STICKLINE(C=0,度假,DRAWNULL),COLORMAGENTA,LINETHICK2;
IF(赢在>=0,工作,DRAWNULL),COLOR0000FF,LINETHICK2;
IF(赢在>=0,赢在龙,DRAWNULL),LINETHICK1,COLORRED;
STICKLINE(H>=REF(赢在龙头,G),REF(赢在龙头,G),REF(赢在龙头,G),0,0),COLOR00FF00,POINTDOT,LINETHICK1;
STICKLINE(H>=REF(赢在龙头,G),REF(赢在龙头,G),REF(赢在龙头,G),0,0),COLOR00FF00,POINTDOT,LINETHICK2;
STICKLINE(H>=REF(赢在龙头,G),REF(赢在龙头,G),REF(赢在龙头,G),0,1),COLOR00FF00,CIRCLEDOT,LINETHICK3;
STICKLINE(H>=REF(赢在龙头,G),REF(赢在龙头,G),REF(赢在龙头,G),0,0),COLOR00FF00,POINTDOT,LINETHICK4;
STICKLINE(H>=REF(赢在龙头,G),REF(赢在龙头,G),REF(赢在龙头,G),0,0),COLOR00FF00,POINTDOT,LINETHICK5;
STICKLINE(H>=REF(赢在龙头,G),REF(赢在龙头,G),REF(赢在龙头,G),0,0),COLOR00FF00,POINTDOT,LINETHICK6;
STICKLINE(H>=REF(赢在龙头,G),REF(赢在龙头,G),REF(赢在龙头,G),0,0),COLOR00FF00,POINTDOT,LINETHICK7;
STICKLINE(CROSS(在,龙),L-0.05,L*0.96,2,0),COLORYELLOW;


路过

雷人

握手

鲜花

鸡蛋

全部作者的其他最新日志

评论 (0 个评论)

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 5秒快速注册

小黑屋|手机版|Archiver|老钱庄

GMT+8, 2017-12-18 20:53 , Processed in 0.059221 second(s), 17 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

返回顶部