同花顺BS买卖点公式
源码
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWTEXT(bu,LOW,'B'),ALIGN1,VALIGN0,colorred,linethick2;
DRAWTEXT(sel,HIGH,'S'),ALIGN1,VALIGN2,colorgreen,linethick2;
STICKLINE(买线>=卖线,LOW,HIGH,0,1),colorred;
STICKLINE(买线>=卖线,CLOSE,OPEN,10,0),color000044;
STICKLINE(买线>=卖线,CLOSE,OPEN,7,0),color000066;
STICKLINE(买线>=卖线,CLOSE,OPEN,3,0),color000088;
STICKLINE(买线>=卖线,CLOSE,OPEN,1,0),colorred;
STICKLINE(买线<卖线,CLOSE,OPEN,10,0),color004400;
STICKLINE(买线<卖线,CLOSE,OPEN,7,0),color006600;
STICKLINE(买线<卖线,CLOSE,OPEN,3,0),color008800;
STICKLINE(买线<卖线,CLOSE,OPEN,1,0),color00ff00;
STICKLINE(买线<卖线,LOW,HIGH,0,1),color00ff00;
STICKLINE(CROSS(买线,卖线) ,OPEN,CLOSE,10,0),color0033ff;
STICKLINE(CROSS(买线,卖线) ,OPEN,CLOSE,7,0),color0055ff;
STICKLINE(CROSS(买线,卖线) ,OPEN,CLOSE,3,0),color0099ff;
STICKLINE(CROSS(买线,卖线) ,OPEN,CLOSE,1,0),color00ffff;
STICKLINE( CROSS(卖线,买线),OPEN,CLOSE,10,0),color333300;
STICKLINE( CROSS(卖线,买线),OPEN,CLOSE,7,0),color555500;
STICKLINE( CROSS(卖线,买线),OPEN,CLOSE,3,0),color777700;
STICKLINE( CROSS(卖线,买线),OPEN,CLOSE,1,0),colorffff00;
指导线:EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),linethick3,ColorFFffFF;
界:MA(CLOSE,27),linethick2,Color00FFFF;