股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[飞狐] 长短布林飞狐公式


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2023-10-25 10:46:00

BOLL2:=MA(CLOSE,20);
UP:BOLL2+2*STD(CLOSE,20),COLOR008888,LINETHICK2;
DW:BOLL2-2*STD(CLOSE,20),COLOR008888,LINETHICK2;
FILLRGN(DW>UP,DW,UP),COLOR9595DA;FILLRGN(DW<UP,DW,UP),COLOR9595DA;//E08794;
FILLRGN(DW>BOLL2,DW,BOLL2),COLORDA9595;FILLRGN(DW<BOLL2,DW,BOLL2),COLORDA9595;
BOLL:=MA(CLOSE,65);
顶:BOLL+2*STD(CLOSE,65),COLOR889900,LINETHICK2;
底:BOLL-2*STD(CLOSE,65),COLOR889900,LINETHICK2;
MA13:MA(CLOSE,13),COLORBLUE,LINETHICK1;
MA34:MA(CLOSE,34),COLORRED;
MA55:MA(CLOSE,55),COLOR008000;
{IF(MA13<REF(MA13,1),MA13,DRAWNULL),COLOR008000,LINETHICK1;};
Y:(MA13-MA55)/MA13,LINETHICK0;
STICKLINE(Y>0.2,MA13,MA55,8,-1),COLORBLUE;
上下差:顶-底,LINETHICK0;
年:=1+(BARSLAST(YEAR<>REF(YEAR,1){ORDATETODAY(DATE)=1}));
天S:=PARTLINE(DATATYPE=7,年);


高1:=HHV(H,DATATYPE=7);
低1:=LLV(L,DATATYPE=7);
高低:(C-低1)/(高1-低1)*100,LINETHICK0,COLORFFFF00;
振幅:(高1-低1)/低1*100,LINETHICK0,COLORBLACK;
天:COST(高1),LINETHICK0,COLORBLUE;
地:COST(低1),LINETHICK0,COLOR00FF00;
强:COST(高1-(高1-低1)*1/3),LINETHICK0,COLORRED;
中:COST(高1-(高1-低1)*1/2),LINETHICK0,COLORBLACK;
弱:COST(高1-(高1-低1)*2/3),LINETHICK0,COLORBLUE;
STICKLINE(C>0,COST(高1-(高1-低1)*1/4),COST(高1-(高1-低1)*1/4),2,0),COLORFF00FF;
STICKLINE(C>0,COST(高1-(高1-低1)*3/4),COST(高1-(高1-低1)*3/4),2,0),COLORFF00FF;
STICKLINE(C>0,天,天,2,0),COLORBLUE;
STICKLINE(C>0,地,地,2,0),COLOR00FF00;
STICKLINE(C>0,强,强,2,0),COLORRED;
STICKLINE(C>0,中,中,2,0),COLORBLACK;
STICKLINE(C>0,弱,弱,2,0),COLORBLUE;
RC:=地;
STICKLINE(c>=o,c,o,9,1),colorred;
STICKLINE(c>=o,l,o,0.3,0),colorred;
STICKLINE(c>=o,c,h,0.3,0),colorred;
STICKLINE(c<o,c,o,9,0),colorffff00;
STICKLINE(c<o,h,l,0.3,0),colorffff00;

【量H】:=IF((AMOUNT/C)/(HHV(AMOUNT,21)/HHV(C,21))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,21)/HHV(C,21))*100);

STICKLINE(【量H】=100ANDC>=O,C,O,8,0),COLOR00C8FE;
STICKLINE(【量H】=100ANDC<O,C,O,8,0),COLOR00C8FE;
ZDF:=(C-REF(C,1))/REF(C,1)*100;
STICKLINE(ZDF>9.8,O,C,2,0),COLORRED;
STICKLINE(ZDF<-9.8,O,C,2,0),COLORBLUE;
Q43:COST(高1-(高1-低1)*1/4),LINETHICK0;
Q41:COST(高1-(高1-低1)*3/4),LINETHICK0;
RD:=Q41;
{MACD}
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26),COLORBLACK;
DIFFA:(RC+DIFF*3);
DEA:=EMA(DIFF,9),COLORMAGENTA;
DEAA:(RC+DEA*3);
{DRAWBAND(DEAA,RGB(164,195,195),DIFFA,RGB(225,195,195));}

FILLRGN(DEAA>DIFFA,DEAA,DIFFA),COLOR5FDC2F;
FILLRGN(DEAA<DIFFA,DEAA,DIFFA),COLOR323298;
MACD:=(DIFF-DEA)*4;
STICKLINE(MACD>0,RC,RC+MACD,1,0),COLORRED;
STICKLINE(MACD<0,RC,RC+MACD,1,1),COLOR008000;
STICKLINE(MACD>0ANDMACD<REF(MACD,1),RC,RC+MACD,1,1),COLORFF00AA;
STICKLINE(MACD<0ANDMACD>REF(MACD,1),RC,RC+MACD,1,0),COLOR889900;
{BIAS}
BIAS1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
BIAS2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
短跌BIAS:IF(BIAS1<=-6,0.6+RC,RC),COLORBLACK,LINETHICK2;
中跌BIAS:IF(BIAS2<=-10,0.6+RC,RC),COLORBLUE,LINETHICK2;
长跌BIAS:IF(BIAS3<=-16,0.6+RC,RC),COLORRED,LINETHICK2;
短涨BIAS:IF(BIAS1>=6,天,天+0.6),COLORBLACK,LINETHICK2;
中涨BIAS:IF(BIAS2>=10,天,天+0.6),COLORBLUE,LINETHICK2;
长涨BIAS:IF(BIAS3>=16,天,天+0.6),COLORRED,LINETHICK2;





回复

举报

QQ|

GMT+8, 2024-11-6 03:01

快速回复 返回顶部 返回列表