以下是大智慧三点准买副图源码
三点准买
{三点准买}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,29);
DEA:=EMA(DIF,9);
MD:(DIF-DEA)*2;
STICKLINE(MD>=REF(MD,1) AND MD>0,0,MD,7,0),COLORRED;
STICKLINE(MD0,0,MD,7,1),CulorC0C0C0;
STICKLINE(MD>REF(MD,1) AND MD<0,0,MD,7,0),CulorFF8000;
蓝柱:=if(MD>REF(MD,1) AND MD<0,8,0);
红柱:=if(MD>=REF(MD,1) AND MD>0,8,0);
DRAWTEXTABS(775,0,\’三点准买:1,尾盘30分钟日线预选出▲及\”买进拉升\”信号股;\’),Culor00FF00;
DRAWTEXTABS(775,15,\’要涨趋势: 2,查看其周线及大盘均在:兰柱缩短红柱伸高涨势;\’),Culor00FF00;
DRAWTEXTABS(775,30,\’赚钱可期:3,末10分钟信号确定并要K线收红又过操作价可买入。\’),Culor00FF00;
操作价: MA((LOW+HIGH+CLOSE)/3,5),LINETHICK0,Culor4080FF;
买:if(cross(c,操作价) and 蓝柱 AND REF(\”KDJ.J\”,1)0,0.8,0),STICK,Culor00FF00,linethick1;
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),CulorFFFFFF,STICK,linethick1;
MTM:=C-REF(C,1);
DX:=EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
拉:IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),0.3,0),Culor0080FF,STICK,linethick1;
升:cross(DIF,DEA) and cross(MD,0) and cross(c,操作价) and 红柱,Culor00FFFF,STICK,linethick1;
{上面信号无未来函数不会漂移}
{下面▼▲有未来函数可作趋势研判用,当“▲”和信号同时出现时更准}
▲:(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG
(3,5),2)<=REF(ZIG(3,5),3)),linethick0,Culor00FF00;
▼:=(ZIG(3,5)=REF(ZIG(3,5),2)) AND (REF(ZIG
(3,5),2)>=REF(ZIG(3,5),3));
STICKLINE((▲=1),(-0.3),0,4,0),Culor00FF00;
DRAWTEXT((▲=1),(-0.4),\’▲\’),Culor00FF00,ALIGN1;
STICKLINE((▼=1),0.3,0,4,0),COLORff00ff;
DRAWTEXT((▼=1),0.5,\’▼\’),COLORff00ff,ALIGN1;