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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[指标编写] 通达信回马监控主图指标公式源码


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-9-6 09:12:56

VAR3:=IF(1,(C/REF(C,1)-1)*100>9.5,0),NODRAW;
最后涨停距今数:BARSLAST(VAR3),NODRAW,COLOR00CCCC;
VAR4:=(REF(C,BARSLAST(VAR3))+REF(OPEN,BARSLAST(VAR3)))/2;
STICKLINE(VAR3,OPEN,C,2,0),COLORE6E8FA;
VAR5:=REF(C,1);
VAR6:=IF((VAR5-C)*100/VAR5>=10-0.01*100/VAR5,1,0);
MA13:MA(C,13),COLORCYAN;
IF(MA13>REF(MA13,1),MA13,DRAWNULL),COLORRED;
MA21:=MA(C,21),COLOR00CCCC,LINETHICK2;
VAR7:=C>MA21 AND MA13>REF(MA13,1) AND VAR6!=1;
VAR8:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4;
VAR9:=REF(C,1);
VAR10:=SMA(MAX(C-VAR9,0),2,1)/SMA(Abs(C-VAR9),2,1)*100;
TY:=H;
VAR11:=SMA(MAX(C-VAR9,0),14,1)/SMA(ABS(C-VAR9),14,1)*100;
VAR12:=45;
VAR13:=80;
VAR14:=20;
VAR15:=5;
VAR16:=VAR10< VAR12 AND REF(VAR10,1)>VAR12;
VAR17:=VAR10< VAR14 AND REF(VAR10,1)>VAR14;
VAR18:=COUNT(VAR3,13)>=1;
VAR19:=SMA(LOW,4,3);
VAR20:=VAR16 OR VAR17 AND VAR18;
VAR21:=REF(VAR16,1) OR REF(VAR17,1) AND LOW< MA(C,5) AND VAR18 AND VAR7 AND C>REF(LOW,BARSLAST(VAR3));
STICKLINE(VAR21,OPEN,C,2,0),COLORYELLOW;
DRAWTEXT(VAR21,L*0.95,'★回'),COLOR00FFFF;
DRAWICON(VAR21,L,11);
VAR22:=AMOUNT/vol/100;
VAR23:=REF(C,1);
STICKLINE(C,VAR4,VAR4,2,0),COLORMAGENTA;
STICKLINE(C,REF(LOW,BARSLAST(VAR3)),REF(LOW,BARSLAST(VAR3)),2,0),COLORCCCC00;





回复

举报

QQ|

GMT+8, 2024-11-16 08:09

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