同花顺指标代码

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

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)-LL V(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) AND FILTER((趋势线<=13),15);

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

买入股票: STICKLINE(趋势线<=13AND V12>13,0,50,5,0),COLOR0099FF;

BB:= (趋势线<=13AND V12>13) AND FILTER((趋势线<=13AND V12>13),10) ;

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

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

见顶清仓:FILTER(趋势线>90AND趋势线

CC:=(趋势线>=90AND V12) AND FILTER((趋势线>=90AND V12),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

上穿买: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) THEN BEGIN

var2:=var1;

WHILE (var2>0) DO BEGIN

zheng:=zheng+var2;

i:=i+1;

var2:=REF(var1,i);

IF (i>P3) THEN BREAK;

END

END

ELSE

BEGIN

var2:=var1;

WHILE (var2<0) DO

BEGIN

fu:=fu+var2;

i:=i+1;

var2:=REF(var1,i);

IF (i>P3) THEN BREAK;

END

END

{涨势面积和:zheng;}

涨势平均力度:zheng*p4/i,coloryellow;

相关文档
最新文档