DK布林 BS:=ZIG(3,10);
SL:=EMA(BS,3);
B:=CROSS(BS,SL);
S:=CROSS(SL,BS);
STICKLINE(BS>=SL,LOW,HIGH,1,0),colorred;
STICKLINE(BS>=SL,CLOSE,OPEN,8,0),colorred;
STICKLINE(BS<SL,CLOSE,OPEN,8,0),colorgreen;
STICKLINE(BS<SL,LOW,HIGH,1,0),colorgreen;
STICKLINE(CROSS(BS,SL),OPEN,CLOSE,15,0),colormagenta;
STICKLINE(CROSS(SL,BS),OPEN,CLOSE,15,0),colorcyan;
Mean:EMA(CLOSE,24),DOTLINETHICK2,coloryellow;
Now:EMA(CLOSE,1),coloryellow;
ST:EMA(H,24);
SB:EMA(L,24);
LT:EMA(H,90);
LB:EMA(L,90);
H2:Mean+2*STD(CLOSE,24),colorgreen,DOTLINETHICK2;
L2:Mean-2*STD(CLOSE,24),colorred,DOTLINETHICK2;
S2赔率:(H2-Now)/(Now-L2),colorred,NODRAW;
H3:Mean+3*STD(CLOSE,24),colorcyan,DOTLINETHICK1;
L3:Mean-3*STD(CLOSE,24),colormagenta,DOTLINETHICK1;
S3赔率:(H-Now)/(Now-L3),colormagenta,NODRAW;
H8:=(CLOSE>REF(CLOSE, 4) AND REF(CLOSE, 1)>REF(CLOSE, 5) AND REF(CLOSE, 2)>REF(CLOSE, 6) AND REF(CLOSE, 3)>REF(CLOSE, 7)
AND REF(CLOSE, 4)>REF(CLOSE, 8) AND REF(CLOSE, 5)>REF(CLOSE, 9) AND REF(CLOSE, 6)>REF(CLOSE, 10) AND REF(CLOSE, 7)>REF(CLOSE, 11));
H9:=(H8 AND REF(CLOSE, 8)>REF(CLOSE, 12));
Hi8:=(BARSLAST(H9)>7) AND H8;
DRAWTEXT(Hi8, HIGH*1.02, 'H8'),colorgreen;
Hi9:=BARSLAST(Hi8,1)=1 AND H9,LINETHICK0;
DRAWTEXT(Hi9, HIGH*1.02, 'H9'),colorcyan;
L8:=(CLOSE<REF(CLOSE, 4) AND REF(CLOSE, 1)<REF(CLOSE, 5) AND REF(CLOSE, 2)<REF(CLOSE, 6) AND REF(CLOSE, 3)<REF(CLOSE, 7)
AND REF(CLOSE, 4)<REF(CLOSE, 8) AND REF(CLOSE, 5)<REF(CLOSE, 9) AND REF(CLOSE, 6)<REF(CLOSE, 10) AND REF(CLOSE, 7)<REF(CLOSE, 11));
L9:=L8 AND REF(CLOSE, 8)<REF(CLOSE, 12);
Low8:=BARSLAST(L9)>7 AND L8;
DRAWTEXT(Low8, LOW*0.98,'L8'),colorred;
Low9:=(BARSLAST(Low8,1)=1 AND L9);
DRAWTEXT(Low9, LOW*0.97,'L9'),colormagenta;
ShortTerm:=24;
Shorta1:=CROSS(CLOSE,EMA(HIGH,ShortTerm));
Shorta2:=CROSS(EMA(LOW,ShortTerm),CLOSE);
Shortb1:=(BARSLAST(Shorta1,1) + 1);
Shortb2:=(BARSLAST(Shorta2,1) + 1);
Shortc1:=CROSS(SUM(Shorta1,Shortb2),0.5);
Shortc2:=CROSS(SUM(Shorta2,Shortb1),0.5);
LongTerm:=90,LINETHICK0;
LongTerma1:=CROSS(CLOSE,EMA(HIGH,LongTerm));
LongTerma2:=CROSS(EMA(LOW,LongTerm),CLOSE);
LongTermb1:=(BARSLAST(LongTerma1,1) + 1);
LongTermb2:=(BARSLAST(LongTerma2,1) + 1);
LongTermc1:=CROSS(SUM(LongTerma1,LongTermb2),0.5);
LongTermc2:=CROSS(SUM(LongTerma2,LongTermb1),0.5);
STICKLINE((CLOSE > EMA(HIGH,ShortTerm)),EMA(HIGH,ShortTerm),EMA(LOW,ShortTerm),4,0),colorred;
STICKLINE((CLOSE < EMA(LOW,ShortTerm)),EMA(LOW,ShortTerm),EMA(HIGH,ShortTerm),1,0),colorgreen;
PARTLINE(EMA(HIGH,ShortTerm), CLOSE >EMA(HIGH,ShortTerm),RGB(255,0,0),CLOSE < EMA(HIGH,ShortTerm),RGB(0,255,0));
PARTLINE(EMA(LOW,ShortTerm), CLOSE > EMA(LOW,ShortTerm),RGB(255,0,0),CLOSE < EMA(LOW,ShortTerm),RGB(0,255,0));
STICKLINE(CLOSE > EMA(HIGH,LongTerm),EMA(HIGH,LongTerm),EMA(LOW,LongTerm),4,0),colormagenta;
STICKLINE(CLOSE < EMA(LOW,LongTerm),EMA(LOW,LongTerm),EMA(HIGH,LongTerm),1,0),colorblue;
PARTLINE(EMA(HIGH,LongTerm), CLOSE >EMA(HIGH,LongTerm),RGB(255,0,255),CLOSE < EMA(HIGH,LongTerm),RGB(0,0,255));
PARTLINE(EMA(LOW,LongTerm), CLOSE >EMA(LOW,LongTerm),RGB(255,0,255),CLOSE < EMA(LOW,LongTerm),RGB(0,0,255));
CrossShort:=(CLOSE > EMA(HIGH,ShortTerm) AND Shorta1);
DownShort:=(CLOSE < EMA(LOW,ShortTerm) AND Shortc2);
DRAWTEXT(CLOSE > EMA(HIGH,ShortTerm) AND CLOSE > EMA(HIGH, LongTerm) AND (Shortc1 OR LongTermc1), LT, 'Full'), colormagenta;
DRAWTEXT(CLOSE < EMA(LOW,ShortTerm) AND CLOSE < EMA(LOW, LongTerm) AND (Shortc2 OR LongTermc2), LB, 'Epty'),colorcyan;
DRAWTEXT(CLOSE > EMA(HIGH,ShortTerm) AND CLOSE < EMA(HIGH, LongTerm) AND Shortc1, ST, '40'), coloryellow;
DRAWTEXT(CLOSE > EMA(LOW,ShortTerm) AND CLOSE < EMA(LOW, LongTerm) AND LongTermc2, SB, '40'), colorgreen;
DRAWTEXT(CLOSE > EMA(HIGH,LongTerm) AND CLOSE < EMA(HIGH, ShortTerm) AND LongTermc1, LT, '60'), coloryellow;
DRAWTEXT(CLOSE > EMA(LOW,LongTerm) AND CLOSE < EMA(LOW, ShortTerm) AND Shortc2, LB, '60'), colorgreen;
生命线:EMA(EMA((LOW+CLOSE+HIGH)/3,24),24);
PARTLINE(生命线,Now<生命线,RGB(0,255,255),Now>=生命线,RGB(255,0,255)),LINETHICK2;
DIF:=100*(EMA(CLOSE,10) - EMA(CLOSE,24)),colorred,LINETHICK1;
DEA:=EMA(DIF,8),colorgreen,LINETHICK1;
MACD1:=2*(DIF-DEA),COLORSTICK;
MACD2:=EMA(MACD1,3);
MACD:=MACD1,NODRAW,colormagenta;
TrendDown:=CROSS(DEA,DIF);
N1:=BARSLAST(TrendDown);
N2:=REF(BARSLAST(TrendDown),N1+1);
N3:=REF(BARSLAST(TrendDown),N2+N1+2);
CL1:=LLV(C,N1+1);
DIFL1:=LLV(DIF,N1+1);
CL2:=REF(CL1,N1+1);
DIFL2:=REF(DIFL1,N1+1);
CL3:=REF(CL2,N1+1);
DIFL3:=REF(DIFL2,N1+1);
AA1:=INTPART(LOG(DIFL2))-1;
AA2:=INTPART(LOG((-1)*DIFL2))-1;
PDIFL2:=IF(DIFL2>0,AA1,AA2);
MDIFL2:=INTPART(DIFL2/POW(10,PDIFL2));
PDIFL3:=IF(DIFL3>0,INTPART(LOG(DIFL3))-1,INTPART(LOG((-1)*DIFL3))-1);
MDIFL3:=INTPART(DIFL3/POW(10,PDIFL3));
MDIFB2:=INTPART(DIF/POW(10,PDIFL2));
MDIFB3:=INTPART(DIF/POW(10,PDIFL3));
DirectBBL:=(CL1<CL2 ) AND (MDIFB2>MDIFL2) AND (MACD<0 AND REF(MACD,1)<0) AND MDIFB2<=REF(MDIFB2,1);
IndirectBBL:=(CL1<CL3 AND CL3<CL2 ) AND (MDIFB3>MDIFL3) AND (MACD<0 AND REF(MACD,1)<0) AND MDIFB3<=REF(MDIFB3,1);
B:=DirectBBL OR IndirectBBL,NODRAW;
BG:=((MDIFB2>REF(MDIFB2,1))*REF(DirectBBL,1)) OR ((MDIFB3>REF(MDIFB3,1))*REF(IndirectBBL,1)),NODRAW;
BBLX:=(REF(DirectBBL,1) AND DIFL1<=DIFL2 ) OR (REF(IndirectBBL,1) AND DIFL1<=DIFL3);
DRAWTEXT(FILTER(B,9)>0,L*0.99,'钝化'),colorred;
DRAWTEXT(FILTER(BBLX,3)>0,L*0.98,'消失'),coloryellow;
DRAWTEXT(FILTER(BG,3)>0,L*0.97,'底结构'),colormagenta;
TrendUp:=CROSS(DIF,DEA);
M1:=BARSLAST(TrendUp);
M2:=REF(BARSLAST(TrendUp),M1+1);
M3:=REF(BARSLAST(TrendUp),M2+M1+2);
CH1:=HHV(C,M1+1);
DIFH1:=HHV(DIF,M1+1);
CH2:=REF(CH1,M1+1);
DIFH2:=REF(DIFH1,M1+1);
CH3:=REF(CH2,M1+1);
DIFH3:=REF(DIFH2,M1+1);
PDIFH2:=IF(DIFH2>0,INTPART(LOG(DIFH2))-1,INTPART(LOG((-1)*DIFH2))-1);
MDIFH2:=INTPART(DIFH2/POW(10,PDIFH2));
PDIFH3:=IF(DIFH3>0,INTPART(LOG(DIFH3))-1,INTPART(LOG((-1)*DIFH3))-1);
MDIFH3:=INTPART(DIFH3/POW(10,PDIFH3));
MDIFT2:=INTPART(DIF/POW(10,PDIFH2));
MDIFT3:=INTPART(DIF/POW(10,PDIFH3));
DirectTBL:=(CH1>CH2 ) AND (MDIFT2<MDIFH2) AND (MACD>0 AND REF(MACD,1)>0) AND MDIFT2>=REF(MDIFT2,1);
IndirectTBL:=(CH1>CH3 AND CH3>CH2 ) AND (MDIFT3<MDIFH3) AND (MACD>0 AND REF(MACD,1)>0) AND MDIFT3>=REF(MDIFT3,1);
T:=DirectTBL OR IndirectTBL,NODRAW;
TG:=((MDIFT2<REF(MDIFT2,1))*REF(DirectTBL,1)) OR ((MDIFT3<REF(MDIFT3,1))*REF(IndirectTBL,1)),NODRAW;
TBLX:=(REF(DirectTBL,1) AND DIFH1>=DIFH2 ) OR (REF(IndirectTBL,1) AND DIFH1>=DIFH3);
DRAWTEXT(FILTER(T,9)>0,H*1.01,'钝化'),colorgreen;
DRAWTEXT(FILTER(TBLX,3)>0,H*1.02,'消失'),coloryellow;
DRAWTEXT(FILTER(TG,3)>0,H*1.03,'顶结构'),colorcyan;
|
- 软件大小:10.0 KB
- 推荐星级:
- 更新时间:2023-08-05 00:04:17
- 软件类别: 国产软件 / 同花顺公式
- 软件语言:简体中文
- 授权方式: 免费版
- 联系方式:暂无联系方式
- 官方主页: Home Page
- 点击大图: 【一键转帖到论坛】
- 插件情况:
- 运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
- 相关Tags:指标公式 股票软件,公式源码
-
(0)0%(0)0%
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!