DRAWTEXT_FIX(1,0.80,0.01,0,''),COLORYELLOW; {DRAWTEXT_FIX(1,0.41,0.06,0,'【★★1、粉+红=满,2、粉+绿=6,3、蓝+红=4 ,4、蓝+绿=空★★】'),COLORYELLOW;}
{DRAWKLINE(H,O,L,C);}
E1:=EXPMA(C,25);
E2:=EXPMA(C,90);
{N:=IF(CODELIKE('9999')OR CODELIKE('3990')OR CODELIKE('880')OR CODELIKE('0000')OR CODELIKE('000300'),1,0);}
{D1:=IF(N=1,0.015,0.025);
D2:=IF(N=1,0.015,0.025);
C1:=IF(N=1,0.015,0.025);
C2:=IF(N=1,0.015,0.025);}
D1:=IF(C>300,0.015,0.025);
D2:=IF(C>300,0.015,0.025);
C1:=IF(C>300,0.015,0.025);
C2:=IF(C>300,0.015,0.025);
M0:=0.06;{1分钟}
M1:=0.10;{5分钟}
M2:=0.20;{15分钟}
M3:=0.30;{30分钟}
M4:=0.50;{60分钟}
M5:=1;{日线}
TJXS:=IF(PERIOD=0,M0,IF(PERIOD=1,M1,IF(PERIOD=2,M2,IF(PERIOD=3,M3,IF(PERIOD=4,M4,1)))));
FSPD:=IF(TJXS=M0,0,IF(TJXS=M1,1,IF(TJXS=M2,2,IF(TJXS=M3,3,IF(TJXS=M4,4,5)))));
{T:=IF(N=1,5,2);
T2:=IF(N=1,5,2);}
T:=IF(C>300,3,2);
T2:=IF(C>300,3,2);
短线多:IF(PERIOD=FSPD,EXPMA(E1,T)+EXPMA(E1,T)*D1*TJXS,EXPMA(E1,T)+EXPMA(E1,T)*D1),COLORRED;
短线空:IF(PERIOD=FSPD,EXPMA(E1,T)-EXPMA(E1,T)*D2*TJXS,EXPMA(E1,T)-EXPMA(E1,T)*D2),COLORRED;
短线波动:短线多-短线空,COLORYELLOW,NODRAW;
长线多:IF(PERIOD=FSPD,EXPMA(E2,T2)+EXPMA(E2,T2)*C1*TJXS,EXPMA(E2,T2)+EXPMA(E2,T2)*C1),COLORMAGENTA;
长线空:IF(PERIOD=FSPD,EXPMA(E2,T2)-EXPMA(E2,T2)*C2*TJXS,EXPMA(E2,T2)-EXPMA(E2,T2)*C2),COLORMAGENTA;
长线波动:长线多-长线空,COLORYELLOW,NODRAW;
{DRAWKLINE(H,O,L,C);}
TJ1:=RANGE(C,短线空,短线多);
TJ2:=RANGE(C,长线空,长线多);
STICKLINE(短线多>REF(短线多,1) AND TJ1=0,短线多,短线空,0.1,1),COLORRED;
STICKLINE(短线多<REF(短线多,1) AND TJ1=0,短线多,短线空,0.1,1),COLORGREEN;
STICKLINE(长线多>REF(长线多,1) AND TJ2=0,长线多,长线空,0.1,1),COLORMAGENTA;
STICKLINE(长线多<REF(长线多,1) AND TJ2=0,长线多,长线空,0.1,1),COLORBLUE;
NOTEXT短线多:IF(短线多<REF(短线多,1),短线多,DRAWNULL),COLORGREEN;
NOTEXT短线空:IF(短线空<REF(短线空,1),短线空,DRAWNULL),COLORGREEN;
NOTEXT长线多:IF(长线多<REF(长线多,1),长线多,DRAWNULL),}COLORBLUE;
NOTEXT长线空:IF(长线空<REF(长线空,1),长线空,DRAWNULL),COLORBLUE;
空:=REF(C,1)>REF(短线空,1) AND C<短线空 AND C<REF(C,1){ AND COUNT(C>短线多,5)>0};
多:=REF(C,1)<REF(短线多,1) AND C>短线多 AND C>REF(C,1){ AND COUNT(C<长线多,5)>0};
空1:=TFILTER(多,空,2);
多1:=TFILTER(多,空,1);
DRAWTEXT(空1,短线多*1.04,'空'),NODRAW{,COLORGREEN};
DRAWTEXT(多1,短线空*0.96,'多'),NODRAW{,COLORRED};
DRAWICON(空1,短线多*1.02,2);
DRAWICON(多1,短线空*0.98,1);
仓位4:=(C>短线多 AND C<长线多);
仓位4B:=TFILTER(仓位4,空,1);
DRAWTEXT(仓位4B,H*1.02,'四'),COLORYELLOW;
仓位10:=C>短线多 AND C>长线多;
仓位10B:=TFILTER(仓位10,{多 OR} 空,1);
DRAWTEXT(仓位10B,H*1.02,'拾'),COLORYELLOW;
仓位44:=(REF(C,3)>REF(长线多,3)) OR (REF(C,2)>REF(长线多,2))OR (REF(C,1)>REF(长线多,1)) AND (C>短线空 AND C<长线空);
仓位44B:=TFILTER(仓位44,仓位10,1);
DRAWTEXT(仓位44B,H*1.02,'四'),COLORYELLOW;
仓位110:=C>短线多 AND C>长线多;
仓位110B:=TFILTER(仓位110,仓位44B,1);
DRAWTEXT(仓位110B,H*1.02,'拾'),COLORYELLOW;
DRAWTEXT(仓位44B,H*1.02,'四'),COLORYELLOW;
仓位0:=C<短线空 AND C<长线空;
仓位0B:=TFILTER(仓位0,多,1);
DRAWTEXT(仓位0B,L*0.99,'零'),COLORYELLOW;
仓位6:=C<短线空 AND C>长线空;
仓位6B:=TFILTER(仓位6,多,1);
DRAWTEXT(仓位6B,L*0.99,'六'),COLORYELLOW;
A1:=C>REF(C,4);
A2:=BARSLASTCOUNT(A1);
A3:=REF(A2,1)=8 AND A2>REF(A2,1);
A4:=REF(BETWEEN(A2,5,8),1) AND A2<REF(A2,1);
A5:=ISLASTBAR AND BETWEEN(A2,6,8);
A6:=(BACKSET(A3>0,9) OR BACKSET(A4>0,A2+1)*0 OR BACKSET(A5>0,A2))*A2;
DRAWTEXT(A6>0,H+H*0.02,VAR2STR(A6,0)),COLORFF00FF;
DRAWTEXT(A2=9,H+H*0.02,'9'),COLOR00FF00;
B1:=C<REF(C,4);
B2:=BARSLASTCOUNT(B1);
B3:=REF(B2,1)=8 AND B2>REF(B2,1);
B4:=REF(BETWEEN(B2,5,8),1) AND B2<REF(B2,1);
B5:=ISLASTBAR AND BETWEEN(B2,6,8);
B6:=(BACKSET(B3>0,9) OR BACKSET(B4>0,B2+1)*0 OR BACKSET(B5>0,B2))*B2;
DRAWTEXT(B6>0,L-L*0.02,VAR2STR(B6,0)),COLOR00FF00;
DRAWTEXT(B2=9,L-L*0.02,'9'),COLORFF00FF;
{分析家公式网WWW.fxjgsw.com}
DRAWTEXT_FIX(1,0.00,0.10,0,'概念:')COLORFF00FF;
DRAWTEXT_FIX(ISLASTBAR,0.07,0.10,0,GNBLOCK),COLORFF00FF;{概念};
{DRAWTEXT_FIX(1,0.13,0,0,DYBLOCK)COLOR00FFFF;}{地域板块}
DRAWTEXT_FIX(ISLASTBAR,0,1,0,EXTERNSTR(0,2)),COLOR00FFFF;
DRAWTEXT_FIX(1,0.00,0.00,0,'主题投资:')COLOR0000FF;
DRAWTEXT_FIX(1,0.07,0.00,0,EXTERNSTR(0,1))COLOR00FFFF;
DRAWTEXT_FIX(1,0.00,0.055,0,'主营业务:')COLORCYAN;
DRAWTEXT_FIX(1,0.07,0.055,0,EXTERNSTR(0,3))COLORCYAN;
DRAWTEXT_FIX(1,0.00,0.90,0,'事件驱动:')COLOR0000FF;
{DRAWTEXT_FIX(1,0.00,0.80,0,'利空:')COLOR0000FF;};
|
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!