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

小指标3-股价趋势(源码通达信大智慧飞狐)

发布时间:2013/12/6 4:07:34  浏览次数:

股价趋势小指标3-股价趋势(源码通达信大智慧飞狐)

主要用于大盘!
 

{SUPERTREND-大智慧版}
N:=10,M:=1.5;
TR1:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
ATR:=MA(TR1,N);
MEDIAN:=(HIGH + LOW)/2;
UP:=MEDIAN+ATR*M;
DN:=MEDIAN-ATR*M;
A:=BARSLAST(C>=REF(LLV(MEDIAN+ATR*1.5,3),1));
B:=BARSLAST(C<=REF(HHV(MEDIAN-ATR*1.7,3),1));
D:=BARSLAST(C>=REF(HHV(MEDIAN+ATR,3),1));
E:=HHV(MEDIAN-ATR*1.5,D+1);
T1:=COUNT(CROSS(E,C),3)>=1 AND B>A;
T2:=(C>E AND B>A) OR (COUNT(CROSS(E,C),3)>=1 AND B>A);
PARTLINE(LLV(UP,10),T2=0),COLORGREEN,LINETHICK1;
PARTLINE(HHV(DN,10),T2>0),COLORMAGENTA,LINETHICK1;
STICKLINE(T2>0 AND H>MAX(C,O),H,MAX(C,O),0,0),COLOR5454FF;
STICKLINE(T2>0 AND L<MIN(C,O),L,MIN(C,O),0,0),COLOR5454FF;
STICKLINE(T2>0 AND C>=O,C,O,7,1),COLOR5454FF;
STICKLINE(T2>0 AND C<=O,C,O,7,0),COLOR5454FF;

STICKLINE(T2=0 AND H>MAX(C,O),H,MAX(C,O),0,0),COLORFFFF54;
STICKLINE(T2=0 AND L<MIN(C,O),L,MIN(C,O),0,0),COLORFFFF54;
STICKLINE(T2=0 AND C>=O,C,O,7,1),COLORFFFF54;
STICKLINE(T2=0 AND C<=O,C,O,7,0),COLORFFFF54;


{SUPERTREND-飞狐版}
N:=10,M:=1.5;
TR1:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
ATR:=MA(TR1,N);
MEDIAN:=(HIGH + LOW)/2;
UP:=MEDIAN+ATR*M;
DN:=MEDIAN-ATR*M;
A:=BARSLAST(C>=REF(LLV(MEDIAN+ATR*1.5,3),1));
B:=BARSLAST(C<=REF(HHV(MEDIAN-ATR*1.7,3),1));
D:=BARSLAST(C>=REF(HHV(MEDIAN+ATR,3),1));
E:=HHV(MEDIAN-ATR*1.5,D+1);
T1:=COUNT(CROSS(E,C),3)>=1 AND B>A;
T2:=(C>E AND B>A) OR (COUNT(CROSS(E,C),3)>=1 AND B>A);
PARTLINE(T2=0,LLV(UP,10)),COLORGREEN,LINETHICK2;
PARTLINE(T2>0,HHV(DN,10)),COLORMAGENTA,LINETHICK2;
STICKLINE(T2>0 AND H>MAX(C,O),H,MAX(C,O),0,0),COLOR5454FF;
STICKLINE(T2>0 AND L<MIN(C,O),L,MIN(C,O),0,0),COLOR5454FF;
STICKLINE(T2>0 AND C>=O,C,O,8,1),COLOR5454FF;
STICKLINE(T2>0 AND C<=O,C,O,8,0),COLOR5454FF;

STICKLINE(T2=0 AND H>MAX(C,O),H,MAX(C,O),0,0),COLORFFFF54;
STICKLINE(T2=0 AND L<MIN(C,O),L,MIN(C,O),0,0),COLORFFFF54;
STICKLINE(T2=0 AND C>=O,C,O,8,1),COLORFFFF54;
STICKLINE(T2=0 AND C<=O,C,O,8,0),COLORFFFF54;

{SUPERTREND-通达信版}
N:=10;M:=1.5;
TR1:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
ATR:=MA(TR1,N);
MEDIAN:=(HIGH + LOW)/2;
UP:=MEDIAN+ATR*M;
DN:=MEDIAN-ATR*M;
A:=BARSLAST(C>=REF(LLV(MEDIAN+ATR*1.4,3),1));
B:=BARSLAST(C<=REF(HHV(MEDIAN-ATR*1.7,3),1));
D:=BARSLAST(C>=REF(HHV(MEDIAN+EMA(TR1,N),3),1));
E:=HHV(MEDIAN-ATR*1.5,D+1);
T1:=COUNT(CROSS(E,C),3)>=1 AND B>A;
T2:=(C>E AND B>A) OR (COUNT(CROSS(E,C),3)>=1 AND B>A);
IF(T2>0,HHV((H+L)/2-ATR*M,10),DRAWNULL),COLORDC00DC;
IF(T2=0,LLV((H+L)/2+ATR*M,10),DRAWNULL),COLOR00DC00;
STICKLINE(T2>0 AND H>MAX(C,O),H,MAX(C,O),0,0),COLOR5454FF;
STICKLINE(T2>0 AND L<MIN(C,O),L,MIN(C,O),0,0),COLOR5454FF;
STICKLINE(T2>0 AND C>=O,C,O,2,1),COLOR5454FF;
STICKLINE(T2>0 AND C<=O,C,O,2,0),COLOR5454FF;

STICKLINE(T2=0 AND H>MAX(C,O),H,MAX(C,O),0,0),COLORFFFF54;
STICKLINE(T2=0 AND L<MIN(C,O),L,MIN(C,O),0,0),COLORFFFF54;
STICKLINE(T2=0 AND C>=O,C,O,2,1),COLORFFFF54;
STICKLINE(T2=0 AND C<=O,C,O,2,0),COLORFFFF54;
 

小指标3-股价趋势(源码通达信大智慧飞狐)

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

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