指标自带买提示,红色持股,绿色持币,效果见“指标图示”
BB:ZIG(3,50/5),COLOREEDDCC;
G:MA(BB,2),COLORAA99EE;
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
STICKLINE(买线>=卖线,LOW,HIGH,0.1,1), colorred;
STICKLINE(买线>=卖线,CLOSE,OPEN,8,1), colorred;
STICKLINE(买线<卖线,CLOSE,OPEN,8,0), color00ff00;
STICKLINE(买线<卖线,LOW,HIGH,0.1,1), color00ff00;
STICKLINE(CROSS(买线,卖线) OR CROSS(卖线,买线),OPEN,CLOSE,6,0),colorffff00;
IF (CLOSE>REF(CLOSE,1)) {
变:EMA(CLOSE,5),LINETHICK1,colorred;}
ELSE
IF (CLOSE<=REF(CLOSE,1))
{变:EMA(CLOSE,5),LINETHICK1,colorgreen;
}