极度短线通达信公式 副图 源码附图
N:=28;
M:=48;
现价:C,COLOR80FFFF,LINETHICK2;
均价:MA(现价,N),COLOR0080FF,LINETHICK2;
均价M:MA(现价,M),COLOR800080,LINETHICK2;
PJ:=(均价*2+均价M)/3;
SJ1:=BARSLASTCOUNT(现价>=均价);
SJ2:=BARSLASTCOUNT(均价>=现价);
时间:MAX(SJ1,SJ2),NODRAW;
HH:=H*0.99;
LL:=(L*3+C)/4;
GD:=HHV(HH,时间);
DD:=HHV((PJ*3+C)/4,时间);
ZS0:=(GD-DD)/GD>0.5;
ZS1:=(GD-DD)/GD>0.30;
ZS2:=(GD-DD)/GD>0.25;
ZS3:=(GD-DD)/GD>0.2;
ZS4:=(GD-DD)/GD>0.15;
ZS5:=(GD-DD)/GD>0.1;
操作率:IF(ZS0,0.91,IF(ZS1,0.926,IF(ZS2,0.937,IF(ZS3,0.947,IF(ZS4,0.956,IF(ZS5,0.964,0.971))))))*10,NODRAW;
高点:=HHV(HH,时间)*操作率/10;
{股票指标网}
低点:=HHV((均价*3+C)/4,时间);
操作价:IF(现价>均价,高点,低点),COLOR8000FF,LINETHICK2;
市净率:C/FINANCE(34),NODRAW;
市净率28:MA(市净率,28),NODRAW;
DRAWTEXT(CROSS(现价,操作价),C,'买'),COLOR0000FF;
DRAWTEXT(CROSS(操作价,现价),C*0.98,'卖'),COLOR00FF00;
未来函数检测结果如下:
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
N赋值:28
M赋值:48
输出
现价:C,COLOR80FFFF,LINETHICK2
输出
均价:现价的N日简单移动平均,COLOR0080FF,LINETHICK2
均价M:现价的M日简单移动平均,COLOR800080,LINETHICK2
PJ赋值:(均价*2+均价M)/3
SJ1赋值:BARSLASTCOUNT(现价>=均价)
SJ2赋值:BARSLASTCOUNT(均价>=现价)
输出
时间:SJ1和SJ2较大值,NODRAW
HH赋值:H*0.99
LL赋值:(L*3+C)/4
GD赋值:时间日内HH最高值
DD赋值:HHV((PJ*3+C)/4,时间)
ZS0赋值:(GD-DD)/GD>0.5
ZS1赋值:(GD-DD)/GD>0.30
ZS2赋值:(GD-DD)/GD>0.25
ZS3赋值:(GD-DD)/GD>0.2
ZS4赋值:(GD-DD)/GD>0.15
ZS5赋值:(GD-DD)/GD>0.1
输出
操作率:IF(ZS0,0.91,IF(ZS1,0.926,IF(ZS2,0.937,IF(ZS3,0.947,IF(ZS4,0.956,IF(ZS5,0.964,0.971))))))*10,NODRAW
高点赋值:时间日内HH最高值*操作率/10
{股票指标网}
低点赋值:HHV((均价*3+C)/4,时间)
如果现价>均价返回高点否则返回低点
输出
市净率:C/FINANCE(34),NODRAW
市净率28:市净率的28日简单移动平均,NODRAW
DRAWTEXT(现价上穿操作价,C,'买'),COLOR0000FF
DRAWTEXT(操作价上穿现价,C*0.98,'卖'),COLOR00FF00