买线:=EMA(C,2); 卖线:=EMA(SLOPE(C,21)*20+C,42); BU:=CROSS(买线,卖线); SEL:=CROSS(卖线,买线); DRAWICON(BU,L-0.2,7); DRAWICON(SEL,H+0.2,8); STICKLINE(买线>=卖线,LOW,HIGH,0.0,1),COLORRED; STICKLINE(买线>=卖线,CLOSE,OPEN,2,1),COLORRED; STICKLINE(买线<卖线,LOW,HIGH,0.0,1),COLORLIBLUE; STICKLINE(买线<卖线,CLOSE,OPEN,2,1),COLORLIBLUE; STICKLINE(BU,OPEN,CLOSE,2,0),COLORYELLOW; STICKLINE(SEL,OPEN,CLOSE,2,0),COLORBLUE; LC:=REF(CLOSE,1); RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); FF:=EMA(CLOSE,3); MA15:=EMA(CLOSE,21); AA:=(HHV(HIGH,20) - (2 * ATR)); BB:=CROSS(CLOSE,REF(HHV(HIGH,55),1)); SSS:=CROSS(MIN(MA(CLOSE,13),AA),CLOSE); BBB:=BARSLAST(BB); SSSB:=BARSLAST(SSS); B1:=((BBB = 0) AND (REF(SSSB,1) < REF(BBB,1))); B1B:=BARSLAST(B1); B2:=((((BB = 1) AND (B1B < SSSB)) AND (B1B > 0)) AND (COUNT(BB,SSSB) < 3)); B2B:=BARSLAST(B2); B3:=((((BB = 1) AND (B2B < B1B)) AND (COUNT(BB,SSSB) < 4)) AND (COUNT(BB,SSSB) > 2)); 上轨:=HHV(H,150),COLORWHITE,LINETHICK2; 下轨:=LLV(L,150),COLORWHITE,LINETHICK2; VAR1:=(上轨-下轨); 短线:上轨-VAR1*0.25,COLORFF0000; 上箱体:上轨-VAR1*0.375,CIRCLEDOT,COLORWHITE; 中线:上轨-VAR1*0.5,COLORYELLOW; 下箱体:上轨-VAR1*0.625,CIRCLEDOT,COLORWHITE; 长线:上轨-VAR1*0.75,COLOR0000FF; |
