七剑下天山(大智慧)
e1:=BARSCOUNT(c);
ah:=hhv(h,200);
al:=llv(l,200);
b0:=(ah-al)/40;
kb1:=h+b0;
kb2:=l-b0;
stickline((e1+0)/34=FLOOR((e1+0)/34),kb2,kb2-3*b0,2,0),COLOryellow,LINETHICK3;
drawtext((e1+0)/34=FLOOR((e1+0)/34),kb2-2*b0,'时间窗'),COLORwhite;
STICKLINE((OPEN >=
CLOSE),CLOSE,OPEN,5,0),colorFF6C00;
STICKLINE((OPEN >=
CLOSE),CLOSE,OPEN,4,0),colorFF7B00;
STICKLINE((OPEN >=
CLOSE),CLOSE,OPEN,3,0),colorFF9C00;
STICKLINE((OPEN >=
CLOSE),CLOSE,OPEN,2,0),colorFFBE00;
STICKLINE((OPEN >=
CLOSE),CLOSE,OPEN,2.5,0),colorFFCC00;
STICKLINE((OPEN >=
CLOSE),CLOSE,OPEN,1.5,0),colorFFFF00;
STICKLINE((CLOSE >=
OPEN),CLOSE,OPEN,6,0),color070084;
STICKLINE((CLOSE >=
OPEN),CLOSE,OPEN,5,0),color0000A3;
STICKLINE((CLOSE >=
OPEN),CLOSE,OPEN,4,0),color0000B7;
STICKLINE((CLOSE >=
OPEN),CLOSE,OPEN,3,0),color0000CD;
STICKLINE((CLOSE >=
OPEN),CLOSE,OPEN,2,0),color0000E9;
STICKLINE((CLOSE >=
OPEN),CLOSE,OPEN,2,0),color0754E9;
STICKLINE((CLOSE >=
OPEN),CLOSE,OPEN,1.5,0),color076EF3;
STICKLINE((CLOSE >=
OPEN),CLOSE,OPEN,1,0),color077BF3;
STICKLINE((CLOSE >
OPEN),OPEN,LOW,1,0),color0726CA;
STICKLINE((CLOSE >
OPEN),CLOSE,HIGH,1,0),color0726CA;
STICKLINE((OPEN >
CLOSE),CLOSE,LOW,1,0),colorDE9100;
STICKLINE((OPEN >
CLOSE),OPEN,HIGH,1,0),colorDE9100;
卖出线:=98;
阶段卖:=96;
趋势4:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA
(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
底部:=10;
买入信号:drawicon(crOSS(趋势4,底部),low,1);
卖出:drawicon(cross(卖出线,趋势4),high,2);
顶压:HHv(ma(h,11),50),Color00FF00,LINETHICK3;
短压:HHv(ma(h,11),15),Color0090E0,LINETHICK2;
XL1:=llv(ma(h,11),1);
趋势3:IF(XL1>=短压,短压,XL1),Colorwhite,LINETHICK1;
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
Kk1:=ref(RSV,1);Kk2:=ref(RSV,2);ka:=rsv;Kk3:=ref(RSV,3);Kk4:=ref(RSV,4);kk5:=ref(rsv,5);
kk80:=3*80-(pow(2/3,1)*kk1+pow(2/3,2)*kk2+pow(2/3,3)*kk3+pow(2/3,4)*kk4+3*pow(2/3,5)*kk5);
kkk80:=sma((kk80*(HHV(H,9)-LLV(L,9))/100)+LLV(L,9),3,1);
交叉:=3*sma(sma(ka,3,1),3,1)-(pow(2/3,1)*kk1+pow(2/3,2)*kk2+pow(2 /3,3)*kk3+pow(2/3,4)*kk4+3*pow(2/3,5)*kk5);
k转折:=3*sma(ka,3,1)-(pow(2/3,1)*kk1+pow(2/3,2)*kk2+pow(2 /3,3)*kk3+pow(2/3,4)*kk4+3*pow(2/3,5)*kk5);
k转折价0:=sma((k转折*(HHV(H,9)-LLV(L,9))/100)+LLV(L,9),3,1);
日交叉0:=sma((交叉*(HHV(H,9)-LLV(L,9))/100)+LLV(L,9),3,1);
DRAWTEXT(k转折价0>=kkk80 and
k转折价0>=日交叉0,日交叉0,'●'),COLORff00ff;
趋势:=
3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)