Y:=(HIGH+LOW)/2; BLUE:=SMA(Y,13,1);
RED:=SMA(Y,8,1);
GREEN:=SMA(Y,5,1);
B2:=REF(BLUE,8);
R2:=REF(RED,5);
G2:=REF(GREEN,3);
KU1:=IF(HIGH=HHV(HIGH,3),1,0);
KD1:=IF(LOW=LLV(LOW,3),1,0);
UL:=IF(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0,REF(HIGH,2),REF(HIGH,2+BARSLAST(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0)));
DL:=IF(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0,REF(LOW,2),REF(LOW,2+BARSLAST(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0)));
KU:=IF(CLOSE>B2 AND CLOSE>R2 AND CLOSE>G2,1,0);
KD:=IF(CLOSE<B2 AND CLOSE<R2 AND CLOSE<G2,-1,0);
KK:=IF(BARSLAST(KU=1 AND REF(KU,1)=0)<BARSLAST(KD=-1 AND REF(KD,1)=0),1,-1);
AO:=MA(Y,5)-MA(Y,34);
AC:=MA(AO-MA(AO,5),5);
AC1:=REF(AC,1);
AO1:=REF(AO,1);
AO转:(170*MA(Y,5)-170*MA(Y,34)+165*MA(Y,33)-136*MA(Y,4))/29,NODRAW;
AO零:(165*MA(Y,33)-136*MA(Y,4))/29,NODRAW;
AC转:(165*MA(Y,33)-136*MA(Y,4)+170*(4*MA(AO,4)+5*(REF(AO,4)-MA(REF(AO,4),5)))/4)/29,NODRAW;
AC零:(170*4*MA(AO,4)+20*33*MA(Y,33)-16*34*MA(Y,4)-170*5*4*(MA(AO-MA(AO,5),4)))/116,NODRAW;
KAC:=IF(AC>AC1 AND AO>AO1,1,0);
KAO:=IF(AC<AC1 AND AO<AO1,-1,0);
蓝:SMA(Y,13,1),COLORFF0000;
红:SMA(Y,8,1),colorred;
绿:SMA(Y,5,1),colorgreen;
上碎型:IF(HIGH>=R2,UL,REF(UL,BARSLAST(HIGH>R2))),NODRAW;
下碎型:IF(LOW<=R2,DL,REF(DL,BARSLAST(LOW<=R2))),NODRAW;
STICKLINE(BARSLAST(ABS(上碎型-REF(上碎型,1)))<BARSLAST(CLOSE>上碎型 AND REF(CLOSE,1)<REF(上碎型,1)),上碎型,上碎型,1,1),COLORFF00FF;
STICKLINE(BARSLAST(ABS(下碎型-REF(下碎型,1)))<BARSLAST(CLOSE<下碎型 AND REF(CLOSE,1)>REF(下碎型,1)),下碎型,下碎型,1,1),coloryellow;
OL:=(170*MA(Y,5)-170*MA(Y,34)+165*MA(Y,33)-136*MA(Y,4))/29;
CL:=(165*MA(Y,33)-136*MA(Y,4)+170*(4*MA(AO,4)+5*(REF(AO,4)-MA(REF(AO,4),5)))/4)/29;
H1:=REF(HIGH,4);
H2:=REF(HIGH,3);
H3:=REF(HIGH,2);
H4:=REF(HIGH,1);
H5:=HIGH;
L1:=REF(LOW,4);
L2:=REF(LOW,3);
L3:=REF(LOW,2);
L4:=REF(LOW,1);
L5:=LOW;
‖:=H3>H2 AND H3>H1 AND H3>H4 AND H3>H5;
‖FRACTAL:=IF(‖,1,0);
‖VAR1:=BACKSET(‖FRACTAL,3);
‖VAR2:=FILTER(‖VAR1,2);
‖VAR3:=BACKSET(‖FRACTAL,5);
∣:=L3<L2 AND L3<L1 AND L3<L4 AND L3<L5;
∣FRACTAL:=IF(∣,1,0);
∣VAR1:=BACKSET(∣FRACTAL,3);
∣VAR2:=FILTER(∣VAR1,2);
∣VAR3:=BACKSET(∣FRACTAL,5);
DRAWICON(‖VAR2,HIGH*1.008,2);
DRAWICON(∣VAR2,LOW*0.985,1);
DRAWICON(KU=1 AND REF(KU,1)=0 AND CLOSE<0,LOW,4);
DRAWICON(KD=-1 AND REF(KD,1)=0 AND CLOSE<0,HIGH*1.01,5);
DRAWICON(KU=0 AND REF(KU,1)=1 AND CLOSE<0,HIGH*1.01,7);
DRAWICON(KD=0 AND REF(KD,1)=-1 AND CLOSE<0,LOW,6);
STICKLINE(CLOSE>=OPEN,HIGH,CLOSE,0,1),colorred;
STICKLINE(CLOSE>=OPEN,OPEN,LOW,0,1),colorred;
STICKLINE(KAC=1 AND CLOSE<OPEN,OPEN,CLOSE,2,0),COLOR000088;
STICKLINE(KAC=1 AND CLOSE<OPEN,OPEN,CLOSE,1,0),COLOR0000AA;
STICKLINE(KAC=1 AND CLOSE<OPEN,OPEN,CLOSE,0.5,0),COLOR0000CC;
STICKLINE(KAC=1 AND CLOSE<OPEN,OPEN,CLOSE,0.1,0),COLOR0000FF;
STICKLINE(KAO=0 AND KAC=0 AND CLOSE>=OPEN,OPEN,CLOSE,1.8,1),COLOR808080;
STICKLINE(KAO=-1 AND CLOSE<OPEN,OPEN,CLOSE,2.5,0),COLOR003300;
STICKLINE(KAO=-1 AND CLOSE<OPEN,OPEN,CLOSE,1,0),COLOR007700;
STICKLINE(KAO=-1 AND CLOSE<OPEN,OPEN,CLOSE,0.5,0),COLOR00BB00;
STICKLINE(KAO=-1 AND CLOSE<OPEN,OPEN,CLOSE,0.1,0),COLOR00FF00;
STICKLINE(KAO=0 AND KAC=0 AND CLOSE<OPEN,OPEN,CLOSE,2.5,0),COLOR888888;
STICKLINE(KAO=0 AND KAC=0 AND CLOSE<OPEN,OPEN,CLOSE,1,0),COLORAAAAAA;
STICKLINE(KAO=0 AND KAC=0 AND CLOSE<OPEN,OPEN,CLOSE,0.5,0),COLORCCCCCC;
STICKLINE(KAO=0 AND KAC=0 AND CLOSE<OPEN,OPEN,CLOSE,0.1,0),COLORFFFFFF;
STICKLINE(OPEN>CLOSE,HIGH,OPEN,0,1),colorcyan;
STICKLINE(OPEN>CLOSE,CLOSE,LOW,0,1),colorcyan;
DRAWTEXT(CLOSE>上碎型 AND REF(CLOSE,1)<REF(上碎型,1),L,'上突破'),coloryellow;
DRAWTEXT(CLOSE<下碎型 AND REF(CLOSE,1)>REF(下碎型,1),H,'下突破'),colorgreen;
|
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!