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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信灵光闪现指标公式源码


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

VAR1:=1;
VAR4:=(C-LLV(L,18))/(HHV(H,18)-LLV(L,18))*100*VAR1;
变速率:(SMA(SMA(VAR4,2,1)+3*VAR1,2,1)-(MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19)+100));
macd2:=变速率;
TJ:=MACD2>0;T:=MACD2<0;
DRAWTEXT(BARSLAST(TJ)=1,MACD2,'1'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=2,MACD2,'2'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=3,MACD2,'3'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=5,MACD2,'5'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=8,MACD2,'8'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=13,MACD2,'13'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=21,MACD2,'21'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=34,MACD2,'34'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=55,MACD2,'55'),COLORYELLOW;
DRAWTEXT(BARSLAST(T)=1,MACD2,'1'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=2,MACD2,'2'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=3,MACD2,'3'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=5,MACD2,'5'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=8,MACD2,'8'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=13,MACD2,'13'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=21,MACD2,'21'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=34,MACD2,'34'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=55,MACD2,'55'),COLORGREEN;
趋势线: 3*SMA((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,5,1)-2* SMA(SMA((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,5,1),3,1);
天:100,COLOR9F9F5F;
地:-10,COLOR7070DB;
FFD:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;
A:=EMA(FFD,3);
B:=EMA(A,2);
E:=3*A-2*B;
LOWV:=LLV(LOW,8);
HIGHV:=HHV(HIGH,8);
A3:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
上:=EMA(A3,3);
下:=EMA(上,2);
A4:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;
K:=SMA(A4,3,1);
D:=SMA(K,2.5,1);
进:K,COLORMAGENTA;
退:D,COLORGREEN;
DRAWBAND(D,RGB(10,250,10),K,RGB(250,10,10));
DRAWICON(crOSS(K,D),K,1);
DRAWICON(CROSS(D,K),D,2);
A1:=BARSLAST(REF(CROSS(E,B),1));
底:=REF(CLOSE,A1+1)>CLOSE AND E>REF(E,A1+1) AND CROSS(E,B);
A2:=BARSLAST(REF(CROSS(B,E),1));
顶:=REF(CLOSE,A2+1)<CLOSE AND REF(B,A2+1)>B AND CROSS(B,E);
DRAWTEXT(CROSS(96,E) AND (E<=80),75,'回'),COLORFF6EC7;
DRAWTEXT(CROSS(E,1) AND (E<=20),15,'反'),COLORFF8855 ;
DRAWTEXT(底>0,5,'底'),COLORB0C4DE;
DRAWTEXT(顶>0,98,'顶'),COLOR0099FF;
VA:=CROSS(A,50) AND CROSS(B,40);
STICKLINE(VA,71,19,2,0),COLORFF8855;
DRAWTEXT(VA,75,'买'),COLORYELLOW;
VA5:=CROSS(A,50) AND CROSS(B,50) AND CROSS(上,22);
STICKLINE(VA5,71,19,2,0),COLORFF0088;
DRAWTEXT(VA5,75,'买'),COLORYELLOW;
VA6:=CROSS(A,50) AND CROSS(B,50) AND CROSS(上,35);
STICKLINE(VA6,71,19,2,0),COLORFF0088;
DRAWTEXT(VA6,75,'买'),COLORYELLOW;
VA7:=CROSS(A,50) AND CROSS(B,50) AND CROSS(上,45);
STICKLINE(VA7,71,19,2,0),COLORFF0088;
DRAWTEXT(VA7,75,'买'),COLORYELLOW;
VA8:=CROSS(A,50) AND CROSS(B,50) AND CROSS(上,55.3);
STICKLINE(VA8,71,19,2,0),COLORFF0088;
DRAWTEXT(VA8,75,'买'),COLORYELLOW;





回复

举报

QQ|

GMT+8, 2024-11-24 00:59

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