通达信时间之窗主图公式源码附图

2016-03-09 22:28:00来源:本站整理浏览:828

STICKLINE(C<TYX5 AND C>O,C,O,3,1),COLORRED;

{深绿}

STICKLINE(C<TYX5 AND C<O,H,L,0,0),COLOR007700;

STICKLINE(C<TYX5 AND C<O,C,O,3,0),COLOR005500;

STICKLINE(C<TYX5 AND C<O,C,O,2,0),COLOR006600;

STICKLINE(C<TYX5 AND C<O,C,O,1,0),COLOR007700;

{蓝}

STICKLINE(C>TYX5 AND C<O,H,L,0,0),COLORFFDD44;

STICKLINE(C>TYX5 AND C<O,C,O,3,0 ),COLORFF7700;

STICKLINE(C>TYX5 AND C<O,C,O,2,0 ),COLORFFAA22;

STICKLINE(C>TYX5 AND C<O,C,O,1 ,0 ),COLORFFDD44;

{黄}

STICKLINE(C>TYX5 AND C>O,H,L,0,0 ),COLOR00EEFF;

STICKLINE(C>TYX5 AND C>O,C,O,3,0 ),COLOR00AAFF;

STICKLINE(C>TYX5 AND C>O,C,O,2,0 ),COLOR00CCFF;

STICKLINE(C>TYX5 AND C>O,C,O,1,0 ),COLOR00EEFF;

{粉红}

STICKLINE(C>TYX4 AND C>O,H,L,0,0),COLORFF66AA;

STICKLINE(C>TYX4 AND C>O,C,O,3,0 ),COLORFF11FF;

STICKLINE(C>TYX4 AND C>O,C,O,2,0 ),COLORFF44FF;

STICKLINE(C>TYX4 AND C>O,C,O,1,0 ),COLORFF66FF;

{亮灰}

STICKLINE(C>TYX4 AND C<O,H,L,0,0),COLOR999999;

STICKLINE(C>TYX4 AND C<O,C,O,3,0),COLOR555555;

STICKLINE(C>TYX4 AND C<O,C,O,2,0),COLOR777777;

STICKLINE(C>TYX4 AND C<O,C,O,1,0),COLOR999999;

{深红}

STICKLINE(C>TYX3 AND C>O,H,L,0,0),COLOR0000DD;

STICKLINE(C>TYX3 AND C>O,C,O,3,0),COLOR000099;

STICKLINE(C>TYX3 AND C>O,C,O,2,0),COLOR0000BB;

STICKLINE(C>TYX3 AND C>O,C,O,1,0),COLOR0000DD;

{涨跌停K线}

STICKLINE((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,1,0),COLORYELLOW;

STICKLINE((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,1,0),COLORWHITE;

{突破}

STICKLINE(REF(COUNT(C<TYX3,5)=5,1) AND C>TYX3 AND C>O,C,O,1,0),COLOR00CCFF;

STICKLINE(REF(COUNT(C<TYX3,5)=5,1) AND C>TYX3 AND C>O,C,O,1,0),COLOR00CCFF;

{红绿三角【副图】}

A10304:=REF(HIGH,3)=HHV(HIGH,2*3+1);

B10304:=FILTER(A10304,3);

C10304:=BACKSET(B10304,3+1);

D10304:=FILTER(C10304,3);{高点}

A20304:=REF(LOW,3)=LLV(LOW,2*3+1);

B20304:=FILTER(A20304,3);

C20304:=BACKSET(B20304,3+1);

D20304:=FILTER(C20304,3);{低点}

E10304:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;

E20304:=(HIGH+LOW)/2;{高低点出现在同一K线上时可作取舍}

H10304:=(D10304 AND NOT(D20304 AND E10304>=E20304)) OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;

L10304:=(D20304 AND NOT(D10304 AND E10304=E20304));

X10304:=REF(BARSLAST(H10304),1)+1;

F10304:=BACKSET(H10304 AND COUNT(L10304,X10304)>0,LLVBARS(IF(L10304,LOW,10000),X10304));

G10304:=F10304>REF(F10304,1);

I10304:=BACKSET(G10304,2);

LD0304:=I10304>REF(I10304,1);{过滤后低点}

L20304:=LD0304 OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;

X20304:=REF(BARSLAST(L20304),1)+1;

F20304:=BACKSET(L20304 AND COUNT(H10304,X20304)>0,HHVBARS(IF(H10304,HIGH,0),X20304));

G20304:=F20304>REF(F20304,1);

I20304:=BACKSET(G20304,2);

HD0304:=I20304>REF(I20304,1);{过滤后高点}

UU0304:=BACKSET(BARSTATUS=2,BARSLAST(LD0304)+1);

VV0304:=UU0304>REF(UU0304,1);

UU20304:=BACKSET(BARSTATUS=2,BARSLAST(HD0304)+1);

VV20304:=UU20304>REF(UU20304,1);

{以下语句为三角形部分}

底:REF(L,BARSLAST(VV0304)),COLORYELLOW,LINETHICK0;

顶:REF(H,BARSLAST(VV20304)),COLORYELLOW,LINETHICK0;

{下跌三角形:绿色三角形画完介入}

STICKLINE(VV0304,顶,底,0,0),COLORGREEN,LINETHICK2;

DRAWLINE(VV20304,H,VV0304,L,0),COLORGREEN,LINETHICK2;{斜}

DRAWLINE(VV20304,H,VV0304,顶,0),COLORGREEN,LINETHICK2;

{上涨三角形:红色三角形画完出局}

STICKLINE(VV20304 ,顶,底,0,0),COLORBLUE,LINETHICK2;

DRAWLINE(VV0304,L,VV20304,H,0),COLORBLUE,LINETHICK2;{斜}

DRAWLINE(VV0304,L,VV20304,底,0),COLORBLUE,LINETHICK2;

DRAWICON(C<O AND C>REF(C,1),H,6);{假阴真阳}

均价:AMOUNT/VOL/100,NODRAW;

假阴0:=O>C AND 均价>REF(C,1);

DRAWTEXT(假阴0,L-0.2,'假阴↖'),COLORE8E8E8;

STICKLINE(假阴0,O,C,1,0),COLORRED;

VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);{模拟量}

H_L:=0.1*CONST(HHV(VOL,240));

长阴短柱:=C/REF(C,1)<=0.96 AND V<HHV(V,30)/1.9;

DRAWTEXT(长阴短柱 ,V+1.6*0.098,'长阴短柱↙'),COLORLICYAN;

MA05:=MA(C,5);

MA5角度: ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416,NODRAW;

T01:=CONST(LLVBARS(LOW,10));

T1HIGH:=CONST(REF(HIGH,T01));

MM:=CONST(CURRBARSCOUNT);

T02:=CONST(BARSLAST(CURRBARSCOUNT>MM+T01 AND H>T1HIGH));

T2HIGH:=CONST(REF(HIGH,T02));

T03:=CONST(BARSLAST(CURRBARSCOUNT>MM+T02 AND HIGH>T2HIGH));

T3HIGH:=CONST(REF(HIGH,T03));

攻击线:DRAWLINE(CURRBARSCOUNT=T03+1, T3HIGH, ISLASTBAR, T3HIGH,1),LINETHICK3,COLOR8080FF;

DRAWTEXT(ISLASTBAR, T3HIGH, '必杀攻击线')LINETHICK2,COLORCYAN;

A6A:=REF(HIGH,6)=HHV(HIGH,2*6+1);

B6A:=FILTER(A6A,6);

C6A:=BACKSET(B6A,6+1);

D6A:=FILTER(C6A,6);

A7A:=REF(LOW,6)=LLV(LOW,2*6+1);

上一页  [1] [2] [3]  下一页

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式