股民大家庭

 找回密码
 立即注册

扫一扫,访问微社区

搜索
查看: 10571|回复: 0
打印 上一主题 下一主题

[通达信]通达信OBV能量顶底源码公式

[复制链接]
跳转到指定楼层
1
发表于 2010-05-12 21:41:12 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
通达信OBV能量顶底源码公式:
VAR1:=REF(CLOSE,2);
AA2: SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100,COLOR00FF00;
超卖1: IF(AA2<12,30,0),COLORF00FF0;
STICKLINE(超卖1,0,30,5,0),COLORF00FF0;
VAR2:=REF(CLOSE,1);
VAR3:=SMA(MAX(CLOSE-VAR2,0),7,1)/SMA(ABS(CLOSE-VAR2),7,1)*100;
超卖2: IF(VAR3<12,30,0),COLORBROWN;
STICKLINE(超卖2,0,30,5,0),COLORBROWN;
逢高派发区: STICKLINE(AA2>80,AA2+1,AA2-1,8,0), COLORRED;
牛吃饱走了: IF(AA2< REF(AA2,1) AND AA2>79,AA2,0);
STICKLINE(牛吃饱走了,0,100,0.5,0),COLORWHITE;

OBV:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0)/100000;
A1:=OBV-REF(OBV,1);
A:=MA(OBV,5);
B:=REF(A,1);
B5:=A1/B*10;
C1:=(B5-REF(B5,1))/REF(B5,1);
RSV2:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
K:=SMA(RSV2,5,1);
D:=SMA(K,3,1);
PP:=BARSLAST(H=HHV(H,20));
P2:=IF(H=HHV(H,20) OR PP<3,1,0);
P1:=BARSLAST(CROSS(C1,0.5));
VAR13:=(LOW+HIGH+CLOSE)/3;
CB:= MA(VAR13,5);
A5:= HHV(CB,20);
A2:= HHV(CB,60);
B1:= LLV(CB,20);
B2:= LLV(LOW,60)*1.02;
A3:= HHV(HIGH,60)*0.98;
短顶:REF(C1,1)>0.5 AND C1<REF(C1,1) AND H>REF(H,1) AND K>30 AND K>D,COLORYELLOW;
TY:=IF(C1<-8 OR H/LLV(L,3)>1.5,1,0);
STICKLINE(短顶,100,85,2,0),COLORYELLOW;
单阳背离:=C1<0 AND C1=LLV(C1,13) AND C>O AND TY=1;
TU1:=IF((A5>REF(A5,1) AND REF(A5,1)>REF(A5,2) )OR (REF(A5,1)<REF(A5,2) AND REF(A5,2)<REF(A5,3)),1,0);
TU:=IF((C1<0 AND REF(C1,1)>0 AND REF (C1,2)<0 AND COUNT(C>O,3)=3 AND L>REF(L,1) AND REF(L,1)>REF(L,2) ) OR (C1<0 AND C1<REF(C1,1)
AND REF(C,1)>REF(O,1) AND REF(C,2)>REF(O,2) AND REF(C,3)>REF(O,3) AND REF(L,1)>REF(L,2) AND REF(L,2)>REF(L,3)),1,0),COLORLIGREEN;
三阳背离: TU=1 AND K>D AND TU1=1;
STICKLINE(三阳背离,65,85,2,0),COLORLIGREEN;

逃顶:K>80 AND K>D AND CROSS(-0.5,C1)  AND P1<5 AND P2=1,COLORGRAY;
STICKLINE(逃顶,65,50,2,0),COLORGRAY;
顶:=K>80 AND CROSS(D,K) AND CROSS(-0.5,C1) AND P1<5 AND P2=1;
VAR11:=REF(CLOSE,1);
VAR12:=SMA(MAX(CLOSE-VAR11,0),6,1)/SMA(ABS(CLOSE-VAR11),6,1)*100;
卖出:IF( CROSS(80,VAR12),1.5,0),COLORRED;
STICKLINE(卖出,50,100,1,0),COLORRED;
--------------------------------------------------------------------------
(监测大盘顶)附图参考
注释:监测34天最高最低值的连线,低点金山买入。(可更改天数)
N :1  100  34  ;  K  :1  20   3  ;
生命量能: EMA(100*(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N)),K)/4, STICK,COLORRED;
DRAWICON(生命量能>23,生命量能,12);
DRAWICON(生命量能<1,5,1);
生命分水岭: 10;
强势: 21;
VARC:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1);
金山:EMA(IF(L<= LLV(L,30),VARC,0),3);

2025861_2010-05-07_183657.png (37.55 KB, 下载次数: 4)

[通达信]通达信OBV能量顶底源码公式

[通达信]通达信OBV能量顶底源码公式



上一篇:[通达信]通达信大盘分时BBD源码公式
下一篇:[大智慧]大智慧135四区主图源码公式
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

今日股市|网站地图|股民学校|手机版|小黑屋|股民大家庭 |网站地图24小时在线客服

GMT+8, 2025-1-27 12:39 , Processed in 8.327161 second(s), 29 queries , Gzip On.

Powered by 股民大家庭

© 2007-2019 www.gupiao168.com


快速回复 返回顶部 返回列表