指数移动平均线,K线站上所有均线,一波行情启动,判断牛熊。 MA1:EMA(CLOSE,P1); MA2:EMA(CLOSE,P2);
MA3:EMA(CLOSE,P3);
MA4:EMA(CLOSE,P4);
MA5:EMA(CLOSE,P5);
MA6:EMA(CLOSE,P6);
MA7:EMA(CLOSE,P7);
STICKLINE(CLOSE>=MA3,LOW,HIGH,0.0,1),colorred;
STICKLINE(CLOSE>=MA3,CLOSE,OPEN,9,1),colorred;
STICKLINE(CLOSE<MA3,LOW,HIGH,0.0,1),colorgreen;
STICKLINE(CLOSE<MA3,CLOSE,OPEN,9,1),colorgreen;
BU:=( REF(CLOSE,1)<MA3 AND CLOSE >=MA3);
SEL:=( REF(CLOSE,1)>MA3 AND CLOSE <=MA3);
STICKLINE(BU,OPEN,CLOSE,9,0),coloryellow;
STICKLINE(SEL,OPEN,CLOSE,9,0),colorblue;
|
