BS操盘线源码 主图 通达信 贴图
BU:=CROSS(HIGH,SAR(3,1,20));
SEL:=CROSS(SAR(3,1,20),LOW);
VAR1:=BARSLAST(NOT(HIGH<SAR(3,1,20)));
VAR2:=BARSLAST(NOT(LOW>SAR(3,1,20)));
{股票指标网}
DRAWICON(BU,L-(HIGH*0.02),1);
DRAWICON(SEL,H+(HIGH*0.02),2);
DRAWICON(BU,(LOW -(HIGH*0.05)),7);
DRAWICON(SEL,H+(HIGH*0.05),8);
STICKLINE(LOW>SAR(3,1,20) AND C<=O,HIGH,OPEN,0.5,1),COLORRED;
STICKLINE(LOW>SAR(3,1,20) AND C<=O,CLOSE,OPEN,2.1,1),COLORRED;
STICKLINE(LOW>SAR(3,1,20) AND C<=O,CLOSE,LOW,0.5,1),COLORRED;
STICKLINE(HIGH<SAR(3,1,20) AND C>O,HIGH,CLOSE,0.5,1),COLORCYAN;
STICKLINE(HIGH<SAR(3,1,20) AND C>O,CLOSE,OPEN,2.1,1),COLORCYAN;
STICKLINE(HIGH<SAR(3,1,20) AND C>O,OPEN,LOW,0.5,1),COLORCYAN;
{DRAWTEXT(HIGH<SAR(3,1,20) AND HIGH>=REF(HIGH,1),HIGH,'明日突破'+FORCAST(SAR(3,1,20),MAX(VAR1,2))+'建议关注');
DRAWTEXT(HIGH<SAR(3,1,20) AND HIGH<REF(HIGH,1),HIGH,'持币观望');
DRAWTEXT(LOW>SAR(3,1,20) AND LOW<=REF(LOW,1),LOW,'明日跌破'+FORCAST(SAR(3,1,20),MAX(VAR2,2))+'注意止盈');
DRAWTEXT(LOW>SAR(3,1,20) AND LOW>REF(LOW,1),LOW,'继续持股');};
PLOYLINE(BU OR SEL,L),COLORYELLOW;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
BU赋值:CROSS(最高价,SAR(3,1,20))
SEL赋值:CROSS(SAR(3,1,20),最低价)
VAR1赋值:上次NOT(最高价
VAR2赋值:上次NOT(最低价>SAR(3,1,20距今天数))
{股票指标网}
DRAWICON(BU,L-(最高价*0.02),1)
DRAWICON(SEL,H+(最高价*0.02),2)
DRAWICON(BU,(最低价 -(最高价*0.05)),7)
DRAWICON(SEL,H+(最高价*0.05),8)
STICKLINE(最低价>SAR(3,1,20) AND C<=O,最高价,开盘价,0.5,1),画红色
STICKLINE(最低价>SAR(3,1,20) AND C<=O,收盘价,开盘价,2.1,1),画红色
STICKLINE(最低价>SAR(3,1,20) AND C<=O,收盘价,最低价,0.5,1),画红色
STICKLINE(最高价O,最高价,收盘价,0.5,1),画青色
STICKLINE(最高价O,收盘价,开盘价,2.1,1),画青色
STICKLINE(最高价O,开盘价,最低价,0.5,1),画青色
{DRAWTEXT(最高价=1日前的最高价,最高价,'明日突破'+FORCAST(SAR(3,1,20),VAR1和2较大值)+'建议关注')
DRAWTEXT(最高价
DRAWTEXT(最低价>SAR(3,1,20) AND 最低价<=1日前的最低价,最低价,'明日跌破'+FORCAST(SAR(3,1,20),VAR2和2较大值)+'注意止盈')
DRAWTEXT(最低价>SAR(3,1,20) AND 最低价>1日前的最低价,最低价,'继续持股')
}
PLOYLINE(BU OR SEL,L),画黄色