在线检测未来函数

同花顺绿色BS跟庄主图指标公式

来源:Internet,编辑:股旁网,2011-07-07

绿色: sma(close,2,1),colorgreen,linethick2;
var4:=(low+high+close)/3;
操作: ma(var4,5),linethick2,colorwhite;
拉升:hhv(操作,13),colorred,linethick1;
压力:hhv(操作,60),colorred;
买卖:llv(操作,13),linethick1,color00ff00;
底部支撑: llv(low,60)*1.02,color00ccff;
顶部: hhv(high,60)*0.98,colorffffcc;
stickline(操作>ref(操作,1),操作,操作+0.018,5,0),coloryellow,linethick4;
stickline(拉升>ref(拉升,1),拉升,拉升+0.018,5,0),coloryellow,linethick2;
stickline(拉升=ref(拉升,1),拉升,拉升,1,1),colorred;
stickline(买卖=ref(买卖,1),买卖,买卖,1,1),colorred;
stickline(买卖>ref(买卖,1),买卖,买卖+0.028,4,1),colorf00ff0,linethick2;
stickline(顶部=ref(顶部,1),顶部,顶部,7,1),colorred;
stickline(压力=ref(压力,1),压力,压力,7,1),colorred;
stickline(底部支撑=ref(底部支撑,1),底部支撑,底部支撑,1,1),colorred;
{drawgbk(date>900101,strip(rgb(0,150,130),rgb(0,0,0),0));}
买线:=ema(c,2);
卖线:=ema(slope(c,21)*20+c,42);
bu:=cross(买线,卖线);
sel:=cross(卖线,买线);
drawtext(bu,low,'b买'),colorred,linethick3;
drawtext(bu,low,' ̄'),color208fff,linethick3;
drawtext(sel,high,' ̄'),colorffff00,linethick3;
drawtext(sel,high,'s卖'),colormagenta,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

同花顺绿色BS跟庄主图指标公式

相关文章