当前位置:→ 股海网飞狐公式 → 正文
  • 飞狐主图:红买绿卖 源码无未来

  • 相关简介:飞狐主图:红买绿卖 源码无未来 input:n(13,1,99),m(1,0,60),p(3,1,300),p2(5,1,300),p3(36,1,300),p4(13,1,300),p5(65,1,300); {A1:=REF(HIGH,3)=HHV(HIGH,2*3+1); B1:=FILTER(A1,3); C1:=BACKSET(B1,3+1); D1:=FILTER(C1,3);{高点} A2:=REF(LOW,3)=LLV(LOW,2*3+1); B2:=FILTER(A2,3);

  • 文章来源:股海网作者:股海网发布时间:2012-11-23浏览次数:下载次数:0

飞狐主图:红买绿卖 源码无未来

input:n(13,1,99),m(1,0,60),p(3,1,300),p2(5,1,300),p3(36,1,300),p4(13,1,300),p5(65,1,300);
{A1:=REF(HIGH,3)=HHV(HIGH,2*3+1); B1:=FILTER(A1,3); C1:=BACKSET(B1,3+1); D1:=FILTER(C1,3);{高点}
A2:=REF(LOW,3)=LLV(LOW,2*3+1); B2:=FILTER(A2,3); C2:=BACKSET(B2,3+1); D2:=FILTER(C2,3);{低点}
E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2; E2:=(HIGH+LOW)/2;{高低点出现在同一K线上时可作取舍}
H1:=(D1 AND NOT(D2 AND E1>=E2)) OR barstatus=2  OR BARSCOUNT(CLOSE)=1;
L1:=(D2 AND NOT(D1 AND E1<E2)); H2:=D1 AND NOT(D2 AND E1>=E2);
X1:=REF(BARSLAST(H1),1)+1; F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));
G1:=F1>REF(F1,1); I1:=BACKSET(G1,2); LD:=I1>REF(I1,1);{过滤后低点}
L2:=LD OR barstatus=2  OR BARSCOUNT(CLOSE)=1;
X2:=REF(BARSLAST(L2),1)+1; F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));
G2:=F2>REF(F2,1); I2:=BACKSET(G2,2); HD:=I2>REF(I2,1);{过滤后高点}
{以下是两条趋势线原码}{股海网提供 www.guhai.com.cn}
UU:=BACKSET(barstatus=2 ,BARSLAST(LD)+1);
VV:=UU>REF(UU,1);
WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);
XX:=WW>REF(WW,1);
DRAWLINE(XX,L,VV,L,1),COLORMAGENTA,LINETHICK1;
UU2:=BACKSET(barstatus=2 ,BARSLAST(HD)+1);
VV2:=UU2>REF(UU2,1);
WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);
XX2:=WW2>REF(WW2,1);
DRAWLINE(XX2,H,VV2,H,1),COLORMAGENTA,LINETHICK1;
前一低:REF(L,BARSLAST(VV)),COLOR99FF66,POINTDOT,LINETHICK3;
前二低:REF(L,BARSLAST(XX)),COLORFF66FF,POINTDOT,LINETHICK3;
前一高:REF(H,BARSLAST(VV2)),COLOR99FF66,POINTDOT,LINETHICK3;
前二高:REF(H,BARSLAST(XX2)),COLORFF66FF,POINTDOT,LINETHICK3;
短高:=REF(H,BARSLAST(VV2));
短低:=REF(L,BARSLAST(VV));
短比:= (C-短低)/(短高-短低),LINETHICK0;}

{AS:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24)+MA(CLOSE,48))/5;
AA:=SMA(CLOSE,3,1);
STICKLINE(AS<=AA AND CLOSE>=OPEN,HIGH,LOW,0.1,1),colorFF;
STICKLINE(AS<=AA AND CLOSE>=OPEN,CLOSE,OPEN,8,1),colorFF;
STICKLINE(AS<=AA AND CLOSE<OPEN,HIGH,LOW,0.1,0),colorFF;
STICKLINE(AS<=AA AND CLOSE<OPEN,CLOSE,OPEN,8,0),colorFF;
STICKLINE(AS>AA AND CLOSE>=OPEN,HIGH,LOW,0.1,1),colorFF00;
STICKLINE(AS>AA AND CLOSE>=OPEN,CLOSE,OPEN,8,1),colorFF00;
STICKLINE(AS>AA AND CLOSE<OPEN,HIGH,LOW,0.1,0),colorFF00;
STICKLINE(AS>AA AND CLOSE<OPEN,CLOSE,OPEN,8,0),colorFF00;}

ma7:EMA(C,7),COLORWHITE;
MID:MA(C,20),COLORYELLOW;
{DRAWICON(CROSS(MA7,MID),L*0.98,4);
DRAWICON(CROSS(MID,MA7),H*1,5);}
UPPER: MID + 2*STD(CLOSE,20),COLORwhite,LINEDOT;
LOWER: MID - 2*STD(CLOSE,20),COLORgreen,LINEDOT;
UPPER2: MID + 4*STD(CLOSE,20),COLORred,LINEDOT;
LOWER2: MID - 4*STD(CLOSE,20),COLORgreen,LINEDOT;

买线:=EMA(CLOSE,2);
卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWTEXT(BU,LOW*0.99,'▲'),align,colorFF00FF;
DRAWTEXT(SEL,HIGH*1.03,'▼'),align,colorFFFF;
STICKLINE(买线>=卖线,LOW,HIGH,0.1,0),colorFF;
STICKLINE(买线>=卖线,CLOSE,OPEN,8,1),colorFF;
STICKLINE(买线<卖线,CLOSE,OPEN,8,0),colorFF00;
STICKLINE(买线<卖线,LOW,HIGH,0.1,1),colorFF00;

 

飞狐主图:红买绿卖 源码无未来

 

 ☟问题反馈 ☞┄┄┄┄┄┄┄┄┄┄→收藏资源:

飞狐主图:红买绿卖 源码无未来

  • 下载资源所需积分

    0

  • 当前拥有积分

    0

上传会员: 
股海网
文件大小: 
Bytes
上传时间: 
2012-11-23
下载积分: 
-
免责声明: 
请仔细阅读并同意后才能下载
本附件为用户分享上传,股海网没有对文件进行验证,不能保证下载资源的准确性、安全性和完整性,也不保证下载资源能正常安装和使用,且下载后扣除的积分无法退还,除非您充分理解并完全接受本声明,否则您无权下载。
本站对提供下载的软件、指标、资料等不拥有任何权利,其版权归该下载资源的合法拥有者所有。本附件仅供学习和研究使用,不得用于商业或者非法用途,如有侵犯您的版权, 请参看 《股海网侵权处理流程》《股海网免责声明条款》
点击下载无反应时,更换主流浏览器重新登录操作,如360浏览器、Edge浏览器、谷歌浏览器,个别浏览器有不兼容现象。
勾选以下表示您已经阅读并同意以上声明才能下载本文件,扣除积分无法退还!
我已阅读所有条款规定, 请点我同意 所有条款内容!我自愿下载!
提示:如下载失败,请点关闭刷新此页面或提交问题反馈给管理员→
关闭

关于我们 - 联系我们 - 隐私政策 - 免责声明 - 下载帮助 - 广告合作 - SiteMap - TOP
增值电信业务经营ICP许可证:湘B2-20210269 湘ICP备09016573号-10 湘公网安备43108102000040号
Copyright © 2021 铭网科技,All Rights Reserved.