SHORT:=21;LONG:=42;MID:=14;
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID);
MACD:(DIF-DEA)*2,COLORSTICK;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,8,1),colorred;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,8,0),colorred;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,8,1),colorgreen;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,8,0),colorgreen;
STICKLINE(MA(C,1)>REF(MA(C,1),1) AND MA(C,1)>REF(MA(C,1),2) AND MACD>REF(MACD,1),0.8*MACD,MACD,8,0),coloryellow;
STICKLINE(MA(C,1)<REF(MA(C,1),1) AND MA(C,1)<REF(MA(C,1),2) AND MACD<REF(MACD,1),0.8*MACD,MACD,8,0),colorblue;
AVF:(DIF+DEA)/2;
//DRAWTEXT(AVF>REF(AVF,1),AVF,'+'),colorred;
//DRAWTEXT(AVF<REF(AVF,1),AVF,'-'),colorgreen;
//DRAWTEXT(CROSS(AVF,0),-MA(MACD,5),'U'),coloryellow,LINETHICK2;
//DRAWTEXT(CROSS(0,AVF),-MA(MACD,5),'D'),coloryellow,LINETHICK2;
SHORT2:=42;LONG2:=84;MID2:=24;
DIF2:=EMA(CLOSE,SHORT2)-EMA(CLOSE,LONG2);
DEA2:=EMA(DIF2,MID2);
MACD2:=(DIF2-DEA2)*2,COLORSTICK;
STICKLINE(MA(C,1)>REF(MA(C,1),1) AND MA(C,1)>REF(MA(C,1),2) AND MACD>REF(MACD,1) AND MACD>0 AND MACD2>REF(MACD2,1) AND MACD2>0 ,-MACD/4,0,8,0),coloryellow;
STICKLINE(MA(C,1)<REF(MA(C,1),1) AND MA(C,1)<REF(MA(C,1),2) AND MACD<REF(MACD,1) AND MACD<0 AND MACD2<REF(MACD2,1) AND MACD2<0 ,-MACD/4,0,8,0),colorblue;
STICKLINE(MA(C,1)>REF(MA(C,1),1) AND MA(C,1)>REF(MA(C,1),2) AND MACD>0 AND MACD2>REF(MACD2,1) AND MACD2<0 ,1.4*MACD,1.6*MACD,8,0),coloryellow;
STICKLINE(MA(C,1)<REF(MA(C,1),1) AND MA(C,1)<REF(MA(C,1),2) AND MACD>0 AND MACD2<REF(MACD2,1) AND MACD2<0 ,1.4*MACD,1.6*MACD,8,0),colorblue;
DRAWTEXT(CROSS(MACD ,0),MACD ,'▲'),colorred;
DRAWTEXT(CROSS(0,MACD ),MACD ,'▼'),colorgreen;
DRAWTEXT(MACD2>REF(MACD2,1),AVF,'+'),colorred;
DRAWTEXT(MACD2<REF(MACD2,1),AVF,'-'),colorgreen;
MA7:=MA(C,7);
//DRAWTEXT(MA7>REF(MA7,1) AND REF(MA7,1)<REF(MA7,2) AND MACD>REF(MACD,1),1.2*AVF,'▲'),coloryellow;
//DRAWTEXT(MA7<REF(MA7,1) AND REF(MA7,1)>REF(MA7,2) AND MACD<REF(MACD,1),1.2*AVF,'▼'),coloryellow;
A01:=(C+O+L+H)/4;
A02:=(WINNER((A01 * 1.04)) * 100.000);
A03:=(WINNER((A01 * 0.96)) * 100.000);
A04:=A03,NODRAW;
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));
获利:=MA(A03,30);
//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) AND 获利<REF(获利,1) AND 获利>10 AND 获利<50,AVF,'出'),colorgreen;
//DRAWTEXT(A04<50 AND AVF<0AND 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;
//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;
//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;
//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;
//DRAWTEXT(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;
//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;
//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;
//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;
//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;
//DRAWTEXT(AVF<0 AND MACD>0 AND AVF>REF(AVF,1) AND CROSS(A04,50),1.2*AVF,'主1'),colorgreen;
//DRAWTEXT(AVF>0 AND MACD>0 AND AVF>REF(AVF,1) AND CROSS(A04,50),1.2*AVF,'主2'),colorgreen;
//DRAWTEXT(AVF>0 AND MACD>0 AND AVF>REF(AVF,1) AND CROSS(REF(A04,1),50) AND A04>50,1.2*AVF,'多'),colorgreen;
//DRAWTEXT(AVF>0 AND MACD>0 AND AVF>REF(AVF,1) AND CROSS(REF(A04,1),50) AND A04<50,1.2*AVF,'空'),colorgreen;
|
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!