同花顺公式--绿色BS跟庄自用股票指标
绿色: 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
先将原码复制,然后打开-系统工功能-找到公式管理进入-点击新建-粘贴在大框内
(按键盘的CTRL+V)-公式名称:BS跟庄自用股票指标-点击确定.
(股票知识网zhishi.southmoney.com)
要闻导读
|
||||||||||
|