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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信变色分时主图指标公式源码


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

M:=8; 获利比例:=WINNER(C)*100,NODRAW; 基点:=获利比例>50 AND 获利比例<59,NODRAW; 选:IF(REF(基点,1)=1,C>REF(H,1),IF(REF(获利比例,1)<=50,C>REF(REF(H,BARSLAST(基点)),1),0)) AND BARSLAST(基点)<M AND REF(BARSLAST(基点),1)<M-1,NODRAW; 筹码参数:=TOTALCAPITAL*100/FINANCE(46) NODRAW; 筹码获利率:=WINNER(C)*100 NODRAW; TTT:=DRAWSL(基点,H,0,IF(REFX(BARSNEXT(基点),1)=DRAWNULL,CURRBARSCOUNT,REFX(BARSNEXT(基点),1)+1),0)COLORBLUE,LINETHICK2; A:=WINNER(C)*100; B:=BETWEEN(A,50,59); Q1:=BACKSET(BARSTATUS=2,BARSLAST(B)+1); 前期:=Q1>REF(Q1,1); 向右水平线:=REF(H,BARSLAST(前期))COLORBLUE,LINETHICK2; E:=(HIGH+LOW+OPEN+2*CLOSE)/5; 分时底:LLV(L,380),COLORGREEN,POINTDOT,NODRAW; 最新:C,COLORWHITE,NODRAW; IF( C>=REF(TTT,1),C,DRAWNULL),LINETHICK2,COLORCYAN; IF( C>=REF(向右水平线,1) ,C,DRAWNULL),LINETHICK2,COLORRED; IF( C<=REF(分时底,1),C,DRAWNULL),LINETHICK2,COLORGREEN; 量价:=(vol/CLOSE)/3; A2:=SUM((IF(((量价>0.20) AND (CLOSE>(REF(CLOSE,1)))),量价,0)),0); A3:=SUM((IF(((量价>0.20) AND (CLOSE< (REF(CLOSE,1)))),量价,0)),0); A6:=A2+A3; DD1:=1; 比:=A2/A3; AA1:=STRCAT(STRCAT('买= ',CON2STR((100*A2)/A6,0)),'%'); AA2:=STRCAT(STRCAT('卖= ',CON2STR((100*A3)/A6,0)),'%'); AA3:=STRCAT(STRCAT('差= ',CON2STR((100*(A2-A3))/A6,0)),'%'); DRAWTEXT_FIX(DD1=1,0.8,0.87,0,AA1),COLORRED; DRAWTEXT_FIX(DD1=1,0.8,0.92,0,AA2),COLORGREEN; DRAWTEXT_FIX(DD1=1,0.8,0.99,0,AA3),COLOR00FFFF; 现价:=C,COLORWHITE,LINETHICK2; 均价11:=SUM(C*V,240)/SUM(V,240),COLORRED,LINETHICK2; TT:=BARSCOUNT(C); 前高:=REF(HHV(H,TT),1); 突破:=crOSS(C,REF(HHV(H,TT),1)) AND C/均价11<1.09 AND TT>1 AND TT<240; 主力扫盘:=COUNT(突破,13)>=3 AND CROSS(C,REF(HHV(H,TT),1)); 已主力扫盘:=BARSLAST(主力扫盘)<13; HJ_2:=DYNAINFO(4)>0 AND HHV(HIGH,2)/LLV(LOW,2)<1.25 AND REF(CLOSE,1)<LLV(LOW,3)+(HHV(HIGH,3)-LLV(LOW,3))*0.85; HJ_9:=EMA(CLOSE,2); HJ_10:=EMA(CLOSE,3); HJ_11:=MAX(HJ_9,HJ_10); X2:=CLOSE>HJ_11 AND HJ_2 AND (CLOSE>REF(HHV(HIGH,2),1) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.015) AND (V/CAPITAL<=0.2) AND C/REF(C,1)<1.07; NX:=MA(((SLOPE(C,20)*5)+C),10); {中枢} B1:=HOUR=09 AND MINUTE=45; B20:=LLV(L,15); B30:=BARSLAST(B1); B4:=REF(B20,B30); B5:=CONST(B4),COLORFF80FF,CIRCLEDOT,LINETHICK2; C1:=HOUR=09 AND MINUTE=45; C2:=HHV(H,15); C3:=BARSLAST(C1); C4:=REF(C2,C3); C5:=CONST(C4),COLORFF80FF,CIRCLEDOT,LINETHICK2; DIF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIF,9); macd10:=(DIF-DEA)*2; AA0:=MACD10>00 AND DIF>0 AND DEA>0; A100:=HOUR=10 AND MINUTE=0; A20:=HHV(H,30); A30:=BARSLAST(A100); A40:=REF(A20,A30); A50:=CONST(A40); A80:=CLOSE>A50 AND REF(C<=A50,1) AND CLOSE>NX; AB:=FILTER(A80,100); A90:=DYNAINFO(3); AC:=CLOSE<=A90*1.04 AND CLOSE>A90; 量比:=V/REF(MA(V,5),1); XG:=AA0 AND AB AND AC AND A40>A90 AND 量比>=1; HJ_4:=CLOSE; HJ_5:=(CLOSE-REF(CLOSE,5))/REF(CLOSE,5); BAB1:=STICKLINE(HJ_5>0,DYNAINFO(3),DYNAINFO(3)*(1+HJ_5),0.1,0); BAB2:=STICKLINE(HJ_5<0,DYNAINFO(3),DYNAINFO(3)*(1+HJ_5),0.1,0); HJ_6:=CLOSE/DYNAINFO(3); HJ_7:=FILTER(HJ_5>0.015 AND HJ_5>REF(HJ_5,1)*2 ANDVOL>REF(VOL,1)*2 AND CLOSE>REF(CLOSE,1) OR HJ_5>0.025,240); H1:=MAX(DYNAINFO(3),DYNAINFO(5)); L1:=MIN(DYNAINFO(3),DYNAINFO(6)); P1:=H1-L1; 阻力:L1+P1*8/9,COLORLIRED,DOTLINE; 支撑:L1+P1*0.5/9,COLORGREEN,DOTLINE; DRAWTEXT(FILTER(CROSS(C,支撑),240),L-0.01,'吸筹'),COLOR0000FF; DRAWTEXT(FILTER(CROSS(阻力,C),240),H-0.01,'压'),COLOR0000FF; WA1:=V*C/100; WA2:=SUM((IF(((WA1/8>20) AND (CLOSE>(REF(CLOSE,1)))),WA1,0)),0); WA3:=SUM((IF(((WA1/8>20) AND (CLOSE<(REF(CLOSE,1)))),WA1,0)),0); WA4:=SUM((IF(((WA1/8<20) AND (CLOSE>(REF(CLOSE,1)))),WA1,0)),0); WA5:=SUM((IF(((WA1/8<20) AND (CLOSE<(REF(CLOSE,1)))),WA1,0)),0); 机构买盘:=(WA2); 机构卖盘:=(WA3); 散户买盘:=(WA4); 散户卖盘:=(WA5); BU:=BARSLAST(CLOSE=HHV(CLOSE,60)); SE:=BARSLAST(CLOSE=LLV(CLOSE,60)); KK1:=SE; KK2:=BU; LM1:=SE; LM2:=BU; OK:=KK1>KK2 AND LM1>LM2;

源码未复制完,下载附件......








回复

举报

QQ|

GMT+8, 2024-11-24 04:57

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