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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信长妖趋势主图指标公式源码主图


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

DRAWTEXT_FIX(1,0.005,0,0,'所属风格:'),COLORYELLOW; DRAWTEXT_FIX(1,0.06,0,0,FGBLOCK),COLORYELLOW; DRAWTEXT_FIX(1,0.005,0.05,0,'所属概念:'),COLORMAGENTA; DRAWTEXT_FIX(1,0.06,0.05,0,GNBLOCK),COLORYELLOW; KBY1:EMA(C,10),COLOR61DC16 DOTLINE; KBY2:EMA(KBY1,3),COLOR61DC16 DOTLINE; KBY3:EMA(KBY2,3),COLOR61DC16 DOTLINE; KBY4:EMA(KBY3,3),COLOR61DC16 DOTLINE; KBY5:EMA(KBY4,3),COLOR61DC16 DOTLINE; KBYS1:EMA(C,45),COLORD1875A DOTLINE; KBYS2:EMA(KBYS1,3),COLORD1875A DOTLINE; KBYS3:EMA(KBYS2,3),COLORD1875A DOTLINE; KBYS4:EMA(KBYS3,3),COLORD1875A DOTLINE; KBYS5:EMA(KBYS4,3),COLORD1875A DOTLINE; IF(KBY1>REF(KBY1,1),KBY1,DRAWNULL),COLORMAGENTA LINETHICK2; IF(KBY2>REF(KBY2,1),KBY2,DRAWNULL),COLORMAGENTA; IF(KBY3>REF(KBY3,1),KBY3,DRAWNULL),COLORMAGENTA; IF(KBY4>REF(KBY4,1),KBY4,DRAWNULL),COLORMAGENTA; IF(KBY5>REF(KBY5,1),KBY5,DRAWNULL),COLORMAGENTA; IF(KBYS1>REF(KBYS1,1),KBYS1,DRAWNULL),COLORRED LINETHICK2; IF(KBYS2>REF(KBYS2,1),KBYS2,DRAWNULL),COLORRED; IF(KBYS3>REF(KBYS3,1),KBYS3,DRAWNULL),COLORRED; IF(KBYS4>REF(KBYS4,1),KBYS4,DRAWNULL),COLORRED; IF(KBYS5>REF(KBYS5,1),KBYS5,DRAWNULL),COLORRED; STICKLINE(CLOSE>REF(CLOSE,1)*1.0985 AND CLOSE=HIGH,CLOSE,OPEN,3.5,-1),COLOR00FFFF; STICKLINE(CLOSE<REF(CLOSE,1)*0.9015 AND CLOSE=LOW,CLOSE,OPEN,3.5,-1),COLORGREEN; ACB1:=REF(MA(C,20),10); 开:=O-ACB1; 高:=H-ACB1; 低:=L-ACB1; 收:=C-ACB1; MID:=MA(C,20); UPPER:=MID+2*STD(C,20); LOWER:=MID-2*STD(C,20); V1:=(C-LOWER)/(UPPER-LOWER)*100; V2:=V1-EMA(V1,5); K1:=SUM(LLV(V2,4),4)/4; V3:=EMA(V2,64)*10; V4:=EMA(0.4*V2*(-1),3); V5:=-1*EMA(V2,39)*10; A:=V3>10; B:=V2>V4; D:=V5>10; E:=V3<=10 OR V2<=V4 OR V5<=10; AAA1:=C>MA(C,5); KBYF:=3*SMA((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100,5,1)-2*SMA(SMA((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100,5,1),3,1); KBYG:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5); 趋势:=IF(KBYF-KBYG,KBYF,KBYF),COLORBB11AA,LINETHICK0; 底部:=IF(KBYG-KBYF,KBYG,KBYF),COLORGRAY; 多多:=BARSLASTCOUNT(开<=收AND B)=1 AND AAA1 AND(趋势>REF(趋势,1)); {DRAWICON(多多,L*1.002,9);} KBC:=(CLOSE-LLV(LOW,32))/(HHV(HIGH,32)-LLV(LOW,32))*1.2*CLOSE; KBC1:=EMA(KBC,3); KBC2:=EMA(KBC,5); KBC3:=EMA(KBC,7); T1:=KBC2>=KBC3 AND KBC1<REF(KBC1,1); T2:=KBC2<KBC3 AND KBC1>REF(KBC1,1); STICKLINE(T1,C,O,1.25,0),COLORFF7700;STICKLINE(T1,C,O,1.25,0),COLORFF7700; STICKLINE(T2,C,O,1.25,0),COLORRED; STICKLINE(T2,C,O,1.25,0),COLORRED; N:=10; 大涨:=CLOSE/REF(CLOSE,1)>=1.08 OR((H-L)/REF(C,1)>0.1 AND C=H); STICKLINE(大涨,C,O,2.75,0),COLOR007FFF; DA:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,4))/4; DBB:=(EMA(C,10)+EMA(C,20)+EMA(C,40)+EMA(C,80))/4; DRAWTEXT(crOSS(DA-DBB,0),L*0.995,'★B'),COLORYELLOW; JH:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(Abs(C-REF(C,1)),5,1)*100; 操作线:MA(C,5)*IF(CONST(MA(C,5)),1,DRAWNULL)COLORYELLOW LINETHICK2; NN:=8; AA:=REF(H,NN)=HHV(H,2*NN+1); AA1:=REF(L,NN)=LLV(L,2*NN+1); QY:=(AA,NN+1);QY1:=(AA1,NN+1); CC:=FILTER(QY,NN)AND H=HHV(H,NN+1); CC1:=FILTER(QY1,NN)AND L=LLV(L,NN+1); DRAWICON(CC,H,2);








回复

举报

QQ|

GMT+8, 2024-11-27 15:18

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