股票论坛

 找回密码
 免费注册
搜索
热搜: 活动 交友 discuz
查看: 2469|回复: 1
打印 上一主题 下一主题

求改成通达信公式,谢谢!!

[复制链接]

刺使

Rank: 6Rank: 6

听众
3
跳转到指定楼层
#
发表于 2016-7-2 16:23 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
30爱心果
飞狐公式, 本人不会用飞狐软件, 求达人把公式改成通达信

KLINE(OPEN,HIGH,LOW,CLOSE,0);
HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY:=0;
AA:=REF(HIGH,HIGHN)=HHV(HIGH,2*HIGHN+1);
QY:=BACKSET(AA,HIGHN+1);
CC:=FILTER(QY,HIGHN) AND HIGH=HHV(HIGH,HIGHN+1);
DRAWICON(CC,HIGH*1.02,2);
DDD:=BARSLAST(CC);
GDTS:=IF(CC,SYSPARAM(3)-BARPOS+1,0);
DINGBU:=IF(DDD,REF(HIGH,DDD),HIGH);{顶部}
DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
DINGBU1:=REF(DINGBU,DDD+1);
GDCS1:=REFX(DINGBUTS,SYSPARAM(3)-BARPOS+1);
DINGBUTS1:=REF(DINGBUTS,DDD+1);
GDCS2:=REFX(DINGBUTS1,SYSPARAM(3)-BARPOS+1);
DINGBU2:=REF(DINGBU1,DDD+1);
MM:=IF(SYSPARAM(3)-BARPOS+1>GDCS2,0,1);
高点压力:LINEVALUE(SYSPARAM(3)-BARPOS+1=GDCS2,HIGH,SYSPARAM(3)-BARPOS+1=GDCS1,HIGH,0,1);
DRAWLINE(SYSPARAM(3)-BARPOS+1=GDCS2,HIGH,SYSPARAM(3)-BARPOS+1=GDCS1,HIGH,1) COLORGREEN,LINETHICK2;
DRAWLINE(SYSPARAM(3)-BARPOS+1=GDCS2,HIGH,ISLASTBAR,REF(HIGH,GDCS2-1),1),COLOR0055FF,POINTDOT;
DRAWLINE(SYSPARAM(3)-BARPOS+1=GDCS1,HIGH,ISLASTBAR,REF(HIGH,GDCS1-1),1),COLORYELLOW,POINTDOT;
AA1:=REF(LOW,LOWN)=LLV(LOW,2*LOWN+1);
QY1:=BACKSET(AA1,LOWN+1);
CC1:=FILTER(QY1,LOWN) AND LOW=LLV(LOW,LOWN+1);
DRAWICON(CC1,LOW*0.98,1);
DD1:=BARSLAST(CC1);
DDTS:=IF(CC1,SYSPARAM(3)-BARPOS+1,0);
YDB:=IF(DD1,REF(LOW,DD1),LOW);{底部}
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
DDCS1:=REFX(DDTS1,SYSPARAM(3)-BARPOS+1);
ZDB:=REF(YDB,DD1+1);
DDTS2:=REF(DDTS1,DD1+1);
DDCS2:=REFX(DDTS2,SYSPARAM(3)-BARPOS+1);
低点支撑:LINEVALUE(SYSPARAM(3)-BARPOS+1=DDCS2,LOW,SYSPARAM(3)-BARPOS+1=DDCS1,LOW,0,1);
DRAWLINE(SYSPARAM(3)-BARPOS+1=DDCS2,LOW,SYSPARAM(3)-BARPOS+1=DDCS1,LOW,1) COLORRED,LINETHICK2;
ZGSTAR:(高点压力+低点支撑)/2;
ZGEND:=REFX((高点压力+低点支撑)/2,SYSPARAM(3)-BARPOS+1);
STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);
中轨:LINEVALUE(SYSPARAM(3)-BARPOS+1=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,0,1);
DRAWLINE(SYSPARAM(3)-BARPOS+1=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLORFF55BB,LINETHICK2;
DRAWLINE(SYSPARAM(3)-BARPOS+1=DDCS1,LOW,ISLASTBAR,REF(LOW,DDCS1-1),1),COLORMAGENTA,POINTDOT;
DRAWLINE(SYSPARAM(3)-BARPOS+1=DDCS2,LOW,ISLASTBAR,REF(LOW,DDCS2-1),1),COLORCYAN,POINTDOT;

指标研习组

Rank: 11Rank: 11Rank: 11Rank: 11

听众
5
楼主
发表于 2016-7-3 21:32 | 只看该作者
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20);
MA30:MA(CLOSE,30);
MA60:MA(CLOSE,60);
MA120:MA(CLOSE,120);
HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY:=0;
AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
QY:=BACKSET(AA,HIGHN+1);
CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);
DRAWICON(CC,H*1.02,2);
DDD:=BARSLAST(CC);
GDTS:=IF(CC,CURRBARSCOUNT,0);
DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}
DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
DINGBU1:=REF(DINGBU,DDD+1);
GDCS1:=CONST(DINGBUTS);
DINGBUTS1:=REF(DINGBUTS,DDD+1);
GDCS2:=CONST(DINGBUTS1);
DINGBU2:=REF(DINGBU1,DDD+1);
MM:=IF(CURRBARSCOUNT>GDCS2,0,1);
高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) COLORGREEN,LINETHICK2;
DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055FF,POINTDOT;
DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYELLOW,POINTDOT;
AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);
QY1:=BACKSET(AA1,LOWN+1);
CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);
DRAWICON(CC1,L*0.98,1);
DD1:=BARSLAST(CC1);
DDTS:=IF(CC1,CURRBARSCOUNT,0);
YDB:=IF(DD1,REF(L,DD1),L);
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
DDCS1:=CONST(DDTS1);
ZDB:=REF(YDB,DD1+1);
DDTS2:=REF(DDTS1,DD1+1);
DDCS2:=CONST(DDTS2);
低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) COLORRED,LINETHICK2;
ZGSTAR:=(高点压力+低点支撑)/2;
ZGEND:=CONST((高点压力+低点支撑)/2);
STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);
中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLORFF55BB,LINETHICK2;
DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,DDCS1-1),1),COLORMAGENTA,POINTDOT,;
DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2-1),1),COLORCYAN,POINTDOT;
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

QQ|站点首页|手机版|小黑屋|帮助中心|桂ICP备14001964号

GMT+8, 2024-11-24 09:59 , Processed in 0.148507 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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