公式指标平台 股票指标公式源码分享 登录 注册
公式指标平台
未来函数检测
首 页 金钻指标 通达信公式 大智慧公式 同花顺公式 文华财经公式 操盘手公式 东财通公式 飞狐公式 其他公式 公式解答 股票软件 股票池
当前位置:→ 公式指标平台 > 飞狐公式 > 正文 → 正文

飞狐黄金买卖主图指标

发布时间:2016/5/15 7:09:08  浏览次数:

飞狐黄金买卖主图指标

源码

{黄金买卖主图}
N:=13;
DRAWTEXT(SYSPARAM(2)=BARPOS,CLOSE,'版块:'+BLKNAME),ALIGN4,colorA3F8FF;
VAR00:=IF(close>0,1,0);
成本:(EMA(SLOPE(CLOSE,34)*20+CLOSE,80))*VAR00,LINETHICK2,colorFF00;
参:EMA(CLOSE,8)*VAR00,colorFFFFFF;
获利:(CLOSE/成本-1)*100,LINETHICK0,colorFF;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100*VAR00;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
DIFF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*VAR00;
DEA:=EMA(DIFF,9)*VAR00;
LC:=REF(CLOSE,1)*VAR00;
RSI1:=(SMA(MAX(CLOSE-LC,0),6,1))/(SMA(ABS(CLOSE-LC),6,1))*100;
RSI2:=(SMA(MAX(CLOSE-LC,0),12,1))/(SMA(ABS(CLOSE-LC),12,1))*100;
RSI3:=(SMA(MAX(CLOSE-LC,0),24,1))/(SMA(ABS(CLOSE-LC),24,1))*100;
A:=MA(CLOSE,14)*VAR00;
A1:=A*1.1*VAR00;
A4:=A*0.9*VAR00;
A2:=A1-(A1-A4)*0.191;
A3:=A1-(A1-A4)*0.618;
B:=CROSS(K,D) AND CLOSE
B1:=CROSS(K,D) AND CLOSE>A3;
B2:=CROSS(RSI1,RSI2);
B3:=CROSS(RSI1,RSI3);
B4:=CROSS(D,20);
B5:=CROSS(RSI1,RSI3);
初:=(CROSS(A4*1.01,LOW) AND COUNT(CROSS(A4*1.01,LOW),BARSLAST(B))=1 AND HIGH>=REF(LOW,1) AND LOW>LLV(LOW,16) OR CROSS(A4*1.01,LOW) AND COUNT(CLOSE>REF(CLOSE,1)*1.09,BARSLAST(CROSS(DIFF,DEA)))>=1 AND COUNT(CROSS(A4*1.01,LOW),BARSLAST(CROSS(DIFF,DEA)))<=2 AND OPEN>=REF(LOW,1)*0.97 OR CROSS(A4*1.01,LOW) AND COUNT(CROSS(A4*1.01,LOW),BARSLAST(B1))=1 AND HIGH>=REF(LOW,1) AND LOW>LLV(LOW,16) OR CROSS(A4*1.01,LOW) AND COUNT(CROSS(A4*1.01,LOW),BARSLAST(B2))=1 AND HIGH>=REF(LOW,1) AND LOW>LLV(LOW,16) OR CROSS(A4*1.01,LOW) AND COUNT(CROSS(A4*1.01,LOW),BARSLAST(B3))=1 AND HIGH>=REF(LOW,1) AND RSI3>40 OR CROSS(A4*1.01,LOW) AND COUNT(CROSS(A4*1.01,LOW),BARSLAST(B4))=1 AND HIGH>=REF(LOW,1) AND LOW>LLV(LOW,16) OR CROSS(A4*1.01,LOW) AND COUNT(CROSS(A4*1.01,LOW),BARSLAST(B5))=1 AND HIGH>=REF(LOW,1) AND RSI3>50)*VAR00;
DRAWTEXT(初,LOW,'←黄金买点'),colorFFFF;
STICKLINE(初,OPEN,CLOSE,3,0),LINETHICK2,colorFFFF;
D1:=MA(CLOSE,4)*VAR00;
底:=LLV(D1,55)*VAR00;
顶:=HHV(D1,55)*VAR00;
VAR6:=REF(底,1)=REF(D1,1) AND CROSS(CLOSE,D1) AND REF(CLOSE,1)<底;
VAR9:=(顶-底)/底*100>20;
DRAWTEXT(VAR6 OR VAR6 AND VAR9,LOW*0.97,'←大底买入'),colorFF00;
均:=(HIGH+LOW+OPEN+CLOSE)/4*VAR00;
BB:=(2*EMA(LLV(均,7),10)-均)*VAR00;
散:=(3*BB-2*SMA(BB,10,1))*VAR00;
DRAWICON(CROSS(均,散),LOW*0.98,4);
DRAWICON(CROSS(散,均),HIGH*1.02,5);
DRAWTEXT(CROSS(均,散) AND REF(CROSS(散,均),1),OPEN,'←短线速利'),colorFFFF;
DRAWTEXT(CROSS(均,散) AND REF(CROSS(散,均),2),OPEN,'←中利');
DRAWTEXT(CROSS(均,散) AND REF(CROSS(散,均),3),OPEN,'←长');
AB:=HHV(HIGH,N)*0.618*VAR00;
AC:=HHV(HIGH,N)*0.5*VAR00;
AD:=HHV(HIGH,N)*0.382*VAR00;
DRAWTEXT(CROSS(CLOSE,AB),LOW,'←突破6'),colorFF;
STICKLINE(CROSS(CLOSE,AB),OPEN,CLOSE,2,0),colorFF;
DRAWTEXT(CROSS(CLOSE,AC),LOW,'←突5'),colorFFFF;
STICKLINE(CROSS(CLOSE,AC),OPEN,CLOSE,2,0),colorFFFF;
DRAWTEXT(CROSS(CLOSE,AD),LOW,'←突3'),colorFF00FF;
买:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3)*VAR00;
卖:=SMA((HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))*100,2,1)*VAR00;
DRAWTEXT(CROSS(买,卖) AND 买>=40,LOW,'←启动'),colorFFFFFF;
短:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*VAR00;
长:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*VAR00;
DRAWTEXT(长>0.65 AND CROSS(0.25,短),LOW*0.98,'←短线英雄'),colorFF;

飞狐黄金买卖主图指标

资源下载链接   资源大小:unknow

手机移动版 - 关于我们 - 联系我们 - 广告合作 - 下载声明 - 网站帮助 - 友情链接 - 网站地图 - TOP
湘ICP备09016573号 增值电信业务经营ICP许可证:湘B2-20210269 湘公网安备43108102000039号
Copyright © GSZB.COM ,All Rights Reserved.
股票公式,股票指标,股票软件,股票知识