您现在的位置:好股网 >> 股票公式 >> 通达信公式 >> 一键转帖:波段操作(源码,副图)

波段操作(源码,副图)


指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2011-12-18 09:47:00
公式简介:

V1:=(HIGH+OPEN+LOW+(2)*(CLOSE))/(5);
V2:=REF(V1,1);
V3:=MAX(V1-V2,0);
V4:=ABS(V1-V2);
V5:=SMA(V3,10,1);
V6:=SMA(V4,10,1);
V8:=COUNT(((V5)/(V6)<0.2),5);
V9:=COUNT((LLV(V1,10)=V1),10);
P:IF((V8>=1) AND (V9>=1) AND (CLOSE>OPEN) AND (REF(CLOSE,1)>REF(OPEN,1)) AND (VOL>REF(VOL,1)),1,0)*10,COLORRED;

VAR2N:=1;
V01:=(MA(((100 * (CLOSE - LLV(CLOSE,34))) / (HHV(HIGH,34) - LLV(LOW,34))),5) - 20);
V02:=(2 * ABS(V01));
V03:=(100 - ((100 - (3 * SMA((((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100),20,1))) + (2 * SMA(SMA((((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100),20,1),15,1))));
V04:=(100 - ((100 - (3 * SMA((((OPEN - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100),20,1))) + (2 * SMA(SMA((((OPEN - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100),20,1),15,1))));
V05:=(((HIGH + LOW) + CLOSE) / 3);
V06:=((V05 - MA(V05,10)) / (0.015 * AVEDEV(V05,10)));
V07:=((V05 - MA(V05,30)) / (0.015 * AVEDEV(V05,30)));
V08:=IF(((((V06 >= 150) AND (V06 < 200)) AND (V07 >= 150)) AND (V07 < 200)),10,0);
V09:=(IF(((((V06 <= (0 - 150)) AND (V06 > (0 - 200))) AND (V07 <= (0 - 150))) AND (V07 > (0 - 200))),(0 - 10),V8) * VAR2N);
VA:=(((CLOSE - MA(CLOSE,13)) / MA(CLOSE,13)) * 100);
VB:=(100 - ABS(VA));
VC:=((3 * SMA((((INDEXC - LLV(INDEXL,55)) / (HHV(INDEXH,55) - LLV(INDEXL,55))) * 100),20,1)) - (2 * SMA(SMA((((INDEXC - LLV(INDEXL,55)) / (HHV(INDEXH,55) - LLV(INDEXL,55))) * 100),20,1),15,1)));
VD:=((3 * SMA((((INDEXO - LLV(INDEXL,55)) / (HHV(INDEXH,55) - LLV(INDEXL,55))) * 100),20,1)) - (2 * SMA(SMA((((INDEXO - LLV(INDEXL,55)) / (HHV(INDEXH,55) - LLV(INDEXL,55))) * 100),20,1),15,1)));
VE:=(REF(LOW,1) * 0.9);
VF:=(LOW * 0.9);
V10:=(((VF * VOL) + (VE * (CAPITAL - VOL))) / CAPITAL);
V11:=EMA(V10,30);
V12:=(V11 - CLOSE);
V13:=REF(CLOSE,1);
V14:=((SMA(MAX((CLOSE - V13),0),7,1) / SMA(ABS((CLOSE - V13)),7,1)) * 100);
V15:=((SMA(MAX((CLOSE - V13),0),13,1) / SMA(ABS((CLOSE - V13)),13,1)) * 100);
V16:=BARSCOUNT(CLOSE);
V17:=((SMA(MAX((CLOSE - REF(CLOSE,1)),0),6,1) / SMA(ABS((CLOSE - REF(CLOSE,1))),6,1)) * 100);
V18:=(((((0 - 100) * (HHV(HIGH,60) - CLOSE)) / (HHV(HIGH,60) - LLV(LOW,60))) + 50) * 2);
V19:=(((CLOSE - LLV(LOW,15)) / (HHV(HIGH,15) - LLV(LOW,15))) * 100);
V1A:=((SMA(V19,4,1) - 50) * 2);
V1B:=SMA(V1A,3,1);
V1C:=(((INDEXC - LLV(INDEXL,14)) / (HHV(INDEXH,14) - LLV(INDEXL,14))) * 100);
V1D:=SMA(V1C,4,1);
V1E:=SMA(V1D,3,1);
V1F:=(((HHV(HIGH,30) - CLOSE) / CLOSE) * 100);
V20:=(IF((((((((((V17 <= 25) AND (V18 < (0 - 95))) AND (V1F > 20)) AND (V1B < (0 - 30))) AND (V1E < 30)) AND (V12 >= (0 - 0.25))) AND (V14 < 22)) AND (V15 < 28)) AND (V16 > 50)),80,0) * VAR2N);
空方:(0 - (IF((V1 < 0),V2,0) * VAR2N)),LINESTICK;
(0 - 10);
C0:=(((HIGH + LOW) + CLOSE) / 3);
A1:=HHV(C0,14);
A2:=LLV(C0,14);
A3:=(A1 - A2);
A4:=(EMA(((C0 - A2) / A3),2) * 100);
B1:=HHV(C0,30);
B2:=LLV(C0,30);
B3:=(B1 - B2);
B4:=(EMA(((C0 - B2) / B3),2) * 100);
C1:=HHV(C0,55);
C2:=LLV(C0,55);
C3:=(C1 - C2);
C4:=(EMA(((C0 - C2) / C3),2) * 100);
A10:=(A4 - 50);
A20:=(B4 - 50);
A30:=(C4 - 50);
DRAWICON(CROSS(A1,0),0,4);
RSV2:=(((CLOSE - LLV(LOW,30)) / (HHV(HIGH,30) - LLV(LOW,30))) * 100);
K2:=SMA(RSV2,3,1);
D2:=SMA(K2,3,1);
J2:=((3 * K2) - (2 * D2));
动力线:=(EMA(J2,6) * VAR2N),COLOR00FFFF;
VAR2W:=EMA(CLOSE,5);
RSI1W:=((SMA(MAX((CLOSE - VAR2W),0),6,1) / SMA(ABS((CLOSE - VAR2W)),6,1)) * 100);
RSI2W:=((SMA(MAX((CLOSE - VAR2W),0),3,1) / SMA(ABS((CLOSE - VAR2W)),3,1)) * 100);
VAR1F:="KDJ.D"(18,5,6);
虎:IF(((((((((动力线 < 15.5) AND (空方 < (0 - 30))) AND (VAR1F < 35)) AND (RSI1W < 10)) AND (RSI2W < 6.5)) AND (A10 < (0 - 47))) AND (A20 < (0 - 47))) AND (A30 < (0 - 48.5))),20,0);
牛:(IF(((空方 < (0 - 38)) AND (虎 > 0)),20,0) * VAR2N);
VAR2:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < (0 - 0.273));
VAR21:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
VAR22:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));
获利线:=(VAR2 AND VAR22);
LC:=EMA((WINNER(CLOSE) * 100),3);
VAR2Q:=EMA(CLOSE,3);
神奇线:=((SMA(MAX((CLOSE - VAR2Q),0),6,1) / SMA(ABS((CLOSE - VAR2Q)),6,1)) * 100);
买点一:=MA(神奇线,10);
牛A:(IF((VAR22 AND (神奇线 < 3)),(0 - 10),0) * VAR2N),LINETHICK2,COLORMAGENTA;
牛B:(IF((VAR22 AND (买点一 < 9)),(0 - 08),0) * VAR2N),LINETHICK2,COLOR3399FF;
剑:(FILTER(((神奇线 < 6) AND 获利线),35) * 1),STICK,LINETHICK2,COLORFF0000;
DRAWICON((剑 > 0),50,1);
牛3:(IF((((LC < 1.5) AND (买点一 < 21)) AND (神奇线 < 5.5)),30,0) * VAR2N),LINETHICK2,COLOR3399FF;
VAR1N:=1050431;
VAR2H:=IF((DATE <= VAR1N),1,0);
稳赚:=(MA(CLOSE,80) - (MA(CLOSE,13) / 3));
买点二:MA(((CLOSE - 稳赚) / 稳赚),1);
XA:=IF((CROSS(买点二,0) AND ((LOW / REF(HIGH,1)) < 1.012)),0.5,0);
XB:=IF((((COUNT((买点二 > REF(买点二,1)),3) = 3) AND (COUNT((买点二 < 0),10) = 10)) AND (REF(买点二,3) = LLV(买点二,10))),0.5,0);
VAR82:=IF((((((REF(买点二,2) = LLV(买点二,20)) AND (REF(买点二,2) < 0.071)) AND (REF(买点二,2) < REF(买点二,1))) AND NOT(((REF(LOW,1) > REF(HIGH,2)) AND (LOW > REF(HIGH,1))))) AND (CLOSE > REF(CLOSE,1))),0.5,0);
VAR83:=(EMA(买点二,12) * 0.7);
VAR84:=EMA(买点二,3);
底部将成:(IF((LLV((VAR84 - VAR83),5) > 0),0,(0 -10)) * VAR2H),COLORFFCC66;

VAR0:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR3:=SMA(VAR0,3,1);
VAR1:SMA(VAR3,4,1)-10;
VAR4:=(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR5:=SMA(VAR4,3,1);
VAR02:=SMA(VAR5,4,1)-90;
STICKLINE(REF(VAR1,1)<VAR1,VAR1,REF(VAR1,1),10,0),COLOR0000FF;
0, CIRCLEDOT;
STICKLINE(REF(VAR1,1)>VAR1,VAR1,REF(VAR1,1),5,0),COLOR00FF00;
STICKLINE(REF(VAR02,1)>VAR02,VAR02,REF(VAR02,1),10,0),COLOR0000FF;
STICKLINE(REF(VAR02,1)<VAR02,VAR02,REF(VAR02,1),5,0),COLOR00FF00;
0,COLOR0000FF;
M:=IF(REF(VAR1,1)<VAR1,10,0),COLORYELLOW;
买:IF(M=10 AND REF(M,1)=0 AND VAR1<10,18,0),,COLORFFFF00,STICK ;
买2:IF(M=10 AND REF(M,1)=0 AND VAR1>10 AND VAR1<55,28,0),,COLORYELLOW,STICK ;
{选股:IF(VAR1>0 AND VAR1-REF(VAR1,1)>=0 AND VAR1<45,8,0),,COLORYELLOW ;}

RSV:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
起动:=EMA(J,6),COLORRED;
{五星级注意:IF(起动>90 AND 起动<=REF(起动,1),-28,0),,COLORFFFF00,STICK ;}
VAR11:=REF(CLOSE,2);
会员专用:=SMA(MAX(CLOSE-VAR11,0),7,1)/SMA(ABS(CLOSE-VAR11),7,1)*100,COLORFFAA66;
VAR12:=REF(CLOSE,1);
VAR13:=SMA(MAX(CLOSE-VAR12,0),7,1)/SMA(ABS(CLOSE-VAR12),7,1)*100;
会员专用逃: IF(会员专用< REF(会员专用,1) AND 会员专用>79,-48,0),STICK,LINETHICK3,COLOR00FF00;
DRAWTEXT(会员专用逃 ,20 ,'逃'),COLORYELLOW,LINETHICK1;
VAR111:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);
VAR112:=SMA(VAR11,9,1);
A:=SMA(VAR112,5,1),COLOR00FFFF;
B:=SMA(A,3,1),COLORFF00FF;
F:=(3)*(A)-(2)*(B),COLOR00FF00;
观察区:=IF(F>=A AND A>=B,16,0),COLOR00FF00;
V001:=(C*2+H+L)/4*10;
V002:=EMA(V001,13)-EMA(V001,34);
V003:=EMA(V002,5);
V004:=2*(V002-V003)*5.5;
庄撤:=IF(V004<=0,V004,0);
庄进:=IF(V004>=0,V004,0);
V008:=(INDEXC*2+INDEXH+INDEXL)/4;
V009:=EMA(V008,13)-EMA(V008,34);
VA1:=EMA(V009,3);
VB1:=(V009-VA1)/2;
大筹金进:=IF(VB1>=0,VB1,0);
观察区1:=IF(庄进>0 ,6,0),COLORFFFF00;
Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;
Q3:=SMA(Q2, 9, 1);
Q4:=SMA(Q3, 3, 1);
长趋势:=3*Q3-2*Q4;
趋势线:=EMA(Q3, 3);
观察区2:=IF(长趋势>趋势线 ,-8,0),COLORFFFF00;
{综合观察区:IF(观察区=16 AND 观察区1=6 AND 观察区2=-8,16,0);}
VAR1D:=EMA(CLOSE,2)-EMA(CLOSE,89);
VAR1E:=EMA(VAR1D,30);
VAR11F:=2*(VAR1D-VAR1E)*10;
VAR20:=POW(VAR11F,3)*0.1+POW(VAR11F,2);
VAR25:=IF(VAR11F>0.015,VAR20,0)/45;
拉线:=VAR25,COLORYELLOW ;
拉线观察区:IF(拉线>0, 38,0), COLOR00FF00;
拉线买点:IF(拉线>0 AND REF(拉线,1)=0,28,0), COLORFFFF00,STICK ;
注意:IF(REF(拉线,1)>120 AND 拉线<=REF(拉线,1)*0.85,-17,0), COLORRED;
 


 


 


[url=http://www.goodgupiao.com/gupiaogongshi/16945.html][B]波段操作(源码,副图)[/B][/url]