万物公式网是一个专注于股票软件、股票公式资源分享的平台
微信公众号:万物狙击

网站首页 > 飞狐公式 正文

飞狐一年十二倍优化主图指标公式

admin 2023-10-16 22:16:31 飞狐公式 426 ℃

飞狐一年十二倍优化主图指标公式

R:=((CLOSE - LLV(LOW,9))/(HHV(HIGH,9) - LLV(LOW,9)))*(100);

K:=EMA(R,3);

D:=EMA(K,3);

陡峭度:=IF((BARSCOUNT(CLOSE) > 7),(100)*((MA(CLOSE,7))/(LLV(MA(CLOSE,7),7)) - 1),1);

N:=IF((陡峭度 > 0.35),6,65);

VAR1:=((-((100)*(HHV(HIGH,N) - CLOSE))/(HHV(HIGH,N) - LLV(LOW,N))))*((DATE < 20070110));

VAR1A:=((-((100)*(HHV(HIGH,N) - CLOSE))/(HHV(HIGH,N) - LLV(LOW,N))) + 100)*((DATE < 20070110));

获利盘:=(WINNER(CLOSE))*(100);

获利线:=FORCAST(获利盘,7);

线:=(FORCAST(VAR1A,7))*((DATE < 20070110));

满仓:=((线 > REF(线,1)) and (线 < 25) and (COUNT((线 > REF(线,1)),5) = 1) and IF((N = 6),(获利盘 < 60),(获利盘 < 40)) and (COUNT((获利线 > 20),20) > 0));

DRAWTEXT(满仓,LOW*0.98,满仓),ColorRED;

轻仓:=IF((获利盘 >= 60) and (线 > REF(线,1)) and (REF(线,1) < 20) and (线 < 40) and (COUNT((线 > REF(线,1)),5) = 1) and (REF(N,1) = 6),1,0);

DRAWTEXT(轻仓,LOW*0.98,轻仓),ColorYELLOW;

出击:=CROSS(线,20) and IF((COUNT(CROSS(K,D),3) = 1) and (D < 40),1,(线 > D) or (K > D) and (D < 60)) and IF((N = 6),(获利盘 < 70),(获利盘 < 40)) and (COUNT((获利线 > 20),20) > 0);

DRAWTEXT(出击,LOW*0.98,出击),colorMAGENTA;

进一:=CROSS(线,D) and (D > 30) and (D > REF(D,1)) and (D < 80);

进二:=CROSS(线,获利线) and (D > 30) and (获利线 > 25) and (D > REF(D,1));

低进:=IF(进一 and (D > 获利线),进二,进一);

DRAWTEXT(低进,LOW*0.98,低进),ColorRED;

DRAWTEXT(进二,LOW*0.99,高进),ColorGRAY;

狂喜:=(CROSS(VAR1,(-2)));

DRAWTEXT(狂喜,(LOW*0.98),要涨停),coloryellow;

狂喜过望:=((VAR1 = 0));

恐慌:=(VAR1 < -94);

DRAWTEXT(恐慌,(LOW*0.98),恐慌),ColorGREEN;

极度恐慌:=(-40)*(VAR1 = (-100));

DRAWTEXT(极度恐慌,(LOW*0.95),极度恐慌),ColorWHITE;

半仓:=(CROSS(VAR1,(-94)) and (COUNT(恐慌,5) > 0) and (N = REF(N,1)) and IF((N = 6),(获利盘 < 60),(获利盘 < 40)) and (COUNT((获利线 > 20),20) > 0));

DRAWTEXT(半仓,LOW*0.95,半仓),ColorWHITE;

加仓:=(CROSS(K,20) and (COUNT(半仓,5) > 0));

DRAWTEXT(加仓,LOW*0.98,加仓),ColorRED;

背离:=(COUNT(恐慌,2) > 0) and (CLOSE < REF(CLOSE,1)) and (VAR1 > REF(VAR1,1));

DRAWICON(背离,HIGH*1.02,1),ColorGRAY;

MA1:=(LOW+HIGH+CLOSE)/3; {[飞狐]此段可以源码引入}

MA2:= MA(MA1,2);

箱顶:HHV(MA2,13),coloryellow,LINETHICK2;

箱底:LLV(MA2,13),colorwhite,LINETHICK2;

五日均价:MA(C,5),colorred,LINETHICK1;

十日均价:MA(C,10),colorwhite,LINETHICK1;

{-股票公式网站 }

二十日均价:MA(C,20),colorgreen,LINETHICK1;

六十日均价:MA(C,60),coloree66ee,LINETHICK1;

{一品主力}

N1:=6;N2:=12;N3:=26;

MA5:=MA(CLOSE,5),colorfffacd,linethick2;

MA10:=MA(CLOSE,10),colorff3399,linethick2;

MA20:=MA(CLOSE,20),colorff00ff;

MA60:=MA(CLOSE,60),colorf0f000;

MTM:=C-REF(C,1);

DX:=100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1);

ZX:=100*EMA(EMA(MTM,N2),N2)/EMA(EMA(ABS(MTM),N2),N2);

CX:=100*EMA(EMA(MTM,N3),N3)/EMA(EMA(ABS(MTM),N3),N3);

DXGD:=LLV(DX,2)=LLV(DX,5) AND CROSS(DX,MA(DX,2));

ZXGD:=LLV(ZX,2)=LLV(ZX,5) AND CROSS(ZX,MA(ZX,2)) AND DX>ZX;

短买:=IF(DXGD AND BETWEEN(DX,0,60) AND ZX>0,1,0),COLORFFFFFF,POINTDOT;

中买:=IF(ZXGD AND BETWEEN(DX,0,50) AND BETWEEN(CX,0,50),1,0),COLOR00FFFF,POINTDOT;

DTPL:=DX>ZX AND ZX>CX AND CX>0;

QSXS:=DX>REF(DX,1) AND ZX>REF(ZX,1);

TSJC:=CROSS(DX,CX) AND CROSS(ZX,CX);

优选:=IF(CROSS(DTPL,0.8) AND (TSJC OR COUNT(QSXS,3)=3) AND CX<40,1,0),COLOR0000FF,POINTDOT;

短卖:=IF(CROSS(ZX,DX),1,0),colorffff00;

中卖:=IF(CROSS(CX,ZX) AND DX

买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0),COLORRED;

卖:=IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX),1,0),COLOR00FF00;

DRAWTEXT(中买,low*0.98,★/n中/n买),COLOR00FFFF,align0;

DRAWTEXT(filter(买=1,5),low*0.96,㊣/n买),COLORRED,align0;

DRAWTEXT(filter(买=1,5),low*0.98,●),COLORfffacd,align0;

DRAWTEXT(filter(卖=1,5),high*1.05,卖/n●),COLOR00FF00,align0;

DRAWICON(优选,low-0.03,1);

买:LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),COLORRED,linethick0;

飞狐一年十二倍优化主图指标公式选股公式如下:

>股票指标网

更多精彩内容,请关注公众号:实盘操手

其他说明

1、在下载过程遇到问题,请您 联系客服:QQ:2180737354  或  微信:xxs008000(常用)     备用微信:bsqj88886(常用号不能用的情况再加),我们会在第一时间修复和反馈。


2、本站所提供的股票指标等资源请细看说明,适合自己再购买下载,指标不包安装,不懂的人切勿购买,新手勿扰。所有指标仅供参考学习交流,没稳赚的指标,赢亏自负,如果觉着指标好用请支持正版,否则产生的一切后果将由下载用户自行承担,有部分股票指标资源为网上收集或仿制而来,若模板侵犯了您的合法权益,请来联系我们,我们会及时删除,给您带来的不便,我们深表歉意!


⇒⇒⇒点击加入通达信指标公式交流群QQ群