返回顶部
  • 发帖数512
  • 粉丝0

此人很懒,什么也没有留下

  • 最佳新人

  • 活跃会员

    经常参与各类话题的讨论,发帖内容较有主见
  • 热心会员

    经常帮助其他会员答疑
  • 终身成就

    为论坛做出突出贡献的会员
  • 爆料达人

    发帖爆料达人
开启左侧

[技巧] 主力资金窗主图指标公式源码

[复制链接]
股票大数据 首发之星 显示全部楼层 发表于 2022-4-3 23:02:22 |阅读模式 打印 上一主题 下一主题
灵通疑主力资金窗主图目标公式源码(无源码的请下载附件导进)

MA5:MA(CLOSE,5),LINETHICK1,COLORGREEN;
MA10:MA(CLOSE,10),LINETHICK1,COLORRED;
现价:CLOSE,COLORWHITE,NODRAW;
_10日涨跌%: (C-REF(CLOSE,10))/REF(CLOSE,10)*100,COLORGREEN,NODRAW;
给:=EMA(C,2),COLORRED;
力:=EMA(SLOPE(C,9)*20+C,37);
购:=CROSS(给,力);
卖:=CROSS(力,给);
DRAWICON(购,L*0.98,1);
DRAWTEXT(购,L*0.96,'购进'),COLORRED;
DRAWICON(卖,H*1.02,2);
DRAWTEXT(卖,H*1.03,'卖出'),COLORBLUE;
STICKLINE(给>=力,LOW,HIGH,0.01,0),COLOR0000DD;
STICKLINE(给>=力,CLOSE,OPEN,2,1),COLORRED;
STICKLINE(给>=力,LOW,HIGH,0.01,0),COLOR0000DD;
STICKLINE(给>=力,CLOSE,OPEN,2,1),COLORRED;
STICKLINE(给<力,LOW,HIGH,0.01,0),COLORFFDD00;
STICKLINE(给<力,CLOSE,OPEN,2,0),COLORFFFF00;
STICKLINE(CROSS(给,力),OPEN,CLOSE,2.5,0),COLORYELLOW;
STICKLINE(CROSS(力,给),OPEN,CLOSE,2.5,0),COLORBLUE;
MA60:=MA(CLOSE,60),COLORMAGENTA,LINETHICK4;
MA200:=MA(CLOSE,200),COLORFF0000,LINETHICK4;
DRAWICON(CROSS(MA60,MA200),MA200,1);
DRAWICON(CROSS(MA200,MA60),MA200,2);
主力建仓:=MA60>MA200 AND CROSS(MA60,MA200);
主力浑仓:=MA60<MA200 AND CROSS(MA200,MA60);
DRAWTEXT(主力建仓,MA60-0.30,'主力建仓'),COLOR0000FF;
DRAWTEXT(主力浑仓,MA200+0.30,'主力浑仓'),COLOR00FF00;
VAR33:=(CLOSE*2.5/100+CLOSE);
阻力价:=HHV(HIGH,19),COLORBLUE, LINETHICK3;
DRAWICON(阻力价>REF(阻力价,1)AND CROSS(阻力价,VAR33)AND C<O,H*1.02,6);
DRAWTEXT(阻力价>REF(阻力价,1)AND CROSS(阻力价,VAR33)AND C<O,H,'遁');
VAR110:=(HIGH+LOW+OPEN+2*CLOSE)/5;
VAR2:=REF(VAR110,1);
VAR3:=SMA((CLOSE-VAR2),6,1)/SMA(ABS(CLOSE-VAR2),6,1)*100;
VAR4:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
VAR5:=EMA(0.667*REF(VAR4,1)+0.333*VAR4,5);
VAR6:=IF(VOL>=1.3*MA(VOL,5) AND COUNT(VAR4>=VAR5 AND VAR4<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0);
VAR7:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
VAR8:=SMA(MAX(VAR110-VAR2,0),10,1)/SMA(ABS(VAR110-VAR2),10,1)*100;
VAR9:=IF(COUNT(VAR8<20,5)>=1 AND COUNT(VAR110=LLV(VAR110,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);
DRAWTEXT(FILTER(VAR9 OR VAR6,5),LOW,'留意购进'),COLORRED;
AAA:=(3*C+H+L+O)/6;
VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;
TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1;
坐桩量:=FILTER(TJ1,5);
TJ2:=IF(BARSLAST(坐桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(坐桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(坐桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));
打破:=TJ2=1;
TJ3:=IF(BARSLAST(坐桩量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(坐桩量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(坐桩量)=3 AND CLOSE>REF(LOW,3),1,0)));
三天法例:=TJ3=1;
建立:=三天法例 AND 打破;
前提建立:=FILTER(建立,3);
DRAWTEXT(前提建立,L*0.99,'建立'),COLORRED;
AA:=CROSS(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,3,1),SMA(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,3,1),3,1)) AND SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,3,1)<20;
DRAWICON(AA,LOW*0.96,1);
DRAWTEXT(AA,L,'主力旌旗灯号'),COLORMAGENTA;
后金窗:COUNT(L=LLV(L,20),20)=1 AND L=LLV(L,20),NODRAW,COLORFF00FF;
DRAWICON(后金窗,LOW*0.98, 1);
DRAWTEXT(后金窗>0, LOW*0.95,'后金窗'),COLORYELLOW;
VAR26:=EMA(CLOSE,2)-EMA(CLOSE,150);
VAR27:=EMA(VAR26,100);
VAR28:=2*(VAR26-VAR27);
VAR29:=POW(VAR28,3)*0.1+POW(VAR28,1);
VAR2A:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
VAR2B:=EMA(VAR2A*0.97,3);
VAR2C:=(HIGH+LOW+CLOSE)/3;
VAR2D:=(VAR2C-MA(VAR2C,14))/(0.015*AVEDEV(VAR2C,14));
龙仰面:=IF( VAR28>0.1,VAR29,0)*5,COLORCYAN;
护盘: CROSS(VAR28,1),COLORFF9900,NODRAW;
DRAWICON(护盘,LOW*0.98,1);
DRAWTEXT(护盘>0, LOW*0.95,'护盘'),COLORMAGENTA;
DIF:=EMA(CLOSE,6)-EMA(CLOSE,16);
DEA:=EMA(DIF,9);
资金窗:CROSS(DIF,DEA) AND DEA>-0.05,COLORFFFFFF,NODRAW;
DRAWICON(资金窗,LOW*0.98,1);
DRAWTEXT(资金窗>0, LOW*0.95,'资金窗'),COLORYELLOW;





上一篇:资金博弈成交量副图指标公式副图源码
下一篇:波段双标见底副图/选股预警源码
您需要登录后才可以回帖 登录 | 立即注册 用百度帐号登录

本版积分规则

首发之家社区成立于2011年3月,内容涉及3C家电、数码生活智能电视,股票软件,4K,体育,软件,教育,游戏等资源指标公式论坛。
  • 官方手机版

  • 抖音号

  • 商务合作

  • Powered by Discuz! X3.4 | Copyright © 2011-2021, Tencent Cloud. | 首发之家社区
  • |网站地图 | mp4d@qq.com|小黑屋|手机版|