通达信很牛的主图--时间之窗 主图源码

2016-12-13 19:48:00来源:本站整理浏览:721

 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);
 B7A:=FILTER(A7A,6);
 C7A:=BACKSET(B7A,6+1);
 D7A:=FILTER(C7A,6);
 E6A:=(REF(LLV(LOW,2*6),1)+REF(HHV(HIGH,2*6),1))/2;
 E7A:=(HIGH+LOW)/2;
 H6A:=(D6A AND NOT(D7A AND E6A>=E7A)) OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;
 H7A:=D6A AND NOT(D7A AND E6A>=E7A);
 L6A:=D7A AND NOT(D6A AND E6A=E7A);
 X6A:=REF(BARSLAST(H6A),1)+1;
 F6A:=BACKSET(H6A AND COUNT(L6A,X6A)>0,LLVBARS(IF(L6A,LOW,10000),X6A));
 G6A:=F6A>REF(F6A,1);
 I6A:=BACKSET(G6A,2);
 LD2A:=I6A>REF(I6A,1);
 L7A:=LD2A OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;
 X7A:=REF(BARSLAST(L7A),1)+1;
 F7A:=BACKSET(L7A AND COUNT(H7A,X7A)>0,HHVBARS(IF(H7A,HIGH,0),X7A));
 G7A:=F7A>REF(F7A,1);
 I7A:=BACKSET(G7A,2);
 HD2A:=I7A>REF(I7A,1);
 UU3A:=BACKSET(BARSTATUS=2,BARSLAST(LD2A)+1);
 VV3A:=UU3A>REF(UU3A,1);
 WW3A:=BACKSET(VV3A,REF(BARSLAST(LD2A),1)+2);
 XX3A:=WW3A>REF(WW3A,1);
 DRAWLINE(XX3A,L,VV3A,L,1),COLORCYAN,LINETHICK2;
 UU4A:=BACKSET(BARSTATUS=2,BARSLAST(HD2A)+1);
 VV4A:=UU4A>REF(UU4A,1);
 WW4A:=BACKSET(VV4A,REF(BARSLAST(HD2A),1)+2);
 XX4A:=WW4A>REF(WW4A,1);
 DRAWLINE(XX4A,H,VV4A,H,1),COLOR8000F0,LINETHICK2;

HIGHN:=10;LOWN:=10;
 HIGHDISPLAY:=0;
 LOWDISPLAY:=0;
 ZGDISPLAY:=0;
 MADISPLAY:=0;
 AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
 QY:=BACKSET(AA,HIGHN+1);
 CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);
 DRAWICON(CC,H*1.02,2);
 DDD:=BARSLAST(CC);
 GDTS:=IF(CC,BARSCOUNT(C),0);
 DINGBU:=IF(DDD,REF(H,DDD),H);
 DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
 DINGBU1:=REF(DINGBU,DDD+1);
 GDCS1:=CEILING(DINGBUTS);
 DINGBUTS1:=REF(DINGBUTS,DDD+1);
 GDCS2:=CEILING(DINGBUTS1);
 DINGBU2:=REF(DINGBU1,DDD+1);


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

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式