beyond202104 发表于 2023-8-28 16:47:23

通达信通道副图源码


DRAWGBKLAST(DATE>900101,STRIP(RGB(0,0,100),RGB(0,0,0),0));   

DRAWTEXTABS(20,10,STKLABEL+' '+STKNAME+' '+BKNAME),COLOR00FFFF;   

STICKLINE(C>=O,C,O,8,0),COLOR0F0FFF;   

STICKLINE(C>=O,C,O,7,0),COLOR0F0FFF;   

STICKLINE(C>=O,C,O,6,0),COLOR2626FF;   

STICKLINE(C>=O,C,O,5,0),COLOR4444FF;   

STICKLINE(C>=O,C,O,4,0),COLOR6060FF;   

STICKLINE(C>=O,C,O,2,0),COLOR7777FF;   

STICKLINE(C>=O,H,L,0,0),COLOR8E8EFF;   

STICKLINE(C<O,C,O,8,0),COLOR646400;   

STICKLINE(C<O,C,O,7,0),COLOR828200;   

STICKLINE(C<O,C,O,6,0),COLOR9B9B00;   

STICKLINE(C<O,C,O,5,0),COLORB7B700;   

STICKLINE(C<O,C,O,4,0),COLORCECE00;   

STICKLINE(C<O,C,O,2,0),COLORFFFF66;   

STICKLINE(C<O,H,L,0,0),COLORFFFF6F;   

AAA:=(3*C+H+L+O)/6;   

VAR1:(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36,COLORFFFFFF;   

VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;   

VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;   

VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;   

VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;   

VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;   

PARTLINE(VAR6,VAR1=VAR6,RGB(0,255,0),VAR1>VAR6,RGB(255,255,0));   

PARTLINE(VAR4,VAR4=VAR1,RGB(255,0,255),VAR4>VAR1,RGB(0,255,0)),LINETHICK2;   

PARTLINE(VAR5,VAR6=VAR5,RGB(0,255,0),VAR6>VAR5,RGB(255,0,0)),LINETHICK2;   

BBB:=VAR1>VAR6 AND REF(VAR1,1)=REF(VAR6,1);   

CCC:=VAR1>VAR6 AND VAR6>VAR4 AND REF(VAR1,1)=REF(VAR4,1);   

DDD:=VAR1=VAR4 AND VAR4>REF(VAR4,1);   

EEE:=VAR1>VAR6 AND VAR1>REF(VAR1,1) AND VAR6>REF(VAR6,1);   

FFF:=REF(VAR1,1)=REF(VAR4,1) AND VAR4>VAR1;   

GGG:=VAR1=VAR6 AND VAR6<REF(VAR6,1);   

HHH:=VAR1<REF(VAR1,1) AND VAR5>VAR1;   

III:=(VAR1=VAR6) OR (VAR6=VAR4);   

IF BARSTATUS=2 AND BBB THEN BEGIN   

DRAWTEXTABS(320,25,'调整结束短线介入'),COLOR00FFFF;   

END   

ELSE   

IF BARSTATUS=2 AND CCC THEN BEGIN   

DRAWTEXTABS(320,40,'底部特征建仓时机'),COLOR00FFFF;   

END   

ELSE   

IF BARSTATUS=2 AND (DDD OR EEE) THEN BEGIN   

DRAWTEXTABS(320,40,'上升通道走势良好'),COLOR00FFFF;   

END   

ELSE   

IF BARSTATUS=2 AND FFF THEN BEGIN   

DRAWTEXTABS(320,25,'顶部特征注意风险'),COLOR00FFFF;   

END   

ELSE   

IF BARSTATUS=2 AND (GGG OR HHH OR III) THEN BEGIN   

DRAWTEXTABS(320,40,'下跌通道回避观望'),COLOR00FFFF;


小宏人男 发表于 2023-12-27 10:45:41

好贴不能沉!

冰棘琳致 发表于 2024-1-21 12:05:44

如果想获取全部资源,怎么操作?

风无痕0717 发表于 2024-1-21 13:49:36

谢谢楼主,共同发展

青青燕子2017 发表于 2024-3-1 01:09:34

找到好贴不容易,我顶你了,谢了

楚一帆 发表于 2024-3-10 22:52:35

顶贴光荣!
页: [1]
查看完整版本: 通达信通道副图源码