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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[同花顺] 同花顺长线牛副图指标 蓝转红试买 见橙加仓 维持橙持股 源码


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-29 11:58:57
同花顺长线牛副图指标 蓝转红试买 见橙加仓 维持橙持股 源码介绍

同花顺长线牛副图指标 蓝转红试买 见橙加仓 维持橙持股 源码

本指标用颜色表示操作度。
使用说明:
1、当长线牛公式中的;
2、蓝转红试买;
3、见橙加仓;
4、橙色维持持股;
5、橙转绿减仓;
6、蓝色空仓;
看图操作即可

N:=1.5;
M:=3;
P:=64;
DIFF:=EMA((EMA(CLOSE,N*12)-EMA(CLOSE,N*26))/EMA(CLOSE,N*26)*1000,M);
DEA:=EMA(DIFF,N*9),COLOR000088;
MACD:=2*(DIFF-DEA);
MACDX:=MACD;
MACDO:=EMA(MACD,5),COLORFF77FF;
DIFFO:=EMA(DEA,P)*1.8;
B:=MACD-REF(MACD,1);
STICKLINE(MACD>0 AND B>0,0,MACD,0,1),COLOR0000CD;
STICKLINE(MACD>0 AND B<0,0,MACD,0,0),COLOR0000CD;
STICKLINE(MACD<0 AND B>0,0,MACD,0,1),colorcyan;
STICKLINE(MACD<0 AND B<0,0,MACD,0,0),colorcyan;
STICKLINE(DIFF>DEA,DIFF,DEA,4,0),COLOR0089FF;
STICKLINE(DIFF<DEA,DIFF,DEA,4,0),colorblue;
发现机构入场:IF(DIFF>=REF(DIFF,1) AND DEA<REF(DEA,1),DIFF,DRAWNULL),colorred,LINETHICK4;
短线出局:IF(DIFF<REF(DIFF,1) AND DEA>REF(DEA,1),DIFF,DRAWNULL),colorgreen,LINETHICK4;
IF(DIFF>=REF(DIFF,1) AND DEA>REF(DEA,1),DIFF,DRAWNULL),colorgray;
IF(DIFF<REF(DIFF,1) AND DEA<REF(DEA,1),DIFF,DRAWNULL),colorblue;
IF(DIFFO>=REF(DIFFO,1),DIFFO,DRAWNULL),coloryellow;
IF(DIFFO=REF(DIFFO,1),DIFFO,DRAWNULL),coloryellow;
IF(DIFFO<REF(DIFFO,1),DIFFO,DRAWNULL),colormagenta;
DRAWTEXT(C=C AND CURRBARSCOUNT=150,180,'操作:蓝转红试买;见橙加仓;维持橙持股'),COLOR008987;
DRAWTEXT(C=C AND CURRBARSCOUNT=150,150,'橙转绿减仓;蓝色空仓'),COLOR008987;






gd47809

回复

举报

QQ|

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

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