黄色K线为变盘关注,出现红色K线站上红色趋势线上买入参考,主图使用均线系统,如诺均线粘合空头趋势下注意不要参与。
买线:=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;