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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[同花顺] 同花顺红色为有效支撑主图指标 源码


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-26 09:56:45
同花顺红色为有效支撑主图指标 源码介绍

同花顺红色为有效支撑主图指标 源码

红色为有效支撑,
绿色为压力点,
蓝色小虚线为一个交易波段的启动点,

XX1:=EMA(SLOPE(1,1)+C,3),colorred;
YY1:=EMA(SLOPE(1,1)+C,7),colorblue;
DRAWTEXT(COUNT (XX1<YY1,5)=4 AND XX1>=YY1,C*0.95,'B'), colorred;
DRAWTEXT(COUNT (XX1>=YY1,5)=4 AND XX1<YY1,C*1.08,'S'), coloryellow;
操盘线:STRLEFT('★自用★',38),coloryellow;
ema13:=EMA(C,20),COLORFF8080;
ema34:=EMA(C,60),colorFFFF00;
ema55:=EMA(C,80),colorff00ff;
YZ1:=C/O>1.02 AND H/C>1.02 AND O/L<1.02;
YZ2:=REF(C,1)>REF(O,1) AND O>MA(C,11);
Y:=(MA(C,13)-MA(C,55))/MA(C,13)*100;
YZ:=YZ1 AND YZ2 AND Y>10;
X11:DRAWTEXT(YZ,HIGH+0.2,'减仓'),COLORF00FF0;
gr1:=BARSLAST(BETWEEN("bias.bias2"(6,13,24),0,5) );
gr2:=ema13>ema34 AND ema34>ema55 AND ema13>REF(ema13,1);
gr3:=COUNT("bias.bias2"(6,13,24)>10 AND H=HHV(H,gr1),gr1);
gr4:=H=HHV(H,gr1);
gr5:="macd.macd"(12,26,9)<REF("macd.macd"(12,26,9),1);
gr6:=gr2 AND gr3 AND gr4;
gr7:=gr2 AND gr3 AND gr4 AND gr5;
DRAWTEXT(gr6 AND gr7,H+0.3,'保存利润'),color00ff00;
XX2:=EMA(SLOPE(1,1)+C,3),colorred;
YY2:=EMA(SLOPE(1,1)+C,7),colorblue;
XX3=MA(CLOSE, 5);
YY3=MA(CLOSE, 60);
XX4=CROSS(XX2,YY2) AND XX3>YY3;
YY4=CROSS(YY2,XX2) AND XX3>YY3 AND COUNT(CROSS(XX1,YY1) AND XX3>YY3 ,30);
DRAWTEXT(XX4,LOW/1.1,'↖买'),colorwhite;
DRAWTEXT(YY4,HIGH*1.06,'卖'),coloryellow;
A1:=EMA(C,14),colorwhite,LINETHICK1;
A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;
支撑位:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL),colorred,LINETHICK1;
阻力位:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAWNULL),colorgreen,LINETHICK1;
DRAWICON(CROSS(XX1,YY1) AND CLOSE/REF(CLOSE,1)>1.03,LOW/1.06,25);
买线:EMA(C,5),color000999;
卖线:EMA(SLOPE(C,21)*20+C,42),POINTDOT,colorblue,linethick1;
BUY1:=CROSS(买线,卖线);
SEL1:=CROSS(卖线,买线);
DRAWTEXT(buy1,LOW*0.96,'B '),colorlired;
限制:=EMA((((H+C)/2+L+(C+L)/2)/3-EMA(LLV(((H+C)/2+L+(C+L)/2)/3,89),2))/(EMA(HHV (((H+C)/2+L+(C+L)/2)/3,21),2)-EMA(LLV(((H+C)/2+L+(C+L)/2)/3,89),2)),8)*100;
平衡:=SMA(EMA(SMA((C+L)/2,3,1),3),5,1);
DRAWTEXT(FILTER(平衡>REF(平衡,1)AND HHV(MA((H+C)/2,13),10)<REF(HHV(MA((H+C)/2,13),10),1) AND((C+L)/2)>REF((C+L)/2,1),5)AND 限制<88,L*0.98,' ------'),colorcyan;






gd48430

回复

举报

QQ|

GMT+8, 2024-11-18 22:58

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