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

飞狐自用主图改进版

发布时间:2016/1/23 8:03:53  浏览次数:

 RSV1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;

RSV2:=(CLOSE-LLV(LOW,M))/(HHV(HIGH,M)-LLV(LOW,M))*100;

J1:=3*SMA(RSV1,P,1)-2*SMA(SMA(RSV1,P,1),P,1);

J2:=3*SMA(RSV2,P,1)-2*SMA(SMA(RSV2,P,1),P,1);

支撑位:IF(CROSS(J1,J2),LOW,REF(LOW,BARSLAST(CROSS(J1,J2)))),LINETHICK3,colorFF;

压力位:IF(CROSS(J2,J1),HIGH,REF(HIGH,BARSLAST(CROSS(J2,J1)))),LINETHICK3,colorFF0000;

YC_VAR1:=EMA(CLOSE,5);

YC_VAR2:=EMA(CLOSE,10);

YC_VAR3:=EMA(CLOSE,20);

YC_VAR4:=EMA(CLOSE,30);

YC_VAR5:=(YC_VAR1+YC_VAR2+YC_VAR3+YC_VAR4)/4;

YC_VAR6:=(YC_VAR5-REF(YC_VAR5,15))/REF(YC_VAR5,15)*100;

YC_买进:=((CLOSE-REF(MA(CLOSE,6),1))/6+MA(CLOSE,6))*1.004;

买进条件:=CROSS(CLOSE,YC_买进) AND YC_买进>REF(YC_买进,1);

YC_加仓:=((CLOSE-REF(MA(CLOSE,18),1))/18+MA(CLOSE,18))*1.004;

加仓条件:=CROSS(CLOSE,YC_加仓) AND YC_加仓>REF(YC_加仓,1);

YG_回挡:=SMA(HIGH,21,2)*1.05;

YG_卖出:=CLOSE<REF(CLOSE,1) AND HIGH>YG_回挡 AND CLOSE<YG_回挡;

◆满仓:买进条件 AND 加仓条件,LINETHICK0;

DRAWTEXT(加仓条件 AND 买进条件<>1,LOW/1.01,'加\n仓'),ALIGN0;

DRAWTEXT(加仓条件 AND 买进条件,LOW/1.01,'◆\n满\n仓'),ALIGN0;

MA20:MA(CLOSE,20),LINETHICK0;

TJ1:=CLOSE>=MA20;

TJ2:=CLOSE<MA20;

STICKLINE(TJ1,LOW,HIGH,0,0),color1122FF;

STICKLINE(TJ1,OPEN,CLOSE,7,0),color1122FF;

STICKLINE(TJ2,LOW,HIGH,0,0),color22FF55;

STICKLINE(TJ2,OPEN,CLOSE,7,0),color22FF55;

A1:=AMOUNT/VOL;

A2:=LOW<A1*0.9;

A3:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>1.2;

A4:=LOW<MA(CLOSE,5)*0.921;

A5:=VOL<MA(VOL,5)*1.5;

FF1:A2 AND A3 AND A4 AND A5,LINETHICK0;

DRAWTEXT(FF1,LOW*0.95,'底'),PXUP8,colorFF00;

STICKLINE(FF1,HIGH,LOW,0.5,0),colorFF00;

STICKLINE(FF1,OPEN,CLOSE,9,6),LINETHICK2,colorFF00;

DRAWICON(FF1,LOW,4),PXUP6;

A0:=BARSCOUNT(CLOSE);

A3:=SYSPARAM(3);

A2:=SYSPARAM(2);

A4:=SYSPARAM(4);

A5:=SYSPARAM(5);

NN0:=A3-A2;

NN:=A0-A2;

HH1:=(A4-A5)/8;

HH2:=HH1/4;

LL1:=LLV(LOW,NN0);

LL2:=LL1[A3];

Y0:=A0>=A2;

VV0:=IF(Y0=1 AND SYSPARAM(1)>=A0,VOL,0);

C1:=IF(BETWEEN(CLOSE,A4-0*HH1,A4-1*HH1),VV0,0);

C2:=IF(BETWEEN(CLOSE,A4-1*HH1,A4-2*HH1),VV0,0);

C3:=IF(BETWEEN(CLOSE,A4-2*HH1,A4-3*HH1),VV0,0);

C4:=IF(BETWEEN(CLOSE,A4-3*HH1,A4-4*HH1),VV0,0);

C5:=IF(BETWEEN(CLOSE,A4-4*HH1,A4-5*HH1),VV0,0);

C6:=IF(BETWEEN(CLOSE,A4-5*HH1,A4-6*HH1),VV0,0);

C7:=IF(BETWEEN(CLOSE,A4-6*HH1,A4-7*HH1),VV0,0);

C8:=IF(BETWEEN(CLOSE,A4-7*HH1,A4-8*HH1),VV0,0);

C9:=IF(BETWEEN(CLOSE,A4-8*HH1,A4-9*HH1),VV0,0);

C10:=IF(BETWEEN(CLOSE,A4-9*HH1,A4-10*HH1),VV0,0);

V1:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C1,NN0),0),2));

V2:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C2,NN0),0),2));

V3:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C3,NN0),0),2));

V4:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C4,NN0),0),2));

V5:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C5,NN0),0),2));

V6:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C6,NN0),0),2));

V7:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C7,NN0),0),2));

V8:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C8,NN0),0),2));

V9:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C9,NN0),0),2));

V10:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C10,NN0),0),2));

AV0:=MAX(V1,MAX(V2,MAX(V3,MAX(V4,MAX(V5,MAX(V6,MAX(V7,MAX(V8,MAX(V9,V10)))))))));

X1:=V1/AV0>=NN/NN0 AND NN>=0;

X3:=V3/AV0>=NN/NN0 AND NN>=0;

X5:=V5/AV0>=NN/NN0 AND NN>=0;

X7:=V7/AV0>=NN/NN0 AND NN>=0;

FILLRGN(V1/AV0>=NN/NN0 AND NN>=0,A4-0*HH1,A4-1*HH1+HH1*0.5),color666666;

FILLRGN(V2/AV0>=NN/NN0 AND NN>=0,A4-1*HH1,A4-2*HH1+HH1*0.5),color666666;

FILLRGN(V3/AV0>=NN/NN0 AND NN>=0,A4-2*HH1,A4-3*HH1+HH1*0.5),color666666;

FILLRGN(V4/AV0>=NN/NN0 AND NN>=0,A4-3*HH1,A4-4*HH1+HH1*0.5),color666666;

FILLRGN(V5/AV0>=NN/NN0 AND NN>=0,A4-4*HH1,A4-5*HH1+HH1*0.5),color666666;

FILLRGN(V6/AV0>=NN/NN0 AND NN>=0,A4-5*HH1,A4-6*HH1+HH1*0.5),color666666;

FILLRGN(V7/AV0>=NN/NN0 AND NN>=0,A4-6*HH1,A4-7*HH1+HH1*0.5),color666666;

FILLRGN(V8/AV0>=NN/NN0 AND NN>=0,A4-7*HH1,A4-8*HH1+HH1*0.5),color666666;

A:=BARSCOUNT(CLOSE);

AH:=HHV(HIGH,72);

AL:=LLV(LOW,72);

A0:=(AH-AL)/21;

B1:=LOW-A0;

STICKLINE((A+0)/13=FLOOR((A+0)/13),B1,B1-3*A0,1,0);

DRAWTEXT((A+0)/13=FLOOR((A+0)/13),B1-2.5*A0,'变'),colorFF0000;

X1:=(CLOSE+LOW+HIGH)/3;

X2:=EMA(X1,6);

X3:=EMA(X2,5);

GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5));

GR2:=EMA(X1,13)>EMA(X1,21) AND EMA(X1,21)>EMA(X1,34) AND EMA(X1,13)>REF(EMA(X1,13),1);

GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND HIGH=HHV(HIGH,GR1),GR1);

GR4:=HIGH=HHV(HIGH,GR1);

GR5:="MACD.MACD"(12,26,9)<REF("MACD.MACD"(12,26,9),1);

GR6:=GR2 AND GR3 AND GR4;

GR7:=GR2 AND GR3 AND GR4 AND GR5;

GR8:=GR6 AND GR7;

LC:=REF(CLOSE,1);

RSI6:=(SMA(MAX(CLOSE-LC,0),6,1))/(SMA(ABS(CLOSE-LC),6,1))*100;

BIAS5:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;

换手:=100*VOL/CAPITAL;

BB13:=(ATAN(EMA(X1,13)-REF(EMA(X1,13),1)))*3.1416*10;

EMA8:=EMA(CLOSE,8);

CC:=(HIGH-CLOSE)/(CLOSE-OPEN)<0.33;

DD:=CLOSE/REF(CLOSE,1)-1>=0.0502 AND CLOSE>REF(CLOSE,1) AND (OPEN-LOW)/(CLOSE-OPEN)>=1.48 AND LOW<REF(LOW,1) AND LOW<REF(LOW,2);

EE:=CLOSE/REF(CLOSE,1)-1>=0.08;

AA:=VOL>REF(VOL,1)*1.9 AND CLOSE>REF(CLOSE,1) AND CLOSE/REF(CLOSE,1)-1>=0.049 AND CC;

BB:=CLOSE/REF(CLOSE,1)-1>=0.0502 AND CLOSE>REF(CLOSE,1) AND VOL>REF(VOL,1) AND VOL>REF(VOL,1)*2.5 AND CC;

DRAWTEXT(FILTER(AA OR BB OR DD OR EE,34),LOW,'\n异\n动'),colorFFAA66;

注意逃:=IF(CROSS(3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),90),60,0);

DRAWICON(注意逃,HIGH*1.01,5);

DRAWTEXT(注意逃,HIGH*1.01,'逃'),SHIFT1,colorFF00;

VERTLINE(注意逃),colorFF00;

V1:=REF(CLOSE,1);

V2:=(SMA(MAX(CLOSE-V1,0),6,1))/(SMA(ABS(CLOSE-V1),6,1))*100;

DRAWICON(IF(CROSS(81,V2),1,0),HIGH*1.03,10);

逃:=IF(CROSS(3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),90),60,0);

DRAWICON(逃,HIGH*1.01,5);

DRAWTEXT(逃,HIGH*1.01,'逃'),SHIFT2,colorFF00;

VERTLINE(逃),colorFF00;

A:=BARSCOUNT(CLOSE);

AH:=HHV(HIGH,200);

AL:=LLV(LOW,200);

B0:=(AH-AL)/40;

B1:=HIGH+B0;

B2:=LOW-B0;

STICKLINE((A+0)/34=FLOOR((A+0)/34),B2,B2-3*B0,3,0),colorFFFF;

DRAWTEXT((A+0)/34=FLOOR((A+0)/34),B2-2*B0,'\n时\n间\n窗'),colorFFFFFF;

CLOSE>REF(CLOSE,1)*1.096,colorFFFF;

YC:=INDEXC;

YO:=INDEXO;

C1:=EMA(INDEXC,250)/EMA(CLOSE,250);

TJ1:=IF(BARSTATUS=1,CLOSE,REF(CLOSE,BARSLAST(BARSTATUS=1)));

TJ2:=IF(BARSTATUS=1,YC/C1,REF(YC/C1,BARSLAST(BARSTATUS=1)));

X1:=TJ1-TJ2;

D0:=INDEXO/C1;

DC:=INDEXC/C1;

DH:=INDEXH/C1;

DL:=INDEXL/C1;

TJG:=CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>REF(CLOSE,1);

TJD:=YC>YO OR YC=YO AND YC>REF(YC,1);

大盘:STICKLINE(TJD,DH+X1,DL+X1,0,0),colorFF00FF;

STICKLINE(TJD,DC+X1,D0+X1,5,0),colorFF00FF;

STICKLINE(NOT(TJD),DL+X1,DH+X1,0,0),colorFF00;

STICKLINE(NOT(TJD),DC+X1,D0+X1,5,0),colorFF00;

MA5:=MA(CLOSE,5);

MA10:=MA(CLOSE,10);

MA30:=MA(CLOSE,30);

FA:=BARSLAST(CROSS(MA10,MA5)) AND CROSS(MA5,MA10);

FB:=FA AND MA5>MA30 AND MA10>MA30 AND MA10>REF(MA10,1);

STICKLINE(FB,LOW,LOW-0.09,4,0),colorFFFFFF;

DRAWTEXT(FB,LOW-0.13,'牛'),ALIGN0,colorFFFFFF;

ZDF:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;

STICKLINE(ZDF>9.8,OPEN,CLOSE,6,0),colorFFFF;

 

飞狐自用主图改进版

资源下载链接   资源大小:6KB

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