股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[同花顺] 波段操作(源码 主图 贴图)


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-29 18:05:33
波段操作(源码 主图 贴图)介绍

波段操作(源码 主图 贴图)

a:="LTFunc4@FORLT2";
s1:="LTFunc4@LT_S1";
hs:="LTFunc4@LT_HS";
ls:="LTFunc4@LT_LS";
p1:="LTFunc4@LT_P1";
upp:="LTFunc4@LT_UPP";
udd:="LTFunc4@LT_UDD";
d1:=EMA(ABS("ddx.ddx"),60);
d2:=MAX("ddx.ddx"/d1+7.5,7.5);
d3:=MIN("ddx.ddx"/d1,10);
fb:=IF(s1=0,hs,ls);
STICKLINE(p1=1 AND C>=O AND O<>0,C,O,d2,0),color5454ff;
STICKLINE(p1=1 AND C>=O AND O<>0,C,O,7.5,0),colorblack;
STICKLINE(p1=1 AND C>=O AND O<>0,C,C,7.5,0),color5454ff;
STICKLINE(p1=1 AND C>=O AND O<>0,O,O,7.5,0),color5454ff;
STICKLINE(p1=1 AND C>=O AND O<>0,O,C,7.5,1),color5454ff;
STICKLINE(p1=1 AND C<=O,O,C,7.5,1),color5454ff;
STICKLINE(p1=1 AND C<=O,L,C,0.5,1),color5454ff;
STICKLINE(p1=1 AND C<=O,H,O,0.5,1),color5454ff;
STICKLINE((p1<>1 OR BARSCOUNT(C)<3) AND C>=O,C,O,7.5,1),colorffff54;
STICKLINE((p1<>1 OR BARSCOUNT(C)<3) AND C>=O,C,H,0.5,1),colorffff54;
STICKLINE((p1<>1 OR BARSCOUNT(C)<3) AND C>=O,L,O,0.5,1),colorffff54;

d1:=EMA(ABS("ddx.ddx"),60);
d2:=MAX("ddx.ddx"/d1+7.5,7.5);
d3:=MIN("ddx.ddx"/d1,10);
fb:=IF(s1=0,hs,ls);

级别:d3,PRECIS1,LINETHICK0;
STICKLINE(p1=1 AND C<=O,C,O,5,0),colorgreen;
STICKLINE(p1=1 AND C<=O,C,H,0.5,0),colorgreen;
STICKLINE(p1=1 AND C<=O,L,O,0.5,0),colorgreen;
STICKLINE((p1<>1 OR BARSCOUNT(C)<3) AND C>=O,C,O,8,0),colorred;
STICKLINE((p1<>1 OR BARSCOUNT(C)<3) AND C>=O,C,H,0.5,1),colorred;
STICKLINE((p1<>1 OR BARSCOUNT(C)<3) AND C>=O,L,O,0.5,1),colorred;
DRAWBMP(p1=1 AND REF(p1,1)=0,L,'buy1.bmp');
DRAWBMP(p1=0 AND REF(p1,1)=1,H,'sell1.bmp');
买点:p1=1 AND REF(p1,1)=0,PRECIS0,LINETHICK0;
卖点:p1=0 AND REF(p1,1)=1,PRECIS0,LINETHICK0;
DRAWBMP(s1=1 AND REF(s1,1)=0 AND (p1+REF(p1,1))<>1,L,'bs.bmp');
DRAWBMP(s1=0 AND REF(s1,1)=1 AND (p1+REF(p1,1))<>1,H,'ss.bmp');
红点:s1=1 AND REF(s1,1)=0 AND (p1+REF(p1,1))<>1,PRECIS0,LINETHICK0;
绿点:s1=0 AND REF(s1,1)=1 AND (p1+REF(p1,1))<>1,PRECIS0,LINETHICK0;
超级线:EMA(C,5),COLOR00FF00;
PARTLINE(超级线,超级线>REF(超级线,1),RGB(255,0,0)),LINETHICK2;
强季线:EMA(C,120),LINETHICK2,COLOR00FF00;
M30日:MA(CLOSE,30),LINETHICK2,COLORFF00FF;
G:=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);
X:=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);
DRAWTEXT(G,L*0.999,'▲'),Colorff00ff;
DRAWTEXT(G,L,' ̄'),Color00ff00;
DRAWTEXT(X,H*1.00,'▼'),Color00ffff;
DRAWTEXT(X,H,' ̄'),Color00ffff;
Var326:=IF(CLOSE>REF(CLOSE,1),88,0);
Var327:=IF(CLOSE/REF(CLOSE,1)>1.050 AND HIGH/CLOSE<1.010 AND Var326>0, 91, 0);
DRAWTEXT(Var327>90,LOW*1.00,'★'),coloryellow;
TYP := (HIGH + LOW + CLOSE)/3;
yy:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)),linethick0;
bb:=(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
VERTLINE((IF(CROSS(bb,-200),-200,0)),1),colorf00ff0,linethick3;




 


 



gd14637

回复

举报

QQ|

GMT+8, 2024-11-17 09:51

快速回复 返回顶部 返回列表