底部:15,Color00BB00; 顶部: 85,Color0000E0;
qcz:=ABS(MA(CLOSE,10)-MA(CLOSE,N5))+ABS(MA(CLOSE,15)-MA(CLOSE,N5))+ABS(MA(CLOSE,20)-MA(CLOSE,N5));
趋势值:qcz/CLOSE*100+15,colorwhite,LINETHICK1;
DIFF: =EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:= EMA(DIFF,9);
MACD: =(DIFF-DEA)*2;
VAR1:=((CLOSE - LLV(LOW,N1))/(HHV(HIGH,N1) - LLV(LOW,N1)))*(100);
VAR2:=((CLOSE - LLV(LOW,N2))/(HHV(HIGH,N2) - LLV(LOW,N2)))*(100);
VAR3:=SMA(VAR1,5,1);
VAR4:=SMA(VAR2,5,1);
K:=SMA(VAR3,3,1);
K60:SMA(VAR4,3,1);
D:=SMA(K,3,1);
D60:SMA(K60,3,1);
MJ:=D60-K60;
MC:=K60-D60;
//www.fxjgsw.com
KD1:=ABS(K-D);
VAR5:=LLV(LOW,12);
VAR6:=HHV(HIGH,26);
方向线:EMA((CLOSE-VAR5)/(VAR6-VAR5)*100,4),colorgray,LINETHICK1;
STICKLINE((K >= D),K,D,8,0),Color0000A8;
STICKLINE((K >= D),K,D,6,0),Color0000C0;
STICKLINE((K >= D),K,D,4,0),Color0000E0;
STICKLINE((K >= D),K,D,3,0),Color0000F0;
STICKLINE((K >= D),K,D,2,0),Color0000D0;
STICKLINE((K >= D),K,D,1,0),Color8080FF;
STICKLINE((K <= D),K,D,8,0),Color008800;
STICKLINE((K <= D),K,D,6,0),Color009900;
STICKLINE((K <= D),K,D,4,0),Color00AA00;
STICKLINE((K <= D),K,D,3,0),Color00BB00;
STICKLINE((K <= D),K,D,2,0),Color00CC00;
STICKLINE((K <= D),K,D,1,0),Color00DD00;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
A3:=BARSLAST(REF(CROSS(K,D),1));
A4:=BARSLAST(REF(CROSS(D,K),1));
底背离:=IF(REF(LOW,A1+1)>LOW AND DIFF>REF(DIFF,A1+1),1,0);
底背离1:=IF(REF(LOW,A3+1)>LOW AND K>REF(K,A3+1),1,0);
顶背离:=IF(REF(HIGH,A2+1)<HIGH AND REF(DIFF,A2+1)>DIFF,1,0);
顶背离1:=IF(REF(HIGH,A4+1)<HIGH AND REF(D,A4+1)>D,1,0);
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;//www.fxjgsw.com
VA1:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,colorgreen;
VA3:=MAX(MA(C,60),MA(C,120));
VA5:=MAX(MA(C,45),MA(C,90));
VA7:=MAX(MA(C,30),MA(C,60));
DRAWTEXT(CROSS(K,D) AND MJ<1.5 AND 方向线<83 AND C>=VA1 AND C>=VA3 AND C>=VA5 AND C>=VA7,K,'买'),colorred;
DRAWICON(CROSS(K,D) AND MJ<1.5 AND 方向线<83 AND C>=VA1 AND C>=VA3 AND C>=VA5 AND C>=VA7,K-5,1);
DRAWTEXT(CROSS(K,D) AND MJ<1.5 AND (顶背离=1 OR 顶背离1=1) AND 方向线<83 AND C>=VA1 AND C>=VA3 AND C>=VA5 AND C>=VA7,D-3,'少量'),Color00BB00;
DRAWTEXT(CROSS(D,K) AND MC<1.5 AND 方向线>14 AND C<VA1 AND C<VA3 AND C<VA5 AND C<VA7,D,'卖'),colorwhite;
DRAWICON(CROSS(D,K) AND MC<1.5 AND 方向线>14 AND C<VA1 AND C<VA3 AND C<VA5 AND C<VA7,D+5,2);
DRAWTEXT(CROSS(D,K) AND MC<1.5 AND (底背离=1 OR 底背离1=1) AND 方向线>14 AND C<VA1 AND C<VA3 AND C<VA5 AND C<VA7,K+8,'少量'),colorred;
DRAWTEXT(CROSS(K,D) AND C>MA(C,15) AND (底背离=1 OR 底背离1=1) AND 顶背离1=0 AND MJ<1.5,K,'背买'),colorred;
DRAWICON(CROSS(K,D) AND C>MA(C,15) AND (底背离=1 OR 底背离1=1) AND 顶背离1=0 AND MJ<1.5,K-5,1);
DRAWTEXT(CROSS(D,K) AND C<MA(C,15) AND (顶背离=1 OR 顶背离1=1) AND 底背离1=0 AND MC<1.5,D,'背卖'),colorwhite;
DRAWICON(CROSS(D,K) AND C<MA(C,15) AND (顶背离=1 OR 顶背离1=1) AND 底背离1=0 AND MC<1.5,D+5,2),colorwhite;
PP:=(K-D)*10;
PP1:=(REF(K,1)-REF(D,1))*10;
PP2:=(REF(K,2)-REF(D,2))*10;
PP3:=PP-PP1;
KK:=(D-K)*10;
KK1:=(REF(D,1)-REF(K,1))*10;
KK2:=(REF(D,2)-REF(K,2))*10;
KK3:=KK-KK1;//www.fxjgsw.com
DRAWTEXT(D>K AND KK>KK1 AND KK2>KK1 AND LOW<MA(C,N4) AND KK2>1 AND KK1>0 AND 方向线>30,D,'加仓'),colorwhite;
DRAWICON(D>K AND KK>KK1 AND KK2>KK1 AND LOW<MA(C,N4) AND KK2>1 AND KK1>0 AND 方向线>30,D,2),colorwhite;
DRAWICON(D<K AND PP>PP1 AND PP2>PP1 AND HIGH>MA(C,N4) AND PP3>6 AND PP2>1 AND PP1>0 AND 方向线<70,D,1),colorred;
DRAWTEXT(D<K AND PP>PP1 AND PP2>PP1 AND HIGH>MA(C,N4) AND PP3>6 AND PP2>1 AND PP1>0 AND 方向线<70,D,'加仓'),colorred;
DRAWTEXT(ABS(MJ)<1.5 AND KD1<2 AND (方向线<10 OR 方向线>90),方向线,'平'),colorred;
|
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!