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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[同花顺] 同花顺压力支撑操盘主图指标 源码


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-29 17:46:37
同花顺压力支撑操盘主图指标 源码介绍

同花顺压力支撑操盘主图指标 源码

出现“买”字样为买入信号,后市上涨概率较大;出现卖字为卖出信号,后市下跌概率较大。
红色k线为多头区域,绿色k线为空头区域。
买入信号出现后,还要看k线是否变红,若k线变红,此时介入胜算较大。
所有买入和卖出提示仅供参考,不做为投资依据。
请配合大盘,均线,成交量和其它指标使用。

买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
STICKLINE(买线>=卖线,LOW,HIGH,0,1),colorred;
STICKLINE(买线>=卖线,CLOSE,OPEN,10,0),color000044;
STICKLINE(买线>=卖线,CLOSE,OPEN,7,0),color000066;
STICKLINE(买线>=卖线,CLOSE,OPEN,3,0),color000088;
STICKLINE(买线>=卖线,CLOSE,OPEN,1,0),colorred;
STICKLINE(买线<卖线,CLOSE,OPEN,10,0),color004400;
STICKLINE(买线<卖线,CLOSE,OPEN,7,0),color006600;
STICKLINE(买线<卖线,CLOSE,OPEN,3,0),color008800;
STICKLINE(买线<卖线,CLOSE,OPEN,1,0),color00ff00;
STICKLINE(买线<卖线,LOW,HIGH,0,1),color00ff00;
STICKLINE(CROSS(买线,卖线) ,OPEN,CLOSE,10,0),color0033ff;
STICKLINE(CROSS(买线,卖线) ,OPEN,CLOSE,7,0),color0055ff;
STICKLINE(CROSS(买线,卖线) ,OPEN,CLOSE,3,0),color0099ff;
STICKLINE(CROSS(买线,卖线) ,OPEN,CLOSE,1,0),color00ffff;
STICKLINE( CROSS(卖线,买线),OPEN,CLOSE,10,0),color333300;
STICKLINE( CROSS(卖线,买线),OPEN,CLOSE,7,0),color555500;
STICKLINE( CROSS(卖线,买线),OPEN,CLOSE,3,0),color777700;
STICKLINE( CROSS(卖线,买线),OPEN,CLOSE,1,0),colorffff00;
SMA(CLOSE,2,1),colorgreen,linethick1;
var4:=(LOW+HIGH+CLOSE)/3;
操作: MA(var4,5),linethick1,colorwhite;
压力:HHV(操作,60),colorred;
买卖:LLV(操作,13),linethick1,color00ff00;
底部支撑: LLV(LOW,60)*1.02,color00ccff;
顶部: HHV(HIGH,60)*0.98,colorffffcc;
STICKLINE(操作>REF(操作,1),操作,操作+0.018,5,0),coloryellow,linethick1;
STICKLINE(买卖=REF(买卖,1),买卖,买卖,1,1),colorred;
STICKLINE(买卖>REF(买卖,1),买卖,买卖+0.028,4,1),colorf00ff0,linethick1;
STICKLINE(压力=REF(压力,1),压力,压力,7,1),colorred;
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
bu:=CROSS(买线,卖线);
sel:=CROSS(卖线,买线);
VAR2:=(REF(HIGH,1)+REF(LOW,1))/2;
VAR3:=MA(CLOSE,21)+2*STD(CLOSE,21);
DRAWICON(CROSS(VAR2,VAR3),HIGH*1.035,2);
DRAWTEXT(CROSS(VAR2,VAR3),HIGH*1.02,'卖'), colorgreen;
VAR4:=REF(CLOSE,1);
VAR5:=SMA(MAX(CLOSE-VAR4,0),7,1)/SMA(ABS(CLOSE-VAR4),7,1)*100;
VAR6:=CROSS(79,VAR5);
VAR7:=FILTER(VAR6,4);
DRAWICON(VAR7,HIGH*1.035,2);
DRAWTEXT(VAR7,HIGH*1.02,'卖'), colorgreen;
MAA8:=MA(C,8);
A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A4:=SMA(A3,3,1);
A5:=SMA(A4,3,1);
A6:=3*A4-2*A5;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));
DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖买'),coloryellow;
STICKLINE(C>1.095*REF(C,1),O,C,8,0),coloryellow;
N:=3;
L0:=0.00;
L1:=ABS(L-REF(L,1))<=L0;
L2:=ABS(L-REF(L,2))<=L0;
L3:=ABS(L-REF(L,3))<=L0;
L4:=ABS(L-REF(L,4))<=L0;
L5:=ABS(L-REF(L,5))<=L0;
精准线首次:=L1 OR L2 OR L3 OR L4 OR L5;
精准左:=FILTER(精准线首次,N) ;
天数:=BARSLAST(精准左);
LTS:=REF(L,天数);
精准右:=ABS(L-LTS)<=L0;
STICKLINE(精准左,L,L,50,-1),Color8080FF;
G1:=ABS(H-REF(H,1))<=L0;
G2:=ABS(H-REF(H,2))<=L0;
G3:=ABS(H-REF(H,3))<=L0;
G4:=ABS(H-REF(H,4))<=L0;
G5:=ABS(H-REF(H,5))<=L0;
G6:=ABS(H-REF(H,6))<=L0;
G7:=ABS(H-REF(H,7))<=L0;
G8:=ABS(H-REF(H,8))<=L0;
精准线1首次:=G1 OR G2 OR G3 OR G4 OR G5 OR G6 OR G7 OR G8;
精准左1:=FILTER(精准线1首次,N) ;
天数1:=BARSLAST(精准左1);
GTS:=REF(L,天数1);
精准右1:=ABS(H-LTS)<=L0;
STICKLINE(精准左1,H,H,50,-1),Color00FF00;
高1:=REF(HHV(H,120),3);
低1:=REF(LLV(L,120),3);
H1:=高1-(高1-低1)*0.191;
H2:=高1-(高1-低1)*0.382;
H3:=高1-(高1-低1)*0.5;
H4:=高1-(高1-低1)*0.618;
H5:=高1-(高1-低1)*0.809;
突破:=REF(EMA(C,14),1);
A1X:=(EMA(C,10)-突破)/突破*100;
JZ:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1)),COLORFFFF00,LINETHICK2;
N1:=100;
KD:=BARSLAST(CURRBARSCOUNT=N1);
GD:=CONST(IF(ISLASTBAR=1,HHV(H,KD),0));
DD:=CONST(IF(ISLASTBAR=1,LLV(L,KD),0));
KJ:=GD-DD;
GD4:=IF(CURRBARSCOUNT<=N1/2,GD,DRAWNULL);
ND:=IF(BARSCOUNT(C)>=8,8,BARSCOUNT(C));
AMOV:=VOL*(C+L+H)/3;
MN:=SUM(AMOV,ND)/SUM(VOL,ND);
AAC:=CROSS(A1X,0),LINETHICK0;
BBC:=CROSS(0,A1X),LINETHICK0;
DRAWICON(AAC,JZ*0.98,34);
DRAWICON(BBC,JZ*1.015,35);
LC:= REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
逃顶:=CROSS(82,RSI);







gd46075

回复

举报

QQ|

GMT+8, 2024-11-17 23:57

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