当前位置:分析家公式网 → 股票公式 → 同花顺公式 → 一键转帖:MACD修改(同花顺公式 副图 源码 测试图)
软件名称:[B]MACD修改(同花顺公式 副图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:7.00 KB
官方主页:Home Page
更新时间:2021-09-20 00:10:45
软件简介:
DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA : EMA(DIFF,M);
MACD : 2*(DIFF-DEA);
//FF:=MA(CLOSE,20)>MA(CLOSE,1);PARTLINE(MACD,FF,RGB(0,255,0),1,RGB(255,0,0));
FF:=MA(CLOSE,20)>MA(CLOSE,5);PARTLINE(MACD,FF,RGB(0,255,0),1,RGB(255,0,0));
AVF:(DIFF+DEA)/2;
DRAWTEXT(AVF>REF(AVF,1),AVF,'+'),colorred;
DRAWTEXT(CROSS(AVF,0),AVF,'★'),coloryellow;
DRAWTEXT(CROSS(0,AVF),AVF,'▼'),coloryellow;
DRAWTEXT(MACD>0 AND MACD<REF(MACD,1),MACD,'-'),colorgreen;
A01:=(C+O+L+H)/4;
A02:=(WINNER((A01 * 1.04)) * 100.000);
A03:=(WINNER((A01 * 0.96)) * 100.000);
A04:A03,NODRAW;
DRAWTEXT(A04<50 AND avf<0 AND AVF>REF(AVF,1) AND REF(AVF,1)>REF(AVF,2) AND REF(AVF,2)>REF(AVF,3) AND REF(AVF,3)<REF(AVF,4),AVF,'入'),colorgreen;//0下avf++就入
DRAWTEXT(A04<50 AND avf<0 AND MACD>0 AND AVF>REF(AVF,1) AND REF(AVF,1)>REF(AVF,2) AND MACD <REF(MACD ,1)AND MACD <REF(MACD ,1) AND REF(MACD ,1)>REF(MACD ,2) AND REF(MACD ,2)>REF(MACD ,3) AND C<REF(C,1)AND REF(C,1)>REF(O,1) ,AVF,'返'),colorgreen;//0下macd- 第一次跌就返
DRAWTEXT(A04<50 AND avf<0 AND MACD>0 AND AVF>REF(AVF,1) AND REF(AVF,1)>REF(AVF,2) AND MACD <REF(MACD ,1) AND REF(MACD ,1)>REF(MACD ,2) AND REF(MACD ,2)>REF(MACD ,3) AND C<REF(C,1)AND REF(C,1)<REF(O,1) ,AVF,'套'),colorgreen;//0下macd- 第二次跌就套
DRAWTEXT(A04<50 AND MACD>0 AND CROSS(AVF,0) AND ((C-REF(C,1))/REF(C,1)-1)*100<2 ,AVF,'警惕'),colorgreen; //avf上0 贴着0走看不懂目前不去碰
DRAWTEXT(A04<50 AND MACD>0 AND CROSS(REF(AVF,1),0) AND ((C-REF(C,1))/REF(C,1)-1)*100<2 ,AVF,'+2进'),colorgreen; //avf上0 贴着0走看不懂目前不去碰
DRAWTEXT(A04<50 AND AVF<0 AND MACD>0 AND AVF<REF(AVF,1) AND REF(AVF,1)>REF(AVF,2) AND REF(AVF,2)>REF(AVF,3) AND REF(AVF,3)>REF(AVF,4),AVF,'返'),colorgreen;//0上重新开启的++进
DRAWTEXT(A04<50 AND MACD>0 AND avf>0 AND AVF<REF(AVF,1) AND REF(AVF,1)>REF(AVF,2) AND REF(AVF,2)>REF(AVF,3) ,AVF,'出'),colorgreen;//avf上0 主又上50后+消失就出(算上了主上50又下50的情况不要落下)
DRAWTEXT(A04<50 AND avf>0 AND AVF>REF(AVF,1) AND REF(AVF,1)>REF(AVF,2) AND REF(AVF,2)<REF(AVF,3),AVF,'进'),colorgreen;//0上avf++就入 (算上了主上50又下50的情况不要落下)
DRAWTEXT(avf>0 AND MACD>0 AND AVF>REF(AVF,1) AND CROSS(A04,50),AVF,'主进'),colorgreen;//0上重新开启的++进
DRAWTEXT(avf>0 AND MACD>REF(MACD,1) AND AVF>REF(AVF,1) AND CROSS(A04,50),AVF,'主进'),colorgreen;//0上重新开启的++进
DRAWTEXT(A04>50 AND avf>0 AND MACD>0 AND AVF>REF(AVF,1) AND REF(AVF,1)>REF(AVF,2) AND REF(AVF,2)>REF(AVF,3) AND REF(AVF,3)<REF(AVF,4),AVF,'进'),colorgreen;//0上重新开启的++进
DRAWTEXT(A04>50 AND A04<80 AND MACD>0 AND avf>0 AND AVF<REF(AVF,1) AND REF(AVF,1)>REF(AVF,2) AND REF(AVF,2)>REF(AVF,3) ,AVF,'出'),colorgreen;//0上重新开启的++ +消失同时主就在80下的 也出
DRAWTEXT(A04>50 AND avf>0 AND MACD>0 AND AVF<REF(AVF,1) AND REF(AVF,1)>REF(AVF,2) AND REF(AVF,2)>REF(AVF,3) AND CROSS(80,AVF),AVF,'逃'),colorgreen;//0上重新开启的++ +消失同时主下80 就逃
DRAWTEXT(A04>50 AND avf>0 AND AVF<REF(AVF,1) AND REF(AVF,1)>REF(AVF,2) AND REF(AVF,2)>REF(AVF,3) AND CROSS(80,AVF),AVF,'逃'),colorgreen;//0上重新开启的++ +消失同时主下80 就逃
DRAWTEXT(A04>50 AND avf>0 AND CROSS(0,MACD) AND AVF<REF(AVF,1) AND REF(AVF,1)>REF(AVF,2) AND REF(AVF,2)>REF(AVF,3),AVF,'逃'),colorgreen;//0上重新开启的++ +消失同时主下80 就逃 暂定逃(这种出现的少吧?)
DRAWTEXT(A04>20 AND MACD>0 AND avf>0 AND AVF<REF(AVF,1) AND REF(AVF,1)>REF(AVF,2) AND REF(AVF,2)<REF(AVF,3) ,AVF,'分歧'),colorgreen;//0上重新开启的++ +消失后又出现单独的+ 是资金分歧,谨慎,大概率跌
Zero : 0;
VAR1:=LLV(LOW,13);
VAR2:=HHV(HIGH,13);
VAR3:=(SMA((CLOSE-VAR1)/(VAR2-VAR1)*100,5,1)-50)/200;
VAR4:=(SMA((VAR2-CLOSE)/(VAR2-VAR1)*100,5,1)-50)/200;
主△▽:VAR3*C/10;
散:VAR4*C/10;
FF:=主△▽>0;STICKLINE(Zero ,FF,RGB(0,255,0),1,RGB(255,0,0));
STICKLINE(主△▽>0,0,0,8),colorred;
STICKLINE(主△▽<0,0,0,8),colorgreen;
//LC := REF(CLOSE,1);
//RSITOG▲▼:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
//DRAWTEXT(CROSS(RSITOG▲▼,80),MACD,"8▲"),colorred;
//DRAWTEXT(CROSS(80,RSITOG▲▼),MACD,"8▼"),colorgreen;
//DRAWTEXT(CROSS(RSITOG▲▼,70),MACD,"7▲"),colorred;
//DRAWTEXT(CROSS(70,RSITOG▲▼),MACD,"7▼"),colorgreen;
//DRAWTEXT(CROSS(RSITOG▲▼,30),MACD,"3▲"),colorred;
//DRAWTEXT(CROSS(30,RSITOG▲▼),MACD,"3▼"),colorgreen;
//DRAWTEXT(((主△▽-REF(主△▽,1))<0)AND(主△▽>0),主△▽,'▽'),colorgreen;
//DRAWTEXT(((主△▽-REF(主△▽,1))>0)AND(主△▽>0),主△▽,'+'),colorred;
//MA5↑:MA(C,5);
//MA20↑:MA(C,20);
//DRAWTEXT((C>MA5↑) AND (REF(C,1)<MA5↑)AND C<MA20↑,MACD,'5↑'),colorred;
//DRAWTEXT((REF(C,1)>MA5↑) AND (C<MA5↑)AND C>MA20↑,MACD,'5↓'),colorgreen;
//DRAWTEXT(CROSS(MACD,0),0,'★'),coloryellow;
[url=http://www.70822.com/soft/sort013/sort036/down-158160.html]MACD修改(同花顺公式 副图 源码 测试图)[/url]