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;
|
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!