当前位置:→ 股海网公式帮助 → 正文
  • 冷暖气带选股公式

  • 相关简介:编写要求: www.guhai.com.cn 股海网解答: 网友求助: 写一个B点选股公式,请问B点有没有未来函数?公式如下: MA3:MA(CLOSE,5),PRECIS2; MA7:MA(CLOSE,10),PRECIS2; MA18:MA(CLOSE,18),PRECIS2; MA30:MA(CLOSE,30),PRECIS2; MA55:MA(CLOSE,60),PRECIS2; MA144:MA(CLOSE,120),PRECIS2; {彩带} FILLRGN(MA55,MA144,

  • 文章来源:股海网作者:股海网发布时间:2015-06-19浏览次数:下载次数:0

编写要求:

 

www.guhai.com.cn股海网解答:

 网友求助:

写一个“B”点选股公式,请问B点有没有未来函数?公式如下:

MA3:MA(CLOSE,5),PRECIS2;
MA7:MA(CLOSE,10),PRECIS2;
MA18:MA(CLOSE,18),PRECIS2;
MA30:MA(CLOSE,30),PRECIS2;
MA55:MA(CLOSE,60),PRECIS2;
MA144:MA(CLOSE,120),PRECIS2;
{彩带}
FILLRGN(MA55,MA144,MA55>MA144,RGB(86,0,0),MA55<MA144,RGB(0,86,0)),LAYER7;
FILLRGN(MA3,MA7,MA3>MA7,RGB(128,0,128),MA3<MA7,RGB(20,92,100)),LAYER7;
{DRAWTEXTREL(0,980,'【细雨无声自用指标】'),Color999933,linethick1;}
A:=BARSLAST(DISPSTATUS=1)+1; HH:=HHV(H,A); LL:=LLV(L,A);
上涨:BARSSINCE(BACKSET(DISPSTATUS=2,BARSLAST(L=LL)+1)),COLOR3333CC,linethick0;
↑空间%:(C/REF(L,上涨)-1)*100,COLOR339999,linethick0;
最高%:(HHVALL(HH)/REF(L,上涨)-1)*100,COLORDD66DD,linethick0;
下跌:BARSSINCE(BACKSET(DISPSTATUS=2,BARSLAST(H=HH)+1)),COLOR008800,linethick0;
↓空间%:(C/REF(H,下跌)-1)*100,COLOR998888,linethick0;
最低%:(LLVALL(LL)/REF(H,下跌)-1)*100,COLORFF9900,linethick0;
DRAWTEXTABS(40,26,'流通盘:'+CAPITAL/1000000+'亿股,利润增长:'+FINANCE2(10)+'%。每股收益:'+FINANCE2(3)+'元'+' 市盈率:'+DYNAINFO(39)+'%'),ColorFFBB33,linethick1,LAYER6;
{买卖指示}
Var0:=SMA(MAX(CLOSE-ref(c,1),0),12,1)/SMA(ABS(CLOSE-ref(c,1)),15,1)*100;
DRAWTEXT(CROSS(82,Var0),high,'卖'),colorwhite;
s:=C-REF(C,1);
DX:=100*EMA(EMA(s,6),6)/EMA(EMA(ABS(s),6),6);
买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
DRAWTEXT(filter(买=1,5),LOW-0.03,'升'),ColorFFDE00;
da:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,4))/4;
db:=(EMA(C,10)+EMA(C,20)+EMA(C,40)+EMA(C,80))/4;
DRAWTEXT(CROSS(da-db,0),L*0.99,'B'),ALIGN1,VALIGN0,COLOR00FFFF,linethick5;
JH:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100;
DRAWTEXT(CROSS(84,JH),H*1.02,'S'),ALIGN1,VALIGN0,COLORGREEN,linethick4;
YC:=REF(CLOSE,1);
止损价位:(YC*1.0035*97+0.2)/99.65,PRECIS2,ColorFFCC33,LINETHICK0;
盘子:CAPITAL/1000000,linethick0;
盘子1:CAPITAL/100,linethick0;
盘子2:FINANCE2(37),linethick0;
{缺口}
STICKLINE(L>REF(H,1),L,REF(H,1),50,1001),Color408080;
STICKLINE(REF(L,1)>H,ref(L,1),H,50,1001),Color808040;
DRAWTEXT(L>REF(H,1),REF(H,1),NUMTOSTRN(REF(H,1),2)+'-'+NUMTOSTRN(L,2)),Color408080;
DRAWTEXT(REF(L,1)>H,REF(L,1),NUMTOSTRN(ref(l,1),2)+'-'+NUMTOSTRN(h,2)),VALIGN2,Color808040;

{K线}
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0),COLOR5454FF;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,7,0),COLORFFFF00;
STICKLINE(CLOSE>OPEN,HIGH,CLOSE,0.1,0),COLOR5454FF;
STICKLINE(CLOSE>OPEN,LOW,OPEN,0.1,0),COLOR5454FF;
STICKLINE(CLOSE<OPEN,HIGH,OPEN,0.1,0),COLORFFFF00;
STICKLINE(CLOSE<OPEN,LOW,CLOSE,0.1,0),COLORFFFF00;
STICKLINE(CLOSE=OPEN AND CLOSE>REF(CLOSE,1),CLOSE,OPEN,7,0),COLOR5454FF;
STICKLINE(CLOSE=OPEN AND CLOSE<=REF(CLOSE,1),CLOSE,OPEN,7,0),COLORFFFF00;
STICKLINE(CLOSE=OPEN AND CLOSE>REF(CLOSE,1),HIGH,LOW,0.1,0),COLOR5454FF;
STICKLINE(CLOSE=OPEN AND CLOSE<=REF(CLOSE,1),HIGH,LOW,0.1,0),COLORFFFF00;
{操作提示}
均价:=(3*C+H+L+O)/6;
VAR1:=(8*均价+7*REF(均价,1)+6*REF(均价,2)+5*REF(均价,3)+
4*REF(均价,4)+3*REF(均价,5)+2*REF(均价,6)+REF(均价,8))/36;
VAR2:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;
SZ1:=REF(VAR1,1)=REF(VAR2,1) AND VAR1>VAR2 AND CLOSE>VAR1;
SZ2:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>REF(VAR2,1)
AND H/VAR1<1.1 AND L>VAR2 AND CLOSE>VAR1;
SZ3:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>=REF(VAR2,1) AND H/VAR1>1.1;
SZ4:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>REF(VAR2,1)
AND CLOSE>VAR2 AND CLOSE<VAR1;
SZ5:=(VAR1>VAR2 AND VAR2>REF(VAR2,1) AND VAR1<>REF(VAR1,1)
AND CLOSE<VAR2) OR (VAR1>VAR2 AND VAR1<REF(VAR1,1)
AND VAR2<REF(VAR2,1) AND CLOSE<VAR2);;
SZ6:=REF(VAR1,1)>REF(VAR2,1) AND VAR1=VAR2 AND CLOSE<VAR2;
XD1:=VAR1=VAR2 AND CLOSE<VAR2 OR (VAR1<REF(VAR1,1) AND VAR2<REF(VAR2,1)
AND REF(VAR1,1)=REF(VAR2,1) AND CLOSE<VAR2);
XD2:=VAR1=VAR2 AND CLOSE>VAR1;
SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
量能饱和度:=IF(SAT>1,1,SAT)*100;
IF BARSTATUS=2 AND SZ1 THEN BEGIN
DRAWTEXTABS(40,48,'操作提示:调整结束短线介入'),COLORRED,linethick3;
END
ELSE
IF BARSTATUS=2 AND SZ2 THEN BEGIN
DRAWTEXTABS(40,48,'操作提示:上升通道走势良好'),COLORRED,linethick3;
END
ELSE
IF BARSTATUS=2 AND SZ3 THEN BEGIN
DRAWTEXTABS(40,48,'操作提示:股价偏离注意调整'),COLORRED,linethick3;
END
ELSE
IF BARSTATUS=2 AND SZ4 THEN BEGIN
DRAWTEXTABS(40,48,'操作提示:上升通道调整洗盘'),COLORGREEN,linethick3;
END
ELSE
IF BARSTATUS=2 AND SZ5 THEN BEGIN
DRAWTEXTABS(40,48,'操作提示:转向特征注意离场'),COLORGREEN,linethick3;
END
ELSE
IF BARSTATUS=2 AND SZ6 THEN BEGIN
DRAWTEXTABS(40,48,'操作提示:通道改变坚决离场'),COLORGREEN,linethick3;
END
ELSE
IF BARSTATUS=2 AND XD1 THEN BEGIN
DRAWTEXTABS(40,48,'操作提示:下跌通道只宜观望'),COLORGREEN,linethick3;
END
ELSE
IF BARSTATUS=2 AND XD2 THEN BEGIN
DRAWTEXTABS(40,48,'操作提示:短期底部准备进入'),COLORYELLOW,linethick3;
END;
 


解答如下:
DA:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,4))/4;
DB:=(EMA(C,10)+EMA(C,20)+EMA(C,40)+EMA(C,80))/4;
CROSS(DA-DB,0);
 

 

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

冷暖气带选股公式

  • 下载资源所需积分

    0

  • 当前拥有积分

    0

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

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