最新游戏动态|分享一个非常漂亮的通达信主图公式(炫丽主图)( 三 )


L10304:=(D20304ANDNOT(D10304ANDE10304=E20304));
X10304:=REF(BARSLAST(H10304),1)+1;
F10304:=BACKSET(H10304ANDCOUNT(L10304,X10304)>0,LLVBARS(IF(L10304,LOW,10000),X10304));
G10304:=F10304>REF(F10304,1);
I10304:=BACKSET(G10304,2);
LD0304:=I10304>REF(I10304,1);{过滤后低点}
L20304:=LD0304ORBARSTATUS=2ORBARSCOUNT(CLOSE)=1;
X20304:=REF(BARSLAST(L20304),1)+1;
F20304:=BACKSET(L20304ANDCOUNT(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<OANDC>REF(C,1),H,6);{假阴真阳}
均价:AMOUNT/VOL/100,NODRAW;
假阴0:=O>CAND均价>REF(C,1);
DRAWTEXT(假阴0,L-0.2,'假阴↖'),COLORE8E8E8;
STICKLINE(假阴0,O,C,1,0),COLORRED;
VVOL:=IF(CURRBARSCOUNT=1ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL);{模拟量}
H_L:=0.1*CONST(HHV(VOL,240));
长阴短柱:=C/REF(C,1)<=0.96ANDV<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+T01ANDH>T1HIGH));
T2HIGH:=CONST(REF(HIGH,T02));
T03:=CONST(BARSLAST(CURRBARSCOUNT>MM+T02ANDHIGH>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:=(D6AANDNOT(D7AANDE6A>=E7A))ORBARSTATUS=2ORBARSCOUNT(CLOSE)=1;
H7A:=D6AANDNOT(D7AANDE6A>=E7A);
L6A:=D7AANDNOT(D6AANDE6A=E7A);
X6A:=REF(BARSLAST(H6A),1)+1;
F6A:=BACKSET(H6AANDCOUNT(L6A,X6A)>0,LLVBARS(IF(L6A,LOW,10000),X6A));
G6A:=F6A>REF(F6A,1);
I6A:=BACKSET(G6A,2);
LD2A:=I6A>REF(I6A,1);
L7A:=LD2AORBARSTATUS=2ORBARSCOUNT(CLOSE)=1;


推荐阅读