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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[大智慧] 买卖主图(源码,有图,无未来,组合公式)


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-21 17:07:29
买卖主图(源码,有图,无未来,组合公式)介绍

买卖主图(源码,有图,无未来,组合公式)

今天再现奉上最简单而具有彩带指示的自用主图,看着彩带颜色进出就是了。
作为波段主图的姊妹篇,提示买卖点,有超跌提示,源码如下
{买卖主图}
n:=5;
MTM:=C-REF(C,1);
DX1:=100*EMA(EMA(MTM,N),N)/EMA(EMA(ABS(MTM),N),N);
买1:=IF(LLV(DX1,2)=LLV(DX1,7) AND COUNT(DX1<0,2) AND CROSS(DX1,MA(DX1,2)),1,0);
卖1:=IF(HHV(DX1,2)=HHV(DX1,7) AND COUNT(DX1>50,2) AND CROSS(MA(DX1,2),DX1),1,0);
DRAWTEXT(filter(卖1=1,5),high*1.032, '▽'),color00ff00,ALIGN1;
DRAWTEXT(filter(买1=1,5),low*0.96, '△'),colorRED,ALIGN1;
DRAWICON(filter(买1=1,5),low*0.99,7),ALIGN1;
ma60:ma(c,60),colorgreen;
MA5:EMA(C,5),COLOR0000FF,linethick2;
MA2:REF(MA5,1),COLORFFFFFF;
ma3:EMA(ema(c,7),6),color00FFFF,linethick2;
FILLRGN(MA2,MA5,MA2<=MA5),COLORRED,LAYER7;
FILLRGN(MA5,MA2,MA5<=MA2),COLORGREEN,LAYER7;
FILLRGN(MA2,ma3,MA2<=ma3),COLORBLUE,LAYER7;
FILLRGN(MA2,ma3,MA2>=ma3),COLORFF00FF,LAYER7;
BDGD:=C=HHV(C,13);
GDSJ:=BARSLAST(FILTER(CROSS(0.8,BDGD),2))+1;
高点:REF(C,GDSJ),COLOR00FF00,POINTDOT,LINETHICK1;
突破:CROSS(C,REF(高点,1)),COLOR00FFFF,POINTDOT,LINETHICK0;
STICKLINE(GDSJ<=6,高点,高点,8,0),COLORFF00FF;
BDDD:=C=LLV(C,13);
DDSJ:=BARSLAST(FILTER(CROSS(0.8,BDDD),2))+1;
低点:REF(C,DDSJ),COLOR00FFFF,POINTDOT,LINETHICK1;
STICKLINE(DDSJ<=6,低点,低点,8,0),COLOR00FF00;
VARR:=EMA((C+O+H+L)/4,3);
CB:=EMA(VARR,88);
SM:=EMA(VARR,88)*0.85;
HD:=CB*0.74;
QZB:=L<SM AND C/REF(C,1)>1.098 AND C=H AND REF(C,1)<REF(H,1);
DRAWTEXT(QZB,h,'超跌'),COLORYELLOW;

流通盘:=FINANCE2(37)/10000;DRAWTEXTREL(20,40,BKNAME),COLORffffFF;
DRAWTEXTABS(20,25,'流通盘:'+流通盘+'亿 '),LINETHICK1,Colorffffff;
 


 




 



gd17561

回复

举报

QQ|

GMT+8, 2024-11-17 01:08

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