公式指标论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

通达信不一样的 操盘论2号源码附图

2012-11-30 22:52| 发布者: admin| 查看: 38| 评论: 0

VAR1:=MA(HHV(HIGH,485),17);

VAR2:=MA(HHV(HIGH,222),17);

VAR3:=MA(HHV(HIGH,96),17);

VAR4:=MA(LLV(LOW,485),17);

VAR5:=MA(LLV(LOW,222),17);

VAR6:=MA(LLV(LOW,96),17);

VAR7:=MA((VAR4*0.96+VAR5*0.96+VAR6*0.96+VAR1*0.558+VAR2*0.558+VAR3*0.558)/6,17);

VAR8:=MA((VAR4*1.25+VAR5*1.23+VAR6*1.2+VAR1*0.55+VAR2*0.55+VAR3*0.65)/6,17);

VAR9:=MA((VAR4*1.3+VAR5*1.3+VAR6*1.3+VAR1*0.68+VAR2*0.68+VAR3*0.68)/6,17);

VARA:=MA((VAR7*3+VAR8*2+VAR9)/6*1.738,17);

VARB:=IF(DATE<=1050531,VARA,VARA*DAY);

VARC:=LOW;

VARD:=REF(LOW,1);

VARE:=SMA(ABS(VARC-VARD),3,1)/SMA(MAX(VARC-VARD,0),3,1)*100;

VARF:=MA(IF(CLOSE*1.35<=VARB,VARE*10,VARE/10),1.35);

VAR10:=LLV(LOW,30);

VAR11:=HHV(VARF,30);

VAR12:=1990831;

绝佳买点:=IF(DATE<=VAR12,MA(IF(LOW<=VAR10,(VARF+VAR11*2)/2,0),2),100000000);

I:=IF(CLOSE

骤雨初晴:= ABS(EMA(I,13.3)-18)/WINNER(CLOSE)*IF((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)<-0.04,1,0);

短线买:IF(绝佳买点>500 AND 绝佳买点>2500,50,0),COLORMAGENTA,LINETHICK2;

中线买:IF(绝佳买点>10000 AND 绝佳买点>20000,65,0),COLORBLUE,LINETHICK3;

冲锋买点:IF(绝佳买点>30000 AND 绝佳买点>30000,90,0),COLORRED,LINETHICK3;

VAR13:=4*SMA((CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100,5,1)-3*SMA((CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100,5,1),,COLORYELLOW,LINETHICK0;

VAR14:=8,COLORGREEN,LINETHICK0;

上升在即: IF(CROSS(VAR13,VAR14),80,0),STICK,COLOR0000CC,LINETHICK2;

专吸庄血: IF(VAR13<=8,25,0),STICK,COLORWHITE,LINETHICK2;

DRAWTEXT(CROSS(VAR13,VAR14),80,'准备买入'),COLOR00FFFF;

VAR15:=LLV(LOW,27);

VAR16:=HHV(HIGH,34);

VAR17:=EMA((CLOSE-VAR15)/(VAR16-VAR15)*4,4)*25;

建仓区: IF((VAR17<10),40,0) ,COLORRED,LINETHICK3;

T1:=5;

T2:=4;

P:=((2)*(CLOSE) + HIGH + LOW + OPEN)/(5);

BB:=MA(P,3);

CC:=(SUM(IF((P > REF(P,1)),(P)*(VOL),0),4))/(SUM(IF((P < REF(P,1)),(P)*(VOL),0),4));

DD:=REF(100 - (100)/(1 + CC),1);

A1:=HHV(P,15);

A2:=LLV(P,15);

A3:=A1 - A2;

A4:=(EMA((P - A2)/(A3),2))*(100);

B1:=HHV(P,60);

B2:=LLV(P,60);

B3:=B1 - B2;

B4:=(EMA((P - B2)/(B3),2))*(100);

C1:=HHV(P,240);

C2:=LLV(P,240);

C3:=C1 - C2;

C4:=(EMA((P - C2)/(C3),2))*(100);

长风险:=C4,LINETHICK1,COLORMAGENTA;

中风险:=B4,COLORAA7755;

短风险:=A4,COLORYELLOW;

散户买卖风险:A4;

高:IF(FILTER((中风险 < REF(中风险,1)) AND (中风险 > 90) AND (BB < REF(BB,1)),5),92,100),COLORGREEN;

低:IF(FILTER((中风险 > REF(中风险,1)) AND (中风险 < 5) AND (CLOSE > REF(CLOSE,1)),5),14,0),COLORRED;

VAR18:=LLV(LOW,T1);

VAR19:=HHV(HIGH,T2);

散户:=EMA(((P - VAR18)/(VAR19 - VAR18))*(100),T2),COLOR3333DD;

庄家:=EMA((0.667)*(REF(散户,1)) + (0.333)*(散户),2),COLORDDCC00;

{DRAWTEXT(CROSS(散户,庄家) AND (散户 < 50) AND (29 < 散户),20,'▲'),COLORRED;

DRAWTEXT(CROSS(庄家,散户) AND (散户 > 40) AND (71 > 散户),70,'?'),COLORFF0000;}

DRAWTEXT(CROSS(散户,庄家) AND (散户 < 30),30,'吸'),COLORRED;

DRAWICON(CROSS(散户,庄家) AND (散户 < 30),20,1),COLORYELLOW;

DRAWICON(CROSS(庄家,散户) AND (散户 > 70),80,2),COLORFF00FF;

VAR20:=CLOSE - REF(CLOSE,5);

VAR21:=((EMA(EMA(VAR20,5),5))/(EMA(EMA(ABS(VAR20),5),5)))*(100);

VAR22:=((EMA(EMA(VAR20,20),20))/(EMA(EMA(ABS(VAR20),20),20)))*(100);

卖出:=IF((VAR21 > 0) AND CROSS(VAR22,VAR21),10,0);

DRAWICON((卖出 > 0),60,2),COLOR00FF00;

CCI:=((P - MA(P,14))*(100))/((1.5)*(AVEDEV(P,14)));

RSI1:=((SMA(MAX(CLOSE - REF(CLOSE,1),0),6,1))/(SMA(ABS(CLOSE - REF(CLOSE,1)),6,1)))*(100);

STICKLINE((CCI > 100),106,100,3,0),COLOR00AC00;

STICKLINE((RSI1 > 80),105,102,3,0),COLOR00FE00;

STICKLINE((CCI < (-100)),(-6),0,3,0),COLORYELLOW;

STICKLINE((RSI1 < 25),(-6),(-2),3,0);

D1:=(中风险 > REF(中风险,1)) AND (短风险 > REF(短风险,1)) AND (长风险 > REF(长风险,1)) AND (长风险 < 8) AND (中风险 < 10) AND (短风险 < 15);

D2:=CROSS(短风险,中风险) AND (中风险 < 8);

D3:=CROSS(短风险,长风险) AND (长风险 < 8) AND (中风险 < 20);

DRAWICON(FILTER(D1 OR D2 OR D3 AND (DD < 15) AND (CLOSE > REF(CLOSE,1)),5),8,1),COLORFF0000;

DRAWICON(FILTER((中风险 < REF(中风险,1)) AND (短风险 < REF(短风险,1)) AND (长风险 < REF(长风险,1)) AND (中风险 > 95) AND (短风险 > 85) OR (长风险 > 100) AND (中风险 > 100) AND (短风险 > 100),5),95,2);

警戒:80,COLORCYAN;

启动:20,COLORYELLOW;




鲜花

握手

雷人

路过

鸡蛋
返回顶部