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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信龙头五行解盘主图指标公式源码主图


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

VAR0:=IF(DATE< 2442.46*500,1,1); 牛熊线:DMA(MA(CLOSE+REF(CLOSE,5)*VAR0/CLOSE*0.098,90),vol),LINETHICK1,CIRCLEDOT,COLORYELLOW; 小牛:=crOSS(C,牛熊线); DRAWTEXT(小牛,L,'↖走强区')*VAR0,COLORRED,LINETHICK4; DRAWTEXT(ISLASTBAR,牛熊线,'牛熊线'),COLORYELLOW; VAR1:=(3*CLOSE+LOW+OPEN+HIGH)/6; 操盘线:(20*VAR1+19*REF(VAR1,1)+18*REF(VAR1,2)+17*REF(VAR1,3)+16*REF(VAR1,4)+15*REF(VAR1,5)+14*REF(VAR1,6)+13*REF(VAR1,7)+12*REF(VAR1,8)+11*REF(VAR1,9)+10*REF(VAR1,10)+9*REF(VAR1,11)+8*REF(VAR1,12)+7*REF(VAR1,13)+6*REF(VAR1,14)+5*REF(VAR1,15)+4*REF(VAR1,16)+3*REF(VAR1,17)+2*REF(VAR1,18)+REF(VAR1,20))/210,NODRAW; 安全线:MA(操盘线,11)*VAR0,COLORGRAY,LINESTICK,LINETHICK1; MA20:MA(C,20),NODRAW; 趋势线:MA(C,6)*VAR0 COLORGREEN, LINETHICK2; STICKLINE(趋势线>=MA20,CLOSE,OPEN,3,0),COLOR0000FF; STICKLINE(趋势线>=MA20,CLOSE,OPEN,0.5,0),COLORCC66FF; STICKLINE(MA20>趋势线,CLOSE,OPEN,3,0),COLORFF9900; STICKLINE(MA20>趋势线,CLOSE,OPEN,0.5,0),COLORFFCC00; 大牛:=CROSS(趋势线,MA20)*VAR0; 死牛:=CROSS(MA20,趋势线)*VAR0; DRAWTEXT(大牛,L,'↖行情开始')*VAR0,COLORYELLOW,LINETHICK4; DRAWTEXT(死牛,H,'↖行情结束')*VAR0,COLORWHITE ,LINETHICK4; STICKLINE(CROSS(趋势线,MA20),OPEN,CLOSE,2,0),COLOR00FFFF ; STICKLINE(CROSS(MA20,趋势线),OPEN,CLOSE,2,0),COLOR00DD00; VAR2:=O>MA(C,安全线) AND C< MA(C,安全线)*VAR0; STICKLINE(CROSS(安全线,C),OPEN,CLOSE,2,0),COLORFF0000; AMA3:IF(趋势线/REF(趋势线,安全线)>0.997,趋势线,DRAWNULL)*VAR0,COLORBLUE,LINETHICK3; AMA4:IF(趋势线/REF(趋势线,安全线)>1.001,趋势线,DRAWNULL)*VAR0,COLORRED,LINETHICK3; ABC1:=IF(L=LLV(L,9),L,0); ABC2:=CONST(BARSLAST(ABC1!=0)); ABC3:=CONST(IF(ABC2=0,H,REF(H,ABC2))); ABC4:=CONST(REF(BARSLAST(H>ABC3),ABC2+1)+ABC2+1); ABC5:=CONST(IF(ABC4=0,H,REF(H,ABC4))); ABC6:=CONST(REF(BARSLAST(H>ABC5),ABC4+1)+ABC4+1); ABC7:IF(CURRBARSCOUNT<=ABC2+10,CONST(IF(ABC6=0,H,REF(H,ABC6))),DRAWNULL),COLORYELLOW,DOTLINE; DRAWTEXT(ISLASTBAR,ABC7,'进场线')*VAR0,COLORYELLOW; DP:=IF(C=INDEXC,0,1); GJ:=AMOUNT/V/100; 明日阻力:=L+(GJ-L)+(C-L); 明日支撑:=L+(C-GJ); 今日阻力:REF(明日阻力 , 1)NODRAW; 今日支撑:REF(明日支撑 , 1)NODRAW; 止盈价:H*0.95,LINETHICK1,COLORRED; DRAWICON(大牛,L,11);








回复

举报

GMT+8, 2025-1-20 01:46

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