同花顺指标代码.docx

上传人:b****4 文档编号:26714066 上传时间:2023-06-22 格式:DOCX 页数:41 大小:30.39KB
下载 相关 举报
同花顺指标代码.docx_第1页
第1页 / 共41页
同花顺指标代码.docx_第2页
第2页 / 共41页
同花顺指标代码.docx_第3页
第3页 / 共41页
同花顺指标代码.docx_第4页
第4页 / 共41页
同花顺指标代码.docx_第5页
第5页 / 共41页
点击查看更多>>
下载资源
资源描述

同花顺指标代码.docx

《同花顺指标代码.docx》由会员分享,可在线阅读,更多相关《同花顺指标代码.docx(41页珍藏版)》请在冰豆网上搜索。

同花顺指标代码.docx

同花顺指标代码

MACD指标

DIFF:

EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);

DEA:

EMA(DIFF,M);

MACD:

2*(DIFF-DEA);

Zero:

0;

KDJ指标

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

a=SMA(RSV,M1,1);

b=SMA(a,M2,1);

e=3*a-2*b;

K:

a;

D:

b;

J:

e;

精准买卖

V1:

=(C*2+H+L)/4*10;

V2:

=EMA(V1,13)-EMA(V1,34);

V3:

=EMA(V2,5);V4:

=2*(V2-V3)*5.5;

主力撤:

IF(V4<=0,V4,0),colorblue;

主力进:

IF(V4>=0,V4,0),COLORFF00FF;

V5:

=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;

V6:

=EMA(3*V5-2*SMA(V5,18,1),5);

V7:

=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;

V8:

=(INDEXC*2+INDEXH+INDEXL)/4;

V9:

=EMA(V8,13)-EMA(V8,34);

VA:

=EMA(V9,3);

VB:

=(V9-VA)/2;

大盘资金进场:

IF(VB>=0,VB,0),colorred;

大盘资金撤走:

IF(VB<=0,VB,0),colorgreen;

V11:

=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);

趋势线:

EMA(V11,3);

V12:

=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;

准备现金:

STICKLINE(趋势线<=13,0,20,5,0),COLORCC9900;

AA:

=(趋势线<=13)ANDFILTER((趋势线<=13),15);

DRAWTEXT(AA,30,'准备现金'),COLORCC9900;

买入股票:

STICKLINE(趋势线<=13ANDV12>13,0,50,5,0),COLOR0099FF;

BB:

=(趋势线<=13ANDV12>13)ANDFILTER((趋势线<=13ANDV12>13),10);

DRAWTEXT(BB,60,'买入股票'),COLOR0099FF;

卖临界:

STICKLINE(趋势线>90AND趋势线>REF(趋势线,1),100,95,15,1),COLORFFFF00;

见顶清仓:

FILTER(趋势线>90AND趋势线

DRAWTEXT(见顶清仓,90,'逃顶'),coloryellow;

CC:

=(趋势线>=90ANDV12)ANDFILTER((趋势线>=90ANDV12),10);

STICKLINE(大盘资金进场AND趋势线<13,0,30,10,0),colorred;

STICKLINE(大盘资金撤走AND趋势线>90,0,30,10,0),colorgreen;

STICKLINE(主力进AND趋势线<13,0,40,10,0),COLORFF00FF;

STICKLINE(主力撤AND趋势线>90,0,40,10,0),colorblue;

短线窥测

VAR1:

=(CLOSE+HIGH+LOW)/3;

VAR2:

=EMA(VAR1,10);

VAR3:

=REF(VAR2,1);

绿探底震仓:

IF(VAR2,10,DRAWNULL),colorgreen,LINETHICK9;

红买:

IF(VAR2>VAR3,10,DRAWNULL),colorred,LINETHICK9;

蓝卖:

IF(VAR2

RSV:

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

上穿买:

SMA(RSV,3,1),colorred;

下穿卖:

SMA(上穿买,3,1),COLORFFFF00;

缠背驰

var1:

=MA(C,p1)-MA(C,P2);

IF((var1>=0),var1,0),STICK,colorred;

IF((var1<0),var1,0),STICK,colorgreen;

正:

=IF((var1>=0),var1,0),colorred;

负:

=IF((var1<0),var1,0),colorgreen;

zheng:

=0;

fu:

=0;

var2:

=0;

i:

=0;

IF(var1>0)THENBEGIN

var2:

=var1;

WHILE(var2>0)DOBEGIN

zheng:

=zheng+var2;

i:

=i+1;

var2:

=REF(var1,i);

IF(i>P3)THENBREAK;

END

END

ELSE

BEGIN

var2:

=var1;

WHILE(var2<0)DO

BEGIN

fu:

=fu+var2;

i:

=i+1;

var2:

=REF(var1,i);

IF(i>P3)THENBREAK;

END

END

{涨势面积和:

zheng;}

涨势平均力度:

zheng*p4/i,coloryellow;

{跌势面积和:

fu;}

跌势平均力度:

fu*p4/i,colorwhite;

中轴:

0;

指点未来

VAR1:

=((CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15)))*(100);

VAR2:

=REVERSE(VAR1);

VAR3:

=SMA(VAR1,5,1);

K:

=SMA(VAR3,3,1);

D:

=SMA(K,3,1);

85,STICK,Linethick7,ColorFF0000;

DRAWTEXT(CROSS(K,D)AND(D<18),15,'买'),Color00FF00;

DRAWTEXT(CROSS(D,K)AND(D>75),85,'卖'),ColorFFFFFF;

STICKLINE((K>=D),K,D,6,0),Color0000A8;

STICKLINE((K>=D),K,D,5,0),Color0000C0;

STICKLINE((K>=D),K,D,4,0),Color0000E0;

STICKLINE((K>=D),K,D,3,0),Color0000F0;

STICKLINE((K>=D),K,D,2,0),Color0000D0;

STICKLINE((K>=D),K,D,1,0),Color8080FF;

STICKLINE((K<=D),K,D,6,0),Color008800;

STICKLINE((K<=D),K,D,5,0),Color009900;

STICKLINE((K<=D),K,D,4,0),Color00AA00;

STICKLINE((K<=D),K,D,3,0),Color00BB00;

STICKLINE((K<=D),K,D,2,0),Color00CC00;

STICKLINE((K<=D),K,D,1,0),Color00DD00;

见好就收波段操作

input:

N(1,110,15);

生命线:

98,linethick1,coloryellow;

生命禁区:

95,linethick1,colorred;

股价泥潭:

20,linethick1,colorblue;

生死线:

50,linethick2,colorwhite;

C0:

=(H+L+C)/3;

a1:

=HHV(C0,n);

a2:

=LLV(C0,n);

a3:

=a1-a2;

a4:

=EMA((C0-a2)/a3,2)*100;

b1:

=HHV(C0,4*n);

b2:

=LLV(C0,4*n);

b3:

=b1-b2;

b4:

=EMA((C0-b2)/b3,2)*100;

C1:

=HHV(C0,16*n);C2:

=LLV(C0,16*n);C3:

=C1-C2;

C4:

=EMA((C0-C2)/C3,2)*100;

短期:

a4,colorgreen,linethick1;

中期:

b4,coloryellow,linethick2;

长期:

C4,colorred,linethick3;

DRAWICON(CROSS(生命禁区,短期)ANDREF(短期,1)>短期,短期*1.1,11);

DRAWTEXT(CROSS(生命禁区,短期)ANDREF(短期,1)>短期,短期*1.1,'←卖'),colorcyan;

DRAWICON(CROSS(生命线,短期)ANDREF(短期,1)>短期,短期*1.2,12);

DRAWTEXT(CROSS(生命线,短期)ANDREF(短期,1)>短期,短期*1.2,'←卖'),colorcyan;

DRAWTEXT(CROSS(短期,生命禁区),85,'警惕!

'),colorwhite;

DRAWTEXT(CROSS(中期,生命禁区),95,'减磅'),ColorFF6800;

DRAWTEXT(CROSS(长期,生命禁区),100,'出局'),colormagenta;

DRAWICON(CROSS(短期,生命禁区),85,4);

DRAWICON(CROSS(中期,生命禁区),95,8);

DRAWICON(CROSS(长期,生命禁区),100,3);

--------------------------------------------------------------------------

吸筹快慢

N:

=9;M1:

=3;M2:

=3;P:

=9;

RSV:

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

K:

=SMA(RSV,M1,1),colorred,LINETHICK2;

D:

=SMA(K,M2,1),COLOR00FF00;

JJ:

=P*(3*D-2*K),COLOR00FF00;

J:

=((3*K)-(2*D));

MAIRU:

=CROSS(K,D)ANDK<20;

MAICHU:

=CROSS(D,K)ANDD>80;

VAR2:

=REF(LOW,1);

VAR3:

=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;

VAR4:

=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);

VAR5:

=LLV(LOW,30);

VAR6:

=HHV(VAR4,30);

VAR7:

=IF(MA(CLOSE,58),1,0);

VAR8:

=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;

VAR9:

=IF(VAR8>100,100,VAR8);

吸筹:

STICKLINE(VAR9>-120,0,VAR9,6,1),COLORF00FF0;

快线:

(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,COLORFF937F;

慢线:

SMA(快线,M1,1),colorred,LINETHICK2;

空:

SMA(慢线,M2,1),COLOR00FF00;

牛股:

IF(BARSLAST(CROSS(慢线,空))

STICKLINE(牛股,0,90,6,1),LINETHICK4,STICK,COLORFF937F;

BB:

=IF(BARSLAST(CROSS(慢线,快线))>=3ANDCROSS(快线,慢线)AND慢线<30,20,0);

买:

STICKLINE(BB,0,20,7,1),coloryellow;

AA:

=IF(BARSLAST(CROSS(快线,慢线))>=4ANDCROSS(慢线,快线)AND快线>50,20,0);

卖:

STICKLINE(AA,80,100,7,1),COLOR00FF00;

DRAWTEXT(CROSS(快线,慢线),快线,'始');

DRAWTEXT(CROSS(慢线,快线),慢线,'终');

同花顺逃顶王

VAR2:

=LLV(LOW,10);

VAR3:

=HHV(HIGH,25);

阶段卖出:

3.2,COLORC6C600;

3.5,COLOR0088FF;

清仓卖出:

3.5,COLORFF75FF;

动力线:

=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);

STICKLINE(动力线>REF(动力线,1),动力线,REF(动力线,1),3,1),colorred;

STICKLINE(动力线<=REF(动力线,1),动力线,REF(动力线,1),3,1),COLOR00FF00;

加速度:

=(动力线-REF(动力线,1))*5;

底部:

0.2,COLOR70DB93;

关注:

0.5,coloryellow;

DRAWICON(FILTER(CROSS(动力线,关注),20),动力线+0.02,1);

DRAWICON(FILTER(CROSS(清仓卖出,动力线),20),动力线+0.02,2);

DRAWICON(FILTER(CROSS(动力线,底部),20),动力线+0.02,1);

DRAWICON(FILTER(CROSS(阶段卖出,动力线),20),动力线+0.02,2);

数值:

动力线,COLORA8A8A8;

速度:

加速度,colorred;

买卖点雷达

LC:

=REF(CLOSE,1);

RSI1:

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

AR:

=SUM(HIGH-OPEN,26)/SUM(OPEN-LOW,26)*100;

卖点雷达:

=CROSS(85,RSI1)*30,COLOR00FF00,LINETHICK2;

DRAWTEXT(CROSS(85,RSI1),20,'顶'),COLOR00FF00;

STICKLINE(卖点雷达,0,20,3,0),COLOR00FF00;

VARB:

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

VARC:

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

VARD:

=BARSCOUNT(CLOSE);

买点雷达:

(VARB<20ANDVARC<25ANDVARD>50ANDAR<70)*30,LINETHICK2,COLOR0078FF;

BT1:

=CROSS(RSI1,25);

DRAWTEXT(BT1,-80,'底'),COLOR0000FF;

STICKLINE(BT1,-100,-80,3,0),COLOR0000FF;

主力:

EMA((CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*5,LINETHICK1,COLOR0000FF;

散户:

EMA((CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*5,LINETHICK2,COLORC87800;

BT2:

=CROSS(主力,散户)AND主力<-10;

DRAWICON(CROSS(RSI1,25),主力,26);

DRAWICON(CROSS(主力,散户)AND主力<-10,主力,23);

BT:

=FILTER(COUNT(BT1ORBT2,3)>=2,3);

STICKLINE(BT,0,50,4,1),COLOR0000FF;

DRAWTEXT(BT,50,'金底'),COLOR0000FF;

STICKLINE(BT2,0,20,3,0),COLORFF00FF;

DRAWTEXT(BT2,20,'升'),COLORFF00FF;

底红顶绿

LC:

=REF(CLOSE,1);

RSI5:

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

TR:

=SUM(MAX(MAX((HIGH-LOW),ABS((HIGH-REF(CLOSE,1)))),ABS((LOW-REF(CLOSE,1)))),10);

HD:

=(HIGH-REF(HIGH,1));

LD:

=(REF(LOW,1)-LOW);

DMP:

=SUM(IF(((HD>0)AND(HD>LD)),HD,0),10);

DMM:

=SUM(IF(((LD>0)AND(LD>HD)),LD,0),10);

PDI:

=((DMP*100)/TR);

MDI:

=((DMM*100)/TR);

ADX:

=MA(((ABS((MDI-PDI))/(MDI+PDI))*100),5);

AV:

=(RSI5+ADX);

DXR:

=(((ADX+REF(ADX,5))/2)+RSI5);

0,COLORFF00FF;

WR10:

=((100*(HHV(HIGH,10)-CLOSE))/(HHV(HIGH,10)-LLV(LOW,10)));

NEWVOL:

=(RSI5-WR10);

阶段底部:

=(AV+NEWVOL);

STICKLINE((阶段底部>=0),0,阶段底部,0.3,1),LINETHICK2,COLORCC6600;

STICKLINE((阶段底部<0),0,阶段底部,0.8,1),LINETHICK6,colorred;

趋势线:

LLV(阶段底部,1),COLORFFFFFF;

STICKLINE((趋势线>230),250,趋势线,0.8,1),LINETHICK6,colorgreen;

买点:

IF((阶段底部<0),1,0);

卖点:

IF((趋势线>230),1,0);

230,COLORFFFFFF;

突破信号

N:

=19;

VAR1:

=HHV(HIGH,N);

VAR2:

=LLV(LOW,N);

阻力线:

EMA((CLOSE-VAR2)/(VAR1-VAR2),21)-0.5,COLORF0F000,LINETHICK2;

操作线:

EMA((CLOSE-VAR2)/(VAR1-VAR2),5)-0.5,colorred,LINETHICK2;

DRAWTEXT(CROSS(操作线,阻力线)AND阻力线<0.1,阻力线,'突破'),coloryellow;

DRAWTEXT(CROSS(阻力线,操作线)AND阻力线>0.25,阻力线,'破位'),colorgreen;

红绿棒:

(操作线-阻力线),COLORSTICK;

买卖机会

VAR1:

=EMA(C,2);

VAR2:

=EMA(SLOPE(C,21)*20+C,42);

VAR3:

=CROSS(VAR1,VAR2);

VAR4:

=CROSS(VAR2,VAR1);

VAR5:

MA(C,20),colorgreen,LINETHICK1;

CAR6:

MA(C,10),COLORFA05FF,LINETHICK2;

DRAWTEXT(VAR3,LOW*0.95,'买'),coloryellow,LINETHICK3;

DRAWTEXT(VAR4,HIGH*1.028,'卖'),colorgreen,LINETHICK3;

STICKLINE(VAR1=VAR2,LOW,HIGH,0,0),colorred;

STICKLINE(VAR1>=VAR2,CLOSE,OPEN,2,0),colorred;

STICKLINE(VAR1>=VAR2,CLOSE,OPEN,2,0),colorred;

STICKLINE(VAR1>=VAR2,CLOSE,OPEN,2,0),colorred;

STICKLINE(VAR1>=VAR2,CLOSE,OPEN,2,0),colorred;

STICKLINE(VAR1

STICKLINE(VAR1

STICKLINE(VAR1

STICKLINE(VAR1

STICKLINE(VAR1

买卖奇准3

来势线:

EMA(CLOSE,7)-EMA(CLOSE,21),coloryellow;

福星:

EMA(来势线,7),COLORSTICK,colorred;

VAR1:

=CLOSE/REF(LLV(LOW,35),5)<1;

决策:

IF(VAR1,0.5,0),STICK,coloryellow;

必买:

IF(TROUGHBARS(3,15,1)=0ANDHIGH>LOW+0.01,1,-1),colorred,LINETHICK1;

必卖:

IF(PEAKBARS(3,15,1)=1,1,2),colorgreen,LINETHICK1;

趋势线:

(EMA(WINNER(CLOSE),7)-EMA(WINNER(CLOSE),35))*5,colorwhite;

逃顶线:

EMA(CLOSE/REF(HHV(CLOSE,7),50),1),colorcyan,LINETHICK1;

买卖奇准A6

买卖奇准先锋:

CLOSE,colorred;

VAR1:

=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);

绝对值昨天收盘价日均线

VAR2:

=HIGH-REF(HIGH,1);

VAR3:

=REF(LOW,1)-LOW;

VAR4:

=SUM(IF(VAR2>0ANDVAR2>VAR3,VAR2,0),25);

VAR5:

=SUM(IF(VAR3>0ANDVAR3>VAR2,VAR3,0),25);

VAR6:

=VAR4*100/VAR1;

VAR7:

=VAR5*100/VAR1;

VAR8:

=MA(ABS(VAR7-VAR6)/(VAR7+VAR6)*100,15);

VAR9:

=(VAR8+REF(VAR8,15))/2;

A:

=(V

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 党团工作 > 入党转正申请

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1