当前位置:首页 > 同花顺公式 > 正文

同花顺BS点买卖副图源码

2017-09-21网络 编 辑:翔博软件


主图上的买卖奌,低位连续出现红柱买入,高位连续出现绿柱卖出。

 买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
 BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWTEXT(bu,LOW,'买'),ALIGN1,VALIGN0,colorwhite,linethick3;
 DRAWTEXT(bu,LOW,' ̄'),ALIGN1,VALIGN0,Color208FFF,LINETHICK3;
 DRAWTEXT(sel,HIGH,' ̄'),ALIGN1,VALIGN0,ColorFFFF00,LINETHICK3;
 DRAWTEXT(sel,HIGH,'卖'),ALIGN1,VALIGN2,colorgreen,linethick3;
 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;
指导线: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),linethick1,ColorFFffFF;
界: MA(CLOSE,27),linethick1,Color00FFFF;
 DRAWTEXT(CROSS(指导线,界),界,'↑★'),ALIGN1,VALIGN0,colorred;
 DRAWTEXT(CROSS(界,指导线),界,'↓★'),ALIGN1,colorcyn;

大家都爱看
查看更多热点新闻
点击进入翔博软件旗下掌上指标--自助下载指标