N:=10; M:=80;
M11:=25;
X1:=100;
HB:=12;
SHORT:=12;
LONG:=12;
MID:=12;
JRH:=HHV(C,2);JRL:=LLV(C,2);
YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;
VAR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));
VAR2:=(REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR4:=(REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR6:=(REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR8:=(REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VARA:=(REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VARD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));
VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR19:=((REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1 );
VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1)) AND VARD);
红色持股:=IF((VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC),1,0);
青色观望:=IF((VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18),1,0);
短买:=VAR19;
品红离场:=VAR1A;
STICKLINE(C>=O,L,H,0,0),COLOR0000CC;
STICKLINE(C<O,L,H,0,0),COLOR999900;
STICKLINE(1,C,O,1,0),COLOR858500;
STICKLINE(C>=O,C,O,1,0),COLOR0000E5;
STICKLINE(红色持股,C,O,3.1,0),COLORRED;
STICKLINE(红色持股,C,O,1.7,0),COLOR7040FF;
STICKLINE(红色持股,C,O,0.5,0),COLORYELLOW;
STICKLINE(红色持股,C,O,3.1,0),COLORRED;
STICKLINE(红色持股,C,O,2,0),COLOR0000FF;
STICKLINE(红色持股,C,O,0.1,0),COLORYELLOW;
STICKLINE(青色观望,C,O,3.1,0),COLORFF7700;
STICKLINE(青色观望,C,O,1.7,0),COLORFF9900;
STICKLINE(青色观望,C,O,0.5,0),COLORFFBB00;
STICKLINE(青色观望,C,O,3.1,0),COLORFF7700;
STICKLINE(青色观望,C,O,1.7,0),COLORFF9900;
STICKLINE(青色观望,C,O,0.5,0),COLOR009900;
DRAWICON(短买,LOW-0.02,1);
DRAWICON(品红离场,HIGH+0.02,2);
RSV:=(C-LLV(L,15))/(HHV(H,16) - LLV(L,16))*100;
趋势:=MA((3*SMA(RSV,6,1)-2*SMA(SMA(RSV,5,1),5,1)),2),COLORMAGENTA,LINETHICK3;
VAR42:=3*(SMA(((O-LLV(L,82))/(HHV(H,89) - LLV(L,89)))*(100),20,1))-2*(SMA(SMA(((O- LLV(L,89))/(HHV(H,89) - LLV(L,89)))*(100),20,1),15,1));
VAR43:=VAR42-100;
背离:=FORCAST(-1*VAR43,21),LINETHICK1,COLOR00FFF3;
GH:=SUM((H-L)/L*100,8)<16;
DRAWTEXT((CROSS(趋势,背离) AND 背离<85 ),LOW,'主升'),COLORE7FCB9;
乖离率:=(C-MA(C,30))/MA(C,30)*500;
N1:=BARSLAST(CROSS(C,MA(C,30)));
N2:=BARSLAST(CROSS(MA(C,30),C));
长期趋势:=IF(N1<N2,N1+1,0);
峰值乖离:=HHV(乖离率,长期趋势);
VAR25:=(EMA(CLOSE,2) - EMA(CLOSE,150));
VAR26:=EMA(VAR25,100);
VAR27:=(2 * (VAR25 - VAR26));
VAR28:=((POW(VAR27,3) * 0.1) + POW(VAR27,1));
黑马线:=(IF((VAR27 > 0.1),VAR28,0) * 5),COLORFF0000;
DRAWTEXT((CROSS(趋势,背离) AND 黑马线>0.9 AND (乖离率=峰值乖离) ),LOW,'黑马'),COLORMAGENTA;
顶压:HHV(MA(H,11),50),COLOR40FF00;
短压:HHV(MA(H,11),15),COLORFF00FF;
XL1:=LLV(MA(H,11),1);
趋势2:IF(XL1>=短压,短压,XL1),COLORFFFFFF,LINETHICK2;
TY:=C;
XTHD:=FILTER(BACKSET(FILTER((REF(TY,10) = HHV(TY,((2 *10) +1))),10),(10+1)),10);
XTLD:=FILTER(BACKSET(FILTER((REF(TY,10) = LLV(TY,((2 *10) +1))),10),(10+1)),10);
G:=REF(CLOSE,BARSLAST(XTHD));
F:=REF(CLOSE,BARSLAST(XTLD));
T1:=((BARSLAST(XTHD) < BARSLAST(XTLD)) AND NOT(XTHD));
T2:=((BARSLAST(XTHD) > BARSLAST(XTLD)) AND NOT(XTLD));
天轨:IF(T1,G,G),LINETHICK1,COLOR02E30E,DOTLINE;
地轨:IF(T2,F,F),LINETHICK1,COLOR0000FF,DOTLINE;
A:=(3*C+L+O+H)/6;
M0:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;
D01:=MA(M0,21);
D02:=MA(M0,34);
RSV1:=(C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100;
K:=SMA(RSV1,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
GA:=((100-2*REF(K,1)+2*K+4*REF(D,1)/3)/3*(HHV(H,9)-LLV(L,9))+100*LLV(L,9))/100;
GB:=((-2*REF(K,1)+2*K+4*REF(D,1)/3)/3*(HHV(H,9)-LLV(L,9))+100*LLV(L,9))/100;
A11:= IF(CROSS(D,K),L,0);
A22:= IF(CROSS(55,D),1,0);
B55:=REF(GA,BARSLAST(A22)),COLORRED;
趋势K:IF(D01<D02,REF(GB,BARSLAST(A11)),REF(GA,BARSLAST(A11))),COLORFF8000,LINETHICK2;
牛熊D:=IF(B55<趋势K AND C>B55 AND B55<趋势K*0.962,趋势K*0.962,REF(GA,BARSLAST(A22))),COLORFF00FF;
VAR1111:=BACKSET((REF(H,2) = HHV(H,5)),3);
VAR2222:=CROSS(VAR1111,0.9);
VAR3333:=BACKSET((REF(L,2) = LLV(L,5)),3);
VAR4444:=CROSS(VAR3333,0.9);
压力:REF(HIGH,BARSLAST(VAR2222)),NODRAW,COLOR808000;
支撑:REF(LOW,BARSLAST(VAR4444)),NODRAW,COLOR1D99FE;
STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4444)),REF(LOW,BARSLAST(VAR4444)),2,0),COLOR0080FF;
STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2222)),REF(HIGH,BARSLAST(VAR2222)),2,0),COLOR808000;
DRAWNUMBER(ISLASTBAR,趋势2,趋势2),COLORFFFFFF;
DRAWNUMBER(ISLASTBAR,趋势K,趋势K),COLORFF5C26;
DRAWNUMBER(ISLASTBAR,天轨,天轨),COLOR02E30E;
DRAWNUMBER(ISLASTBAR,地轨,地轨),COLOR0000FF;
所属板块:=STRCAT('所属板块: ',STRCAT(STRCAT(STRCAT('[行业]-',HYBLOCK),STRCAT(' [地域]-',DYBLOCK)),STRCAT(' [概念]-',GNBLOCK)));
总股本:=STRCAT(STRCAT('总股本: ',CON2STR(TOTALCAPITAL/1000000,2)),'亿');
流通盘:=STRCAT(STRCAT(' 流通盘: ',CON2STR(CAPITAL/1000000,2)),'亿');
全流通:=STRCAT(' 全流通: ',CON2STR((CAPITAL/1000000)/(TOTALCAPITAL/1000000),2));
市值:=STRCAT(STRCAT(' 流通市值: ',CON2STR((CAPITAL/1000000)*C,2)),'亿');
股本市值:=STRCAT('股本市值: ',STRCAT(STRCAT(STRCAT |
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!