{周K线}
AQ:=O#WEEK;B:=C#WEEK;
AAQ:=H#WEEK;BB:=L#WEEK;
STICKLINE(B>=AQ,AAQ,BB,4,0),COLOR00004A;
STICKLINE(B
DRAWKLINE(H,O,L,C);
{稳赚波段【主图】}
MA3:=3;
MA5:=MA(C,5);
MA20:MA(C,20),COLORGREEN;
{MA20】数值}
TT3:=(CURRBARSCOUNT=5-4);
DRAWNUMBER(TT3 AND MA20,MA20,MA20),COLORYELLOW;
DRAWTEXT(ISLASTBAR,MA20,' 【MA20】'),COLORYELLOW;
趋势线:IF(MA5>MA20,MA20,MA5),COLORMAGENTA{COLOR0000FF},LINETHICK2;
{IF(趋势线>REF(趋势线,1),趋势线,DRAWNULL),COLORRED,LINETHICK2;}
IF(趋势线
VAR1:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR3:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR6:=VAR3-VAR1;
Z:=MA(VAR6,MA3);
{STICKLINE(Z>=0 ,O,C,2,0),COLORRED;
STICKLINE(Z>=0 ,H,MAX(O,C),0,1),COLORRED;
STICKLINE(Z>=0 ,MIN(O,C),L,0,1),COLORRED;
STICKLINE(Z<0 ,O,C,2,1),COLORCYAN;
STICKLINE(Z<0 ,H,MAX(O,C),0,1),COLORCYAN;
STICKLINE(Z<0 ,MIN(O,C),L,0,1),COLORCYAN;}
STICKLINE(Z>=0 AND MA20>C,O,C,2,0),COLORBLUE;
STICKLINE(Z>=0 AND MA20>C,H,MAX(O,C),0,1),COLORBLUE;
STICKLINE(Z>=0 AND MA20>C,MIN(O,C),L,0,1),COLORBLUE;
STICKLINE(Z<0 AND MA20
{DRAWICON(CROSS(CLOSE,WW),LOW-0.002,1);
DRAWICON(CROSS(WW,CLOSE),HIGH+0.006,2);}
{三线合一【主图】}
M25:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1),COLORGREEN,LINETHICK1,DOTLINE;
M35:=IF(MA(CLOSE,17)