您当前的位置:股票 > 财经资讯 > 财经频道

通达信CCI波段买卖指标公式,通达信上下楼买卖指标公式

2024-06-15 23:17:50 来源: 作者: admin888
分享到
关注牛市通网在线:
  • 扫描二维码

    关注√

    牛市通网微信

在线咨询:
  • 扫描或点击关注牛市通网在线客服

通达信CCI波段买卖指标公式,通达信上下楼买卖指标公式

通达信CCI波段买卖指标公式

M:=14;Q:=6;N:=20;N1:=5;N2:=5;

MM:=IF(PERIOD=1,M,IF(PERIOD=2,M,IF(PERIOD=3,M,IF(PERIOD=4,M,IF(PERIOD=5,M,IF(PERIOD=6,Q,IF(PERIOD=7,Q,IF(PERIOD=8,Q,0))))))));

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

cci:=(AVG-ma(AVG,MM))/(0.015*AVEDEV(AVG,MM));

dif:CCI-REF(CCI,1),LINETHICK0,COLOR00FF00;

前差值:Abs(REF(CCI,1)-REF(CCI,2)),NODRAW;

差值20:IF(DIF>15 AND DIF<120,DIF,0),NODRAW,COLOR0000FF;

PI:=ATAN(1)*4;

PERIODS:=30;

HIGHHIGH:=HHV(HIGH,PERIODS);

LOWLOW:=LLV(LOW,PERIODS);

RANGEV:=25/(HIGHHIGH-LOWLOW)*LOWLOW;

ema34:=EMA(CLOSE,34);

X1_EMA34:=0;

X2_EMA34:=1;

Y1_EMA34:=0;

Y2_EMA34:=(REF(EMA34,1)-EMA34)/AVG*RANGEV;

C_EMA34:=SQRT((X2_EMA34-X1_EMA34)*(X2_EMA34-X1_EMA34)+(Y2_EMA34-Y1_EMA34)*(Y2_EMA34-Y1_EMA34));

ANGLE_EMA34V:=ROUND(ABS(180*acOS((X2_EMA34-X1_EMA34)/C_EMA34)/PI));

ANGLE_EMA34:=IF(Y2_EMA34>0,-ANGLE_EMA34V,ANGLE_EMA34V);

LSMA:=FORCAst(CLOSE,25);

X1_LSMA25:=0;

X2_LSMA25:=1;

Y1_LSMA25:=0;

Y2_LSMA25:=(REF(LSMA25,1)-LSMA25)/AVG*RANGEV;

C_LSMA25:=SQRT((X2_LSMA25-X1_LSMA25)*(X2_LSMA25-X1_LSMA25)+(Y2_LSMA25-Y1_LSMA25)*(Y2_LSMA25-Y1_LSMA25));

ANGLE_LSMA25V:=ROUND(ABS(180*ACOS((X2_LSMA25-X1_LSMA25)/C_LSMA25)/PI));

ANGLE_LSMA25:=IF(Y2_LSMA25>0,-ANGLE_LSMA25V,ANGLE_LSMA25V);

ARRAY:=CCI;

HIGHBARS:=BArslAST(NOT(ARRAY>0));

LOWBARS:=BARSLAST(NOT(ARRAY<0));

UPCONDITION:=BARSLAST(HIGHBARS>=6 AND SUM(ARRAY>100,5)>0);

DNCONDITION:=BARSLAST(LOWBARS>=6 AND SUM(ARRAY<-100,5)>0);

UPTREND:=ARRAY>0 AND UPCONDITION;

DNTREND:=ARRAY<0 AND UPCONDITION>DNCONDITION;

TRTREND:=HIGHBARS>=5 AND NOT(UPTREND) OR LOWBARS>=5 AND NOT(DNTREND);

STICKLINE(UPTREND,0,CCI,1,0),COLORFF0000;

STICKLINE(DNTREND,0,CCI,1,0),COLOR0000FF;

STICKLINE(TRTREND,0,CCI,1,0),COLOR00FFFF;

STICKLINE(NOT(UPTREND OR DNTREND OR TRTREND),0,CCI,1,0),COLOR808080;

WCCI:CCI,LINETHICK2,COLORBLACK;

TCCI:(AVG-MA(AVG,N))/(0.015*AVEDEV(AVG,N)),COLOR7A56B7,LINETHICK1;

STICKLINE(ANGLE_EMA34>=5,-301,-321,2,0),COLORD0E040;

STICKLINE(ANGLE_EMA34<5 AND ANGLE_EMA34>=3.57,-301,-321,2,0),COLOR006400;

STICKLINE(ANGLE_EMA34<3.57 AND ANGLE_EMA34>=2.14,-301,-321,2,0),COLOR98FB98;

STICKLINE(ANGLE_EMA34<2.14 AND ANGLE_EMA34>=0.71,-301,-321,2,0),COLOR00FF00;

STICKLINE(ANGLE_EMA34<0.71 AND ANGLE_EMA34>-0.71,-301,-321,2,0),COLOR00FFFF;

STICKLINE(ANGLE_EMA34<=-0.71 AND ANGLE_EMA34>-2.14,-301,-321,2,0),COLORE0FFFF;

STICKLINE(ANGLE_EMA34<=-2.14 AND ANGLE_EMA34>-3.57,-301,-321,2,0),COLOR00A5FF;

STICKLINE(ANGLE_EMA34<=-3.57 AND ANGLE_EMA34>-5,-301,-321,2,0),COLOR0000FF;

STICKLINE(ANGLE_EMA34<=-5,-301,-321,2,0),COLOR00008B;

SW:=IF(ABS(ANGLE_EMA34)>=15 AND ABS(ANGLE_EMA34+ANGLE_LSMA25)>=50,IF(ANGLE_LSMA25>0,2,-2),IF(ABS(ANGLE_EMA34)>=0 AND (ANGLE_EMA34>=0 AND ANGLE_LSMA25>=0 OR ANGLE_EMA34<=0 AND ANGLE_LSMA25<=0) AND ABS(ANGLE_EMA34+ANGLE_LSMA25)>=5,IF(ANGLE_LSMA25>0,1,-1),0));

STICKLINE(ABS(SW)=2,301,321,2,0),COLOR00FF00;

STICKLINE(ABS(SW)=1,301,321,2,0),COLOR00FFFF;

STICKLINE(ABS(SW)=0,301,321,2,0),COLOR0000FF;

通达信上下楼买卖指标公式

快:COUNT(CLOSE>REF(CLOSE,2),4)/4*100,COLOR00FF00;

慢:COUNT(CLOSE>REF(CLOSE,2),6)/6*100,COLORFFFFFF;

备钱:IF(快=0 AND 慢>20,20,0),COLORFF00FF;

低买:IF(快=0 AND BETWEEN(慢,1,20),50,0),COLORRED;

关注:IF(快=0 AND 慢=0,10,0),COLORFF8800;

JC:=(crOSS(快,1) AND 慢<=40) OR (CROSS(慢,20) AND 快<=50);

进场:IF(FILTER(JC,3),20,0),COLOR00FFFF,LINETHICK0;

stICKLINE(进场,0,100,0,-1),COLOR00FFFF;

QSXS:=快>=50 AND 快>=REF(快,1) AND 慢>=REF(慢,1);

上楼:IF(QSXS,1,0),COLOR0000FF,NODRAW;

风险:IF(快=100 AND 慢>=80,90,100),COLORFF00FF;

FXSJ:=BArsl(风险=90);

快跑:IF(FXSJ=1,1,0),COLORFFFF00,POINTDOT,NODRAW;

QSXX:=快<=REF(快,1) AND 慢<=REF(慢,1);

下楼:IF(FXSJ>=2 AND COUNT(QSXX,FXSJ)=FXSJ,1,0),COLOR00FFFF,NODRAW;

{以下设置副图显示方式}A1:=IF(上楼,慢,快);

A2:=IF(下楼,慢,快);

DRAWBAND(快,RGB(255,0,0),A1,RGB(0,255,0));

DRAWBAND(快,RGB(255,255,255),A2,RGB(255,255,0));

DRAWTEXT(CROSS(备钱,1),30,'备钱'),COLORFF00FF;

DRAWTEXT(CROSS(低买,1),60,'低买'),COLORFFFFFF;

DRAWTEXT(CROSS(关注,1),20,'关注'),COLORFFFFFF;

DRAWTEXT(CROSS(LAST(关注,5,1),0.8),20,'地下室'),COLOR00FF00;

DRAWTEXT(FXSJ=1,100,'跑'),COLORFFFFFF;

DRAWICON(风险=90,110,13);

牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。

责任编辑:admin888 标签:通达信CCI波段买卖指标公式,通达信上下楼买卖指标公式
广告

热门搜索

相关文章

广告
牛市通网 |财经频道

通达信CCI波段买卖指标公式,通达信上下楼买卖指标公式

admin888

|

通达信CCI波段买卖指标公式,通达信上下楼买卖指标公式

通达信CCI波段买卖指标公式

M:=14;Q:=6;N:=20;N1:=5;N2:=5;

MM:=IF(PERIOD=1,M,IF(PERIOD=2,M,IF(PERIOD=3,M,IF(PERIOD=4,M,IF(PERIOD=5,M,IF(PERIOD=6,Q,IF(PERIOD=7,Q,IF(PERIOD=8,Q,0))))))));

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

cci:=(AVG-ma(AVG,MM))/(0.015*AVEDEV(AVG,MM));

dif:CCI-REF(CCI,1),LINETHICK0,COLOR00FF00;

前差值:Abs(REF(CCI,1)-REF(CCI,2)),NODRAW;

差值20:IF(DIF>15 AND DIF<120,DIF,0),NODRAW,COLOR0000FF;

PI:=ATAN(1)*4;

PERIODS:=30;

HIGHHIGH:=HHV(HIGH,PERIODS);

LOWLOW:=LLV(LOW,PERIODS);

RANGEV:=25/(HIGHHIGH-LOWLOW)*LOWLOW;

ema34:=EMA(CLOSE,34);

X1_EMA34:=0;

X2_EMA34:=1;

Y1_EMA34:=0;

Y2_EMA34:=(REF(EMA34,1)-EMA34)/AVG*RANGEV;

C_EMA34:=SQRT((X2_EMA34-X1_EMA34)*(X2_EMA34-X1_EMA34)+(Y2_EMA34-Y1_EMA34)*(Y2_EMA34-Y1_EMA34));

ANGLE_EMA34V:=ROUND(ABS(180*acOS((X2_EMA34-X1_EMA34)/C_EMA34)/PI));

ANGLE_EMA34:=IF(Y2_EMA34>0,-ANGLE_EMA34V,ANGLE_EMA34V);

LSMA:=FORCAst(CLOSE,25);

X1_LSMA25:=0;

X2_LSMA25:=1;

Y1_LSMA25:=0;

Y2_LSMA25:=(REF(LSMA25,1)-LSMA25)/AVG*RANGEV;

C_LSMA25:=SQRT((X2_LSMA25-X1_LSMA25)*(X2_LSMA25-X1_LSMA25)+(Y2_LSMA25-Y1_LSMA25)*(Y2_LSMA25-Y1_LSMA25));

ANGLE_LSMA25V:=ROUND(ABS(180*ACOS((X2_LSMA25-X1_LSMA25)/C_LSMA25)/PI));

ANGLE_LSMA25:=IF(Y2_LSMA25>0,-ANGLE_LSMA25V,ANGLE_LSMA25V);

ARRAY:=CCI;

HIGHBARS:=BArslAST(NOT(ARRAY>0));

LOWBARS:=BARSLAST(NOT(ARRAY<0));

UPCONDITION:=BARSLAST(HIGHBARS>=6 AND SUM(ARRAY>100,5)>0);

DNCONDITION:=BARSLAST(LOWBARS>=6 AND SUM(ARRAY<-100,5)>0);

UPTREND:=ARRAY>0 AND UPCONDITION;

DNTREND:=ARRAY<0 AND UPCONDITION>DNCONDITION;

TRTREND:=HIGHBARS>=5 AND NOT(UPTREND) OR LOWBARS>=5 AND NOT(DNTREND);

STICKLINE(UPTREND,0,CCI,1,0),COLORFF0000;

STICKLINE(DNTREND,0,CCI,1,0),COLOR0000FF;

STICKLINE(TRTREND,0,CCI,1,0),COLOR00FFFF;

STICKLINE(NOT(UPTREND OR DNTREND OR TRTREND),0,CCI,1,0),COLOR808080;

WCCI:CCI,LINETHICK2,COLORBLACK;

TCCI:(AVG-MA(AVG,N))/(0.015*AVEDEV(AVG,N)),COLOR7A56B7,LINETHICK1;

STICKLINE(ANGLE_EMA34>=5,-301,-321,2,0),COLORD0E040;

STICKLINE(ANGLE_EMA34<5 AND ANGLE_EMA34>=3.57,-301,-321,2,0),COLOR006400;

STICKLINE(ANGLE_EMA34<3.57 AND ANGLE_EMA34>=2.14,-301,-321,2,0),COLOR98FB98;

STICKLINE(ANGLE_EMA34<2.14 AND ANGLE_EMA34>=0.71,-301,-321,2,0),COLOR00FF00;

STICKLINE(ANGLE_EMA34<0.71 AND ANGLE_EMA34>-0.71,-301,-321,2,0),COLOR00FFFF;

STICKLINE(ANGLE_EMA34<=-0.71 AND ANGLE_EMA34>-2.14,-301,-321,2,0),COLORE0FFFF;

STICKLINE(ANGLE_EMA34<=-2.14 AND ANGLE_EMA34>-3.57,-301,-321,2,0),COLOR00A5FF;

STICKLINE(ANGLE_EMA34<=-3.57 AND ANGLE_EMA34>-5,-301,-321,2,0),COLOR0000FF;

STICKLINE(ANGLE_EMA34<=-5,-301,-321,2,0),COLOR00008B;

SW:=IF(ABS(ANGLE_EMA34)>=15 AND ABS(ANGLE_EMA34+ANGLE_LSMA25)>=50,IF(ANGLE_LSMA25>0,2,-2),IF(ABS(ANGLE_EMA34)>=0 AND (ANGLE_EMA34>=0 AND ANGLE_LSMA25>=0 OR ANGLE_EMA34<=0 AND ANGLE_LSMA25<=0) AND ABS(ANGLE_EMA34+ANGLE_LSMA25)>=5,IF(ANGLE_LSMA25>0,1,-1),0));

STICKLINE(ABS(SW)=2,301,321,2,0),COLOR00FF00;

STICKLINE(ABS(SW)=1,301,321,2,0),COLOR00FFFF;

STICKLINE(ABS(SW)=0,301,321,2,0),COLOR0000FF;

通达信上下楼买卖指标公式

快:COUNT(CLOSE>REF(CLOSE,2),4)/4*100,COLOR00FF00;

慢:COUNT(CLOSE>REF(CLOSE,2),6)/6*100,COLORFFFFFF;

备钱:IF(快=0 AND 慢>20,20,0),COLORFF00FF;

低买:IF(快=0 AND BETWEEN(慢,1,20),50,0),COLORRED;

关注:IF(快=0 AND 慢=0,10,0),COLORFF8800;

JC:=(crOSS(快,1) AND 慢<=40) OR (CROSS(慢,20) AND 快<=50);

进场:IF(FILTER(JC,3),20,0),COLOR00FFFF,LINETHICK0;

stICKLINE(进场,0,100,0,-1),COLOR00FFFF;

QSXS:=快>=50 AND 快>=REF(快,1) AND 慢>=REF(慢,1);

上楼:IF(QSXS,1,0),COLOR0000FF,NODRAW;

风险:IF(快=100 AND 慢>=80,90,100),COLORFF00FF;

FXSJ:=BArsl(风险=90);

快跑:IF(FXSJ=1,1,0),COLORFFFF00,POINTDOT,NODRAW;

QSXX:=快<=REF(快,1) AND 慢<=REF(慢,1);

下楼:IF(FXSJ>=2 AND COUNT(QSXX,FXSJ)=FXSJ,1,0),COLOR00FFFF,NODRAW;

{以下设置副图显示方式}A1:=IF(上楼,慢,快);

A2:=IF(下楼,慢,快);

DRAWBAND(快,RGB(255,0,0),A1,RGB(0,255,0));

DRAWBAND(快,RGB(255,255,255),A2,RGB(255,255,0));

DRAWTEXT(CROSS(备钱,1),30,'备钱'),COLORFF00FF;

DRAWTEXT(CROSS(低买,1),60,'低买'),COLORFFFFFF;

DRAWTEXT(CROSS(关注,1),20,'关注'),COLORFFFFFF;

DRAWTEXT(CROSS(LAST(关注,5,1),0.8),20,'地下室'),COLOR00FF00;

DRAWTEXT(FXSJ=1,100,'跑'),COLORFFFFFF;

DRAWICON(风险=90,110,13);

牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。


财经频道