BS操盘 副图源码介绍
BS操盘 副图源码
DRAWTEXTREL(100,100,'红线持股,绿线持币,B买S卖'),colorred;
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
指导线:EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),COLORFFFFFF;
界:MA(CLOSE,27),COLOR00FFFF;
drawflagtext(CROSS(指导线,界) OR CROSS(买线,卖线),C,'B买'),COLORMAGENTA;
partline(指导线,买线>=卖线),linethick3,COLORRED;
partline(指导线,买线<卖线),linethick2,colorgreen;
drawflagtext(CROSS(界,指导线) OR CROSS(卖线,买线),C,'S卖'),COLORGRAY;
DRAWICON(CROSS(买线,卖线),L,1);
DRAWICON(CROSS(卖线,买线),H,2);
gd20573