TD组合 年月日:=10000*(2023-1900)+100*10+5;
真实最低价:=MIN(LOW,REF(CLOSE,1));
真实最高价:=MAX(HIGH,REF(CLOSE,1));
真实波幅:=MAX(MAX(ABS(HIGH-REF(CLOSE,1)),ABS(REF(CLOSE,1)-LOW)),ABS(HIGH-LOW));
买入结构首根:=IF(DATE<=年月日,REF(CLOSE,1)>=REF(CLOSE,5) AND CLOSE<REF(CLOSE,4),0);
卖出结构首根:=IF(DATE<=年月日,REF(CLOSE,1)<=REF(CLOSE,5) AND CLOSE>REF(CLOSE,4),0);
TT:=CONST(BARSLASTCOUNT(CLOSE<REF(CLOSE,4)));
B0:=IF(DATE<=年月日,IF(CURRBARSCOUNT<=TT,CURRBARSCOUNT=TT,买入结构首根=1 AND BARSNEXT(CLOSE>=REF(CLOSE,4))>=9),0);
B1:=IF(DATE<=年月日,IF(CURRBARSCOUNT<=TT,CURRBARSCOUNT=1,BARSLASTCOUNT(CLOSE<REF(CLOSE,4))>=9 AND BARSNEXT(CLOSE>=REF(CLOSE,4))=1),0);
TTT:=CONST(BARSLASTCOUNT(CLOSE>REF(CLOSE,4)));
S0:=IF(DATE<=年月日,IF(CURRBARSCOUNT<=TTT,CURRBARSCOUNT=TTT,卖出结构首根=1 AND BARSNEXT(CLOSE<=REF(CLOSE,4))>=9),0);
S1:=IF(DATE<=年月日,IF(CURRBARSCOUNT<=TTT,CURRBARSCOUNT=1,BARSLASTCOUNT(CLOSE>REF(CLOSE,4))>=9 AND BARSNEXT(CLOSE<=REF(CLOSE,4))=1),0);
TDXSTEP418:DRAWNUMBER(CURRBARSCOUNT<=TT,LOW*0.995,TT+1-CURRBARSCOUNT),COLOR00C0C0;
TDXSTEP419:DRAWNUMBER(CURRBARSCOUNT>TT AND BARSLASTCOUNT(CLOSE<REF(CLOSE,4))=BARSLAST(B0=1)+1,LOW*0.995,BARSLAST(B0=1)+1),COLOR00C0C0;
TDXSTEP420:DRAWNUMBER(CURRBARSCOUNT<=TTT,LOW*0.995,TTT+1-CURRBARSCOUNT),COLOR00C0C0;
TDXSTEP421:DRAWNUMBER(CURRBARSCOUNT>TTT AND BARSLASTCOUNT(CLOSE>REF(CLOSE,4))=BARSLAST(S0=1)+1,LOW*0.995,BARSLAST(S0=1)+1),COLOR00C0C0;
TDST支撑2:=REF(LLV(真实最低价,BARSLAST(S0)-BARSLAST(S1)+1),BARSLAST(S1));
TDST阻力2:=REF(HHV(真实最高价,BARSLAST(B0)-BARSLAST(B1)+1),BARSLAST(B1));
TDST支撑:IF(CURRBARSCOUNT=1,IF(S1=1 AND TTT<9,REF(TDST支撑2,1),TDST支撑2),TDST支撑2),NODRAW,COLOR00C0C0;
TDST阻力:IF(CURRBARSCOUNT=1,IF(B1=1 AND TT<9,REF(TDST阻力2,1),TDST阻力2),TDST阻力2),NODRAW,COLOR00C0C0;
TT6:=IF(EXIST(B0=1,BARSCOUNT(CLOSE)+1),BARSLASTCOUNT(CLOSE<REF(CLOSE,4))=BARSLAST(B0=1)+1 AND BARSLAST(B0=1)=5,0);
TTT6:=IF(EXIST(S0=1,BARSCOUNT(CLOSE)+1),BARSLASTCOUNT(CLOSE>REF(CLOSE,4))=BARSLAST(S0=1)+1 AND BARSLAST(S0=1)=5,0);
B6:=IF(CURRBARSCOUNT>TT,TT6,IF(TT>=7,CONST(BARSSINCEN(买入结构首根=1,TT))+2-CURRBARSCOUNT=6,0));
S6:=IF(CURRBARSCOUNT>TTT,TTT6,IF(TTT>=7,CONST(BARSSINCEN(卖出结构首根=1,TTT))+2-CURRBARSCOUNT=6,0));
BL:=MIN(REF(LOW,BARSLAST(B6)),IF(B6,REFX(LOW,1),REF(LOW,BARSLAST(B6)-1)));
SH:=MAX(REF(HIGH,BARSLAST(S6)),IF(S6,REFX(HIGH,1),REF(HIGH,BARSLAST(S6)-1)));
B9:=IF(DATE<=年月日,BARSLASTCOUNT(CLOSE<REF(CLOSE,4))=9,0);
S9:=IF(DATE<=年月日,BARSLASTCOUNT(CLOSE>REF(CLOSE,4))=9,0);
B:=IF(EXIST(B9=1,BARSCOUNT(CLOSE)+1),IF(B9=1,COUNT(LOW<=BL,2)>=1,COUNT(LOW<=REF(BL,BARSLAST(B9)),BARSLAST(B9)+1)=1 AND REF(LOW,BARSLAST(B9)+1)>REF(BL,BARSLAST(B9)) AND LOW<=REF(BL,BARSLAST(B9))),0);
S:=IF(EXIST(S9=1,BARSCOUNT(CLOSE)+1),IF(S9=1,COUNT(HIGH>=SH,2)>=1,COUNT(HIGH>=REF(SH,BARSLAST(S9)),BARSLAST(S9)+1)=1 AND REF(HIGH,BARSLAST(S9)+1)<REF(SH,BARSLAST(S9)) AND HIGH>=REF(SH,BARSLAST(S9))),0);
NOTEXT5:IF(TT=6 AND CURRBARSCOUNT=1,DRAWNULL,IF(BARSLASTCOUNT(CLOSE<REF(CLOSE,4))>=6 AND BARSLAST(B0)+1=BARSLASTCOUNT(CLOSE<REF(CLOSE,4)),BL,DRAWNULL)),DOTLINE,COLORRED;
NOTEXT6:IF(TTT=6 AND CURRBARSCOUNT=1,DRAWNULL,IF(BARSLASTCOUNT(CLOSE>REF(CLOSE,4))>=6 AND BARSLAST(S0)+1=BARSLASTCOUNT(CLOSE>REF(CLOSE,4)),SH,DRAWNULL)),DOTLINE,COLORRED;
BN1:=BARSNEXT(B1=1);
SN1:=BARSNEXT(S1=1);
TDXSTEP422:DRAWICON(B,LOW*0.97,7);
TDXSTEP423:DRAWICON(S,HIGH*1.01,8);
H1:=REFX(HHV(真实最高价,BARSLASTCOUNT(CLOSE<REF(CLOSE,4))),BN1);
L1:=REFX(LLV(真实最低价,BARSLASTCOUNT(CLOSE<REF(CLOSE,4))),BN1);
实际最高价B:=IF(EXIST(B0=1,BARSCOUNT(CLOSE)+1),IF(EXIST(B1=1,BARSCOUNT(CLOSE)+1),IF(BARSLAST(B1)>BARSLAST(B0),H1,REF(HHV(真实最高价,BARSLASTCOUNT(CLOSE<REF(CLOSE,4))),BARSLAST(B1))),H1),0);
实际最低价B:=IF(EXIST(B0=1,BARSCOUNT(CLOSE)+1),IF(EXIST(B1=1,BARSCOUNT(CLOSE)+1),IF(BARSLAST(B1)>BARSLAST(B0),L1,REF(LLV(真实最低价,BARSLASTCOUNT(CLOSE<REF(CLOSE,4))),BARSLAST(B1))),L1),0);
真实波幅B:=实际最高价B-实际最低价B;
B10:=IF(DATE<=年月日,IF(CURRBARSCOUNT>=9,IF(EXIST(S9=1,BARSCOUNT(CLOSE)+1),COUNT(B0=1,BARSLAST(S9=1))=1 AND B0=1,COUNT(B0=1,(-1))=1 AND B0=1),0),0);
B20:=IF(DATE<=年月日,IF(CURRBARSCOUNT>=9,IF(EXIST(S9=1,BARSCOUNT(CLOSE)+1),COUNT(B0=1,BARSLAST(S9=1))=2 AND B0=1,COUNT(B0=1,(-1))=2 AND B0=1),0),0);
B30:=IF(DATE<=年月日,IF(CURRBARSCOUNT>=9,IF(EXIST(S9=1,BARSCOUNT(CLOSE)+1),COUNT(B0=1,BARSLAST(S9=1))=3 AND B0=1,COUNT(B0=1,(-1))=3 AND B0=1),0),0);
B40:=IF(DATE<=年月日,IF(CURRBARSCOUNT>=9,IF(EXIST(S9=1,BARSCOUNT(CLOSE)+1),COUNT(B0=1,BARSLAST(S9=1))=4 AND B0=1,COUNT(B0=1,(-1))=4 AND B0=1),0),0);
B50:=IF(DATE<=年月日,IF(CURRBARSCOUNT>=9,IF(EXIST(S9=1,BARSCOUNT(CLOSE)+1),COUNT(B0=1,BARSLAST(S9=1))=5 AND B0=1,COUNT(B0=1,(-1))=5 AND B0=1),0),0);
B60:=IF(DATE<=年月日,IF(CURRBARSCOUNT>=9,IF(EXIST(S9=1,BARSCOUNT(CLOSE)+1),COUNT(B0=1,BARSLAST(S9=1))=6 AND B0=1,COUNT(B0=1,(-1))=6 AND B0=1),0),0);
B70:=IF(DATE<=年月日,IF(CURRBARSCOUNT>=9,IF(EXIST(S9=1,BARSCOUNT(CLOSE)+1),COUNT(B0=1,BARSLAST(S9=1))=7 AND B0=1,COUNT(B0=1,(-1))=7 AND B0=1),0),0);
B80:=IF(DATE<=年月日,IF(CURRBARSCOUNT>=9,IF(EXIST(S9=1,BARSCOUNT(CLOSE)+1),COUNT(B0=1,BARSLAST(S9=1))=8 AND B0=1,COUNT(B0=1,(-1))=8 AND B0=1),0),0);
B90:=IF(DATE<=年月日,IF(CURRBARSCOUNT>=9,IF(EXIST(S9=1,BARSCOUNT(CLOSE)+1),COUNT(B0=1,BARSLAST(S9=1))=9 AND B0=1,COUNT(B0=1,(-1))=9 AND B0=1),0),0);
B100:=IF(DATE<=年月日,IF(CURRBARSCOUNT>=9,IF(EXIST(S9=1,BARSCOUNT(CLOSE)+1),COUNT(B0=1,BARSLAST(S9=1))=10 AND B0=1,COUNT(B0=1,(-1))=10 AND B0=1),0),0);
B110:=IF(DATE<=年月日,IF(CURRBARSCOUNT>=9,IF(EXIST(S9=1,BARSCOUNT(CLOSE)+1),COUNT(B0=1,BARSLAST(S9=1))=11 AND B0=1,COUNT(B0=1,(-1))=11 AND B0=1),0),0);
TDC:=CLOSE<REF(LOW,2) AND LOW<REF(LOW,1) AND CLOSE<REF(CLOSE,1);
PTDC:=IF(TDC=1,CLOSE,1000000);
P1:=1;
CY1:=IF(EXIST(B10=1,BARSCOUNT(CLOSE)+1),IF(COUNT(S9=1,BARSLAST(B10=1))=0,IF(CLOSE>REF(实际最高价B,BARSLAST(B10=1)),IF(CURRBARSCOUNT>1,CLOSE>REFX(OPEN,1) AND HIGH>REFX(HIGH,1) OR REFX(OPEN,1)<REF(实际最高价B,BARSLAST(B10=1)),1),1),0),0);
QX1A:=IF(EXIST(B10=1,BARSCOUNT(CLOSE)+1),COUNT(S9=1,BARSLAST(B10=1))=0,0) AND IF(EXIST(B10=1,BARSCOUNT(CLOSE)+1),IF(COUNT(S9=1,BARSLAST(B10=1))=0,COUNT(CY1=0,BARSLAST(B10=1)+1)=0,0),0);
QX1B:=IF(EXIST(B20=1,BARSCOUNT(CLOSE)+1),IF(COUNT(S9=1,BARSLAST(B20=1))=0,IF(REF(实际最高价B,BARSLAST(B10=1))>=REF(实际最高价B,BARSLAST(B20=1)) AND REF(实际最低价B,BARSLAST(B10=1))<=REF(实际最低价B,BARSLAST(B20=1)),1,REF(真实波幅B,BARSLAST(B10=1))>REF(真实波幅B,BARSLAST(B20=1)) OR 1.618*REF(真实波幅B,BARSLAST(B10=1))<REF(真实波幅B,BARSLAST(B20=1))),1),1);
QX1:=QX1A AND QX1B;
BS18:=IF(EXIST(B10=1,BARSCOUNT(CLOSE)+1),IF(BARSLAST(B10=1)>=8,COUNT(CLOSE<=REF(LOW,2),BARSLAST(B10=1)-7)=8 AND CLOSE<=REF(LOW,2) AND QX1,0),0);
TBS113:=IF(EXIST(B10=1,BARSCOUNT(CLOSE)+1),IF(BARSLAST(B10=1)>=8,COUNT(CLOSE<=REF(LOW,2),BARSLAST(B10=1)-7)>=13 AND CLOSE<=REF(LOW,2) AND QX1 AND LOW<=REF(CLOSE,BARSLAST(BS18=1)),0),0);
BS113:=IF(EXIST(B10=1,BARSCOUNT(CLOSE)+1),COUNT(TBS113=1,BARSLAST(B10=1)+1)=1 AND TBS113=1,0);
TDC1:=IF(EXIST(B10=1,BARSCOUNT(CLOSE)+1),IF(COUNT(TDC=1,BARSL |
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!