当前位置: 网站首页 > 股票软件公式 > 同花顺公式 > 文章 当前位置: 同花顺公式 > 文章

同花顺源码:SKDJ顶底背离,梦想回归,超准的顶底参考指标

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

1、SKDJ顶底背离

LOWV:=LLV(LOW,9);

HIGHV:=HHV(HIGH,9);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
K:EMA(RSV,3);
D:MA(K,3);
STICKLINE(K>D,K,D,2.5,0),colorred,LINETHICK1,NODRAW;
STICKLINE(D>K,K,D,2.5,0),colorgreen,LINETHICK1,NODRAW;
逃顶线:80,colorwhite;
抄底线:20,colorwhite;
高位谨慎减仓:80,colorred;
A1:=BARSLAST(REF(CROSS(K,D),1));
底背离:REF(CLOSE,A1+1)>CLOSE AND K>REF(K,A1+1) AND CROSS(K,D);
DRAWLINE(A1=0,D,底背离,D,0),colorred,LINETHICK2;
A2:=BARSLAST(REF(CROSS(D,K),1));
顶背离:REF(CLOSE,A2+1)<CLOSE AND REF(D,A2+1)>D AND CROSS(D,K);
DRAWLINE(A2=0,D,顶背离,D,0),colorgreen,LINETHICK2;
DRAWTEXT(底背离>0,D-5,'底背离'),colorred;
DRAWTEXT(顶背离>0,D-5,'顶背离'),colorgreen;
 


2、梦想回归

A:=MA(C,3);
ZS:SLOPE(C,7)/C*10,colorgreen,LINETHICK2;
BZS:=ZS<REF(ZS,1);
IF(BZS-1,ZS,DRAWNULL),colorred,LINETHICK2;
MZS:SLOPE(A,9)/A*10,colorwhite,LINETHICK2;
BMZS:=MZS<REF(MZS,1);
IF(BMZS-1,MZS,DRAWNULL),colorcyan,LINETHICK2;
DRAWICON(ZS>REF(ZS,1) AND ZS<0 AND ZS<MZS,ZS,1);
DRAWTEXT((ZS>REF(ZS,1) AND ZS>0 AND ZS<MZS),ZS,'↖②'),coloryellow;
CZ:(ZS-REF(ZS,1))*(MZS>REF(MZS,1)AND ZS>0);
MD:(ZS>REF(ZS,1) AND ZS<0 AND ZS<MZS)*0.2;
LX2Z3C:2*ZS+3*CZ;
LX1Z1C:ZS+CZ;
LX3Z2C:3*ZS+2*CZ;



3、超准的顶底参考指标

一个超准的顶底参考指标,来自网络。超准的顶底参考指标( 顶尖 财经 股票学院: http://www.58188.com )

VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
VAR2:=SMA(VAR1,9,1)+100;
VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR4:=SMA(VAR3,3,1);
VAR5:=SMA(VAR4,3,1)+100;
VAR6:=VAR5-VAR2;
趋势: IF(VAR6>45,VAR6-45,0);
STICKLINE(REF(趋势,1)< 趋势, 趋势,REF(趋势,1),2,0),colormagenta;
STICKLINE(REF(趋势,1)> 趋势, 趋势,REF(趋势,1),2,0),colorgreen;
强弱分界:50,COLORFFFFCC;
底部:0,COLOR00FFFF;
安全:20,COLORFFAA66,LINETHICK1;
预警:80,COLORFFAA66,LINETHICK1;
顶部:100,COLORFFFF33;
V1:=LLV(LOW,10);
V2:=HHV(H,25);
价位线:=EMA((C-V1)/(V2-V1)*4,4);
DRAWTEXT(CROSS(价位线,0.3),20+4,'●买'),colorred;
DRAWTEXT(CROSS(3.5,价位线),100-4,'●卖'),colorgreen;
VAR2Q:=REF(LOW,1);
VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100;
VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);
VAR5Q:=LLV(LOW,30);
VAR6Q:=HHV(VAR4Q,30);
VAR7Q:=IF(MA(CLOSE,58),1,0);
VAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/618*VAR7Q;
VAR9Q:=IF(VAR8Q>100,100,VAR8Q);
吸筹:STICKLINE(VAR9Q>-120,0,VAR9Q,3,1),coloryellow;
AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
走势:=CEILING(SMA(AA5,13,8));
AA6:=SMA(AA3,21,8);
卖临界:STICKLINE(走势-AA6>85,103,100,15,1),colorred,LINETHICK2;
主力线:=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),LINETHICK1,POINTDOT;
超短线:(((主力线-LLV(主力线,21))/(HHV(主力线,21)-LLV(主力线,21)))*(4))*(25),LINETHICK2,colorlired;
VAR11:=3;
VAR21:=(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));
股价准备启动:IF(CROSS(VAR21,VAR11),100,0),colorred,LINETHICK2;

上一篇:同花顺源码:找低点,组合副图,趋势拐点买卖

下一篇:同花顺源码:时间信号系统,天赐良机,主力逍遥吸货控盘资金