同花顺BS买卖线公式
源码
买线:EMA(C,2),colorred,LINETHICK1;
卖线:EMA(SLOPE(C,21)*21+C,42),POINTDOT,coloryellow;
买:=CROSS(买线,卖线);
卖:=CROSS(卖线,买线);
DRAWTEXT(买,LOW-0.1,'◢B'),COLORF00FF0,LINETHICK5;
DRAWTEXT(卖,HIGH+0.1,'◥S'),colorwhite,LINETHICK5;
STICKLINE(买线>=卖线,LOW,HIGH,0.1,1),colorred;
STICKLINE(买线>=卖线,CLOSE,OPEN,2,1),colorred;
STICKLINE(买线<卖线,CLOSE,OPEN,2,0),colorgreen;
STICKLINE(买线<卖线,LOW,HIGH,0.1,1),colorgreen;
STICKLINE(CROSS(买线,卖线)
OR CROSS(卖线,买线),OPEN,CLOSE,2,0),colorred;