通达信三点特准副图+选股指标副图源码
DIF:=EMA(CLOSE,12)-EMA(CLOSE,29);
DEA:=EMA(DIF,9);
MD:(DIF-DEA)*2*50;
STICKLINE(MD>=REF(MD,1) AND MD>0,0,MD,2,0),COLORRED;
STICKLINE(MD< REF(MD,1) AND MD>0,0,MD,2,1),COLORC0C0C0;
STICKLINE(MD>REF(MD,1) AND MD< 0,0,MD,2,0),COLORFF8000;
蓝柱:=IF(MD>REF(MD,1) AND MD< 0,8,0);
红柱:=IF(MD>=REF(MD,1) AND MD>0,8,0);
操作价:MA((LOW+HIGH+CLOSE)/3,5),LINETHICK0,COLOR4080FF;
买:(IF(CROSS(C,操作价) AND 蓝柱 AND REF("KDJ.J",1)< 0 AND "KDJ.J">0,0.8,0))*50,STICK,COLOR00FF00,LINETHICK2;
VAR1:=4*SMA((CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100,5,1)- 3*SMA(SMA((CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100,5,1),3.2,1);
进:(IF(CROSS(C,操作价) AND 蓝柱 AND CROSS(VAR1,8),0.6,0))*40,COLORFFFFFF,STICK,LINETHICK2;
MT:=C-REF(C,1);
DX:=EMA(EMA(MT,6),6)/EMA(EMA(ABS(MT),6),6);
拉:(IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX< 0,2) AND CROSS(DX,MA(DX,2)),0.3,0))*30,COLOR0080FF,STICK,LINETHICK2;
升:(CROSS(DIF,DEA) AND CROSS(MD,0) AND CROSS(C,操作价) AND 红柱)*55,COLOR00FFFF,STICK,LINETHICK2;
三点特准选股公式如下 :
DIF:=EMA(CLOSE,12)-EMA(CLOSE,29);
DEA:=EMA(DIF,9);
MD:=(DIF-DEA)*2*50;
AA:=IF(MD>REF(MD,1) AND MD< 0,8,0);
AB:=MA((LOW+HIGH+CLOSE)/3,5);
CROSS(C,AB) AND AA AND REF("KDJ.J",1)< 0 AND "KDJ.J">0;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
DIF赋值:收盘价的12日指数移动平均-收盘价的29日指数移动平均
DEA赋值:DIF的9日指数移动平均
输出MD:(DIF-DEA)*2*50
STICKLINE(MD>=1日前的MD AND MD>0,0,MD,2,0),画红色
STICKLINE(MD< 1日前的MD AND MD>0,0,MD,2,1),COLORC0C0C0
STICKLINE(MD>1日前的MD AND MD< 0,0,MD,2,0),COLORFF8000
蓝柱赋值:IF(MD>1日前的MD AND MD< 0,8,0)
红柱赋值:IF(MD>=1日前的MD AND MD>0,8,0)
输出操作价:MA((最低价+最高价+收盘价)/3,5),LINETHICK0,COLOR4080FF
输出买:(IF(C上穿操作价 AND 蓝柱 AND 1日前的"KDJ.J"< 0 AND "KDJ.J">0,0.8,0))*50,STICK,COLOR00FF00, 线宽为2
VAR1赋值:4*SMA((收盘价-6日内最低价最低值)/(6日内最高价最高值-6日内最低价最低值)*100,5,1)- 3*SMA(SMA((收盘价-6日内最低价最低值)/(6日内最高价最高值-6日内最低价最低值)*100,5,1),3.2,1)
输出进:(IF(C上穿操作价 AND 蓝柱 AND VAR1上穿8,0.6,0))*40,COLORFFFFFF,STICK, 线宽为2
MT赋值:C-1日前的C
DX赋值:MT的6日指数移动平均,6)/EMA(EMA(MT的绝对值,6),6)
输出拉:(IF(2日内DX最低值=7日内DX最低值 AND 统计2日满足DX< 0的天数 AND CROSS(DX,DX的2日简单移动平均),0.3,0))*30,COLOR0080FF,STICK, 线宽为2
输出升:(DIF上穿DEA AND MD上穿0 AND C上穿操作价 AND 红柱)*55,COLOR00FFFF,STICK, 线宽为2
三点特准选股公式如下 :
DIF赋值:收盘价的12日指数移动平均-收盘价的29日指数移动平均
DEA赋值:DIF的9日指数移动平均
MD赋值:(DIF-DEA)*2*50
AA赋值:IF(MD>1日前的MD AND MD< 0,8,0)
AB赋值:MA((最低价+最高价+收盘价)/3,5)
C上穿AB AND AA AND 1日前的"KDJ.J"< 0 AND "KDJ.J">0