当前位置:分析家公式网 → 股票公式 → 通达信公式 → 一键转帖:多空组合,MACD再优化(通达信指标 副图 源码 测试图)
软件名称:[B]多空组合,MACD再优化(通达信指标 副图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:2.00 KB
官方主页:Home Page
更新时间:2023-06-06 00:15:32
软件简介:
多空组合,MACD再优化
公式如下 :
DIF:(EMA(CLOSE,7)-EMA(CLOSE,14))*50,LINETHICK2,COLORYELLOW;
MACD:EMA(DIF,3),COLORRED,LINETHICK2;
DEF:2*(DIF-MACD),COLORFFFF00,LINETHICK0;
STICKLINE(DEF>=0 AND DEF>=REF(DEF,1),0,DEF,2,1),COLORRED;
STICKLINE(DEF>=0 AND DEF< REF(DEF,1),0,DEF,2,0),COLORGREEN;
STICKLINE(DEF< 0 AND DEF>=REF(DEF,1),0,DEF,2,1),COLORGREEN;
STICKLINE(DEF< 0 AND DEF< REF(DEF,1),0,DEF,2,0),COLORBLUE;
ST:=IF(DEF>0 AND REF(DEF,1)>REF(DEF,2) AND DEF< REF(DEF,1),1,0);
SJ:=IF(DEF< 0 AND REF(DEF,1)< REF(DEF,2) AND DEF>REF(DEF,1),1,0);
ZL:=IF(CROSS(C,MA(C,20)) OR CROSS(C,MA(C,60)),1,0);
ZC:=IF(CROSS(MA(C,20),C) OR CROSS(MA(C,60),C),1,0);
ZD:=IF(CROSS(MACD,DIF) AND DIF>0 AND MACD>0,1,0);
ZK:=IF(CROSS(DIF,MACD) AND DIF< 0 AND MACD< 0,1,0);
DRAWICON(CROSS(DIF,MACD)AND DEF>0,MACD,1);
DRAWICON(CROSS(MACD,DIF),DIF,2);
DRAWICON(CROSS(DIF,MACD)AND DEF>0,DEF,1);
XG:CROSS(DIF,MACD) AND DEF>0;
EE:=MACD-REF(MACD,1)>0.05 AND COUNT(C/REF(C,1)>1.09,16)< 2 AND C=HHV(H,60) AND C/REF(C,1)>1.04 AND NOT(H=L) AND COUNT(C>O,6)<=4 AND C/REF(C,9)< 1.2,NODRAW;
STICKLINE(FILTER(EE,20),ABS(MACD)+1,0,2,0),COLORMAGENTA;
选股:FILTER(EE,20);
VAR1:=(HHV(HIGH,21)-C)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
VAR2:=(C-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR3:=SMA(VAR2,13,8);
高位:90;
低位:0;
多方:SMA(VAR3,13,8),COLORRED;
空方:SMA(VAR1,21,8),COLOR00FF00;
中轴:45;
DRAWICON(CROSS(多方,空方),多方,11);
DRAWICON(CROSS(空方,多方),空方,12);
“手指向上”的选股公式如下 :
VAR1:=(HHV(HIGH,21)-C)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
VAR2:=(C-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR3:=SMA(VAR2,13,8);
多方:=SMA(VAR3,13,8),COLORRED;
空方:=SMA(VAR1,21,8),COLOR00FF00;
选股:CROSS(多方,空方);
[url=http://www.70822.com/soft/sort013/sort05/down-167880.html]多空组合,MACD再优化(通达信指标 副图 源码 测试图)[/url]