指标简单明了,根据红色箭头操作,就这样。
源码:
AA:=EMA(C,2);
BB:=EMA(SLOPE(C,21)*20+C,42);
买:=CROSS(AA,BB);
卖:=CROSS(BB,AA);
DRAWICON(买,L-0.1,1);
DRAWICON(卖,H+0.1,2);
STICKLINE(AA>=BB,LOW,HIGH,0.0,1),COLORRED;
STICKLINE(AA>=BB,CLOSE,OPEN,2,1),COLORRED;
STICKLINE(AA<BB,LOW,HIGH,0.0,1),COLORGREEN;
STICKLINE(AA<BB,CLOSE,OPEN,2,1),COLORGREEN;
DRAWTEXT_FIX(C>O,0.01,0.95,0,’SGZBK.TOP’),COLORYELLOW;
散户:EMA(CLOSE,5),COLORWHITE;
操盘:MA(CLOSE,9),COLORCYAN,LINETHICK2;
界点:MA(CLOSE,20),COLORMAGENTA;
日:=150;
昨前:=3;
高1:=REF(HHV(H,日),昨前);
低1:=REF(LLV(L,日),昨前);
H1:=高1-(高1-低1)*0.191;
H2:=高1-(高1-低1)*0.382;
H3:=高1-(高1-低1)*0.5;
H4:=高1-(高1-低1)*0.618;
H5:=高1-(高1-低1)*0.809;
指标仅供参考,不做投资依据。