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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信沧海斩妖主图指标公式源码


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

VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5; VAR2:=VAR1+HIGH-LOW; VAR3:=2*VAR1-LOW; VAR4:=VAR1-HIGH+LOW; VAR5:=2*VAR1-HIGH; VAR6:=HIGH<REF(LOW,1) OR LOW>REF(HIGH,1); VAR7:=CLOSE=HHV(CLOSE,13); VAR8:=BARSLAST(FILTER(crOSS(0.8,VAR7),2))+1; VAR9:=REF(CLOSE,VAR8); VAR10:=CROSS(CLOSE,REF(VAR9,1)); VAR11:=(HIGH+LOW+3*CLOSE+OPEN)/6; VAR12:=MA(VAR11,7); VAR13:=MA(VAR11,14); VAR14:=MA(VAR11,21); VAR15:=MA(VAR11,28); VAR16:=MA(VAR11,35); VAR17:=MA(VAR11,42); VAR18:=MA(VAR11,49); VAR19:=MA(VAR11,56); VAR20:=(7*VAR12+14*VAR13+21*VAR14+28*VAR15+35*VAR16+42*VAR17+49*VAR18+56*VAR19)/252; VAR21:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2); VAR22:=REF(VAR21,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR23:=REF(VAR22,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR24:=REF(VAR23,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR25:=REF(VAR24,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR26:=REF(VAR25,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR27:=REF(VAR26,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR28:=REF(VAR27,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR29:=REF(VAR28,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR30:=REF(VAR29,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR31:=REF(VAR30,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR32:=REF(VAR31,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR33:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2); VAR34:=REF(VAR21 OR VAR22 OR VAR23 OR VAR24 OR VAR25 OR VAR26 OR VAR27 OR VAR28 OR VAR29 OR VAR30 OR VAR31 OR VAR32,1) AND VAR33; VAR35:=0.01*expma(AMOUNT,13)/EXPMA(vol,13); VAR36:=(VAR35/REF(VAR35,1)-1)*10; VAR37:=MA(VAR36,5)/10; VAR66:=MA(C,18); VAR68:=(VAR66>REF(VAR66,1)); 明日心理价:(VAR1+VAR2+VAR3+VAR5+VAR4)/5,NODRAW,COLORWHITE; DRAWTEXT(VAR6,LOW,'缺'),COLOR00FFFF; STICKLINE(C/REF(C,1)>1.095,C,O,2,0),COLORYELLOW; STICKLINE(VAR8<=6,VAR9,VAR9,3,0),COLORFF00FF; DRAWTEXT(VAR10,LOW,'T'),COLOR00FFFF; 沧海行操盘线:EMA(CLOSE,3),COLORWHITE,LINETHICK1; 沧海行操盘线2:MA(CLOSE,5)COLORYELLOW,LINETHICK1; 沧海行操盘线3:MA(CLOSE,8),COLORRED,LINETHICK1; 沧海行安全线:MA(CLOSE,25),COLORGRAY,LINESTICK,LINETHICK1; DRAWICON(CROSS(沧海行操盘线,VAR20),L*0.98,1); STICKLINE(C/REF(C,1)>1.095,C,O,1,0),COLORYELLOW; IF(沧海行操盘线3<=REF(沧海行操盘线3,1),沧海行操盘线3,DRAWNULL),COLORBLUE,LINETHICK2; IF(沧海行操盘线3>REF(沧海行操盘线3,1),沧海行操盘线3,DRAWNULL),COLORFF00FF,LINETHICK2; DRAWICON(FILTER(VAR34=1,5),HIGH*1.03,12); 生变:IF(VAR37<VAR36,VAR20,DRAWNULL),COLORYELLOW,CIRCLEDOT,LINETHICK2; 空仓:IF(VAR36<VAR37,VAR20,DRAWNULL),COLORGREEN,CIRCLEDOT,LINETHICK2; 持仓:IF(VAR36>VAR37 AND VAR68,VAR20,DRAWNULL),CIRCLEDOT,COLORRED,LINETHICK2; IF(VAR20<=REF(VAR20,1),VAR20,DRAWNULL),COLORGREEN,CIRCLEDOT,LINETHICK2;








回复

举报

GMT+8, 2025-1-19 20:33

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