等级: 免费版
- 注册:
- 2021-6-5
- 曾用名:
|
问题
1 序列i1与i3重叠
2 序列2位置不对
ma10:=ma(c,10);
ma20:=ma(c,20);
majc:=cross(ma10,ma20);
masc:=cross(ma20,ma10);
LEN1:=BARSLAST(majc)+1;
LEN2:=BARSLAST(masc)+1;
redH_location:=HHVBARS(c,len1);
greenL_location:=LLVBARS(c,LEN2);
S1:BACKSET(masc,redH_location+1);
S2:BACKSET(majc,greenL_location+1);
A:DRAWLINE(cross(s1,0),H,cross(s2,0) OR ISLASTBAR,L,0),COLORYELLOW,LINETHICK2;
B:DRAWLINE(cross(s2,0),L,cross(s1,0) OR ISLASTBAR,H,0),COLORwhite,LINETHICK2;
len_5:=SUMBARS(cross(s2,0),1),NODRAW;
len_4:=SUMBARS(cross(s1,0),1);
len_3:=SUMBARS(cross(s2,0),2);
len_2:=SUMBARS(cross(s1,0),2);
len_1:=SUMBARS(cross(s2,0),3);
len_0:=SUMBARS(cross(s1,0),3);
i5:=ref(l,len_5-1),NODRAW;
i4:=ref(h,len_4-1),NODRAW;
i3:=ref(l,len_3-1),NODRAW;
i2:=ref(h,len_2-1),NODRAW;
i1:=ref(l,len_1-1),NODRAW;
i0:=ref(h,len_0-1),NODRAW;
cd1:=i1>i3 and i3>i5 and i0>i2 and i2>i4 and i4<i0 and i1<i0 and i3<i2 and i5<i4;
cd2:=((i3-i2))<((i1-i0)) and ((i3-i2))<((i5-i4));
cd3:=(i0-i5)/i0>=0.005;
cd:cd1 and cd2 and cd3,NODRAW;
DRAWICON(cd and cross(s2,0),h,3);
MA(C,50);
一:cross(s2,0) and i1<i0 ;,NODRAW;
DRAWTEXT(一 , (l*0.99995), 'i1'),COLORyellow,LINETHICK6;
二: cross(s1,0) and i0>i1 and i0>i2 and i2>i1 and i2>MA(C,50) ,NODRAW;//and ma(c,10)>ref(ma(c,10),1) and i2>ma(c,10)and i2>ma(c,20)and ma(c,10)>ma(c,20),
DRAWTEXT(二 , (H*1.008), '2'),COLORGREEN,LINETHICK6;
三:cross(s2,0) and i3<i2 and i3<i1 ,NODRAW;
DRAWTEXT(三 , L*0.9916, 'i3'),COLORwhite,LINETHICK6;
四:cross(s1,0) and i2<i1 and i2<i0 and i1<i0 and i4<i2{and i4>i3 and i4<i1 },NODRAW;// and i4>ma(c,20)and i4>ma(c,10)and ma(c,20)>ma(c,10)and ma(c,10)>ref(ma(c,10),1)
DRAWTEXT(四 , (H*1.008), '4'),COLORCYAN,LINETHICK6;
五:cross(s2,0) and cd,NODRAW;
DRAWTEXT(五 , REF(H,1), '五'),COLORCYAN,LINETHICK6;
高低连接用了金字塔模板代码 |
|