最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

TD主图源码通达信指标公式源码

IT圈 admin 31浏览 0评论

2024年3月17日发(作者:赫连坤)

年月日:=999999999999;

真实最低价:=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

卖出结构首根:=IF(DATE<=年月日,REF(CLOSE,1)<=REF(CLOSE,5) AND

CLOSE>REF(CLOSE,4),0);

TT:=CONST(BARSLASTCOUNT(CLOSE

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

E,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(CLO

SE,4))>=9 AND BARSNEXT(CLOSE<=REF(CLOSE,4))=1),0);

TDXSTEP118:DRAWNUMBER(CURRBARSCOUNT<=TT,LOW*0.995,TT+1-CURRBARSCOU

NT),COLOR00C0C0;

TDXSTEP119:DRAWNUMBER(CURRBARSCOUNT>TT AND

BARSLASTCOUNT(CLOSE

0=1)+1),COLOR00C0C0;

TDXSTEP120:DRAWNUMBER(CURRBARSCOUNT<=TTT,LOW*0.995,TTT+1-CURRBARSCO

UNT),COLOR00C0C0;

TDXSTEP121:DRAWNUMBER(CURRBARSCOUNT>TTT AND

BARSLASTCOUNT(CLOSE>REF(CLOSE,4))=BARSLAST(S0=1)+1,LOW*0.995,BARSLAST(S

0=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;

TD伪装:CLOSEOPEN AND LOW

TD马跳:OPENREF(MAX(CLOSE,OPEN),1) AND

0.01*AMOUNT/VOL>REF(MAX(CLOSE,OPEN),1),NODRAW;

TD马跳制胜:MAX(CLOSE,OPEN)<=REF(MAX(CLOSE,OPEN),1) AND

MIN(CLOSE,OPEN)>=REF(MIN(CLOSE,OPEN),1) AND CLOSE>REF(CLOSE,1),NODRAW;

TD开盘指标:OPENREF(LOW,1) AND

0.01*AMOUNT/VOL>REF(LOW,1),NODRAW;

TD陷阱指标:OPEN<=REF(MAX(CLOSE,OPEN),1) AND OPEN>=REF(MIN(CLOSE,OPEN),1)

AND CLOSE>REF(MAX(CLOSE,OPEN),1),NODRAW;

保守策略:REF(CLOSE,1)<=REF(CLOSE,5) AND CLOSE>REF(CLOSE,4),NODRAW;

TT6:=IF(EXIST(B0=1,BARSCOUNT(CLOSE)+1),BARSLASTCOUNT(CLOSE

=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

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)

HIGH>=REF(SH,BARSLAST(S9))),0);

NOTEXT5:IF(TT=6 AND

CURRBARSCOUNT=1,DRAWNULL,IF(BARSLASTCOUNT(CLOSE=6 AND

BARSLAST(B0)+1=BARSLASTCOUNT(CLOSE

COLOR00C0C0;

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,

COLOR00C0C0;

BN1:=BARSNEXT(B1=1);

SN1:=BARSNEXT(S1=1);

TDXSTEP122:DRAWICON(B,LOW*0.97,7);

TDXSTEP123:DRAWICON(S,HIGH*1.01,8);

2024年3月17日发(作者:赫连坤)

年月日:=999999999999;

真实最低价:=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

卖出结构首根:=IF(DATE<=年月日,REF(CLOSE,1)<=REF(CLOSE,5) AND

CLOSE>REF(CLOSE,4),0);

TT:=CONST(BARSLASTCOUNT(CLOSE

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

E,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(CLO

SE,4))>=9 AND BARSNEXT(CLOSE<=REF(CLOSE,4))=1),0);

TDXSTEP118:DRAWNUMBER(CURRBARSCOUNT<=TT,LOW*0.995,TT+1-CURRBARSCOU

NT),COLOR00C0C0;

TDXSTEP119:DRAWNUMBER(CURRBARSCOUNT>TT AND

BARSLASTCOUNT(CLOSE

0=1)+1),COLOR00C0C0;

TDXSTEP120:DRAWNUMBER(CURRBARSCOUNT<=TTT,LOW*0.995,TTT+1-CURRBARSCO

UNT),COLOR00C0C0;

TDXSTEP121:DRAWNUMBER(CURRBARSCOUNT>TTT AND

BARSLASTCOUNT(CLOSE>REF(CLOSE,4))=BARSLAST(S0=1)+1,LOW*0.995,BARSLAST(S

0=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;

TD伪装:CLOSEOPEN AND LOW

TD马跳:OPENREF(MAX(CLOSE,OPEN),1) AND

0.01*AMOUNT/VOL>REF(MAX(CLOSE,OPEN),1),NODRAW;

TD马跳制胜:MAX(CLOSE,OPEN)<=REF(MAX(CLOSE,OPEN),1) AND

MIN(CLOSE,OPEN)>=REF(MIN(CLOSE,OPEN),1) AND CLOSE>REF(CLOSE,1),NODRAW;

TD开盘指标:OPENREF(LOW,1) AND

0.01*AMOUNT/VOL>REF(LOW,1),NODRAW;

TD陷阱指标:OPEN<=REF(MAX(CLOSE,OPEN),1) AND OPEN>=REF(MIN(CLOSE,OPEN),1)

AND CLOSE>REF(MAX(CLOSE,OPEN),1),NODRAW;

保守策略:REF(CLOSE,1)<=REF(CLOSE,5) AND CLOSE>REF(CLOSE,4),NODRAW;

TT6:=IF(EXIST(B0=1,BARSCOUNT(CLOSE)+1),BARSLASTCOUNT(CLOSE

=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

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)

HIGH>=REF(SH,BARSLAST(S9))),0);

NOTEXT5:IF(TT=6 AND

CURRBARSCOUNT=1,DRAWNULL,IF(BARSLASTCOUNT(CLOSE=6 AND

BARSLAST(B0)+1=BARSLASTCOUNT(CLOSE

COLOR00C0C0;

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,

COLOR00C0C0;

BN1:=BARSNEXT(B1=1);

SN1:=BARSNEXT(S1=1);

TDXSTEP122:DRAWICON(B,LOW*0.97,7);

TDXSTEP123:DRAWICON(S,HIGH*1.01,8);

发布评论

评论列表 (0)

  1. 暂无评论