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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[飞狐] 飞狐智汇指标(主图+MACD+KDJ+VOL)


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

1.智汇主图

CHECK:=STRCMP(USERNAME,'del')>1;
KEY:=NOT(CHECK);
MID:MA(CLOSE,N),COLORYELLOW,LINEDOT;
UPPER:MID+P*STD(CLOSE,N),pointdot,COLORRED;
LOWER:MID-P*STD(CLOSE,N),pointdot,COLORGREEN;
趋势线:IF(KEY,EMA(EMA(EMA(EMA(CLOSE,2),2),5),5),0),LINETHICK2,colorFFFF00;
生命线:IF(KEY,EMA(CLOSE,60),0),LINETHICK2,colorFF;
TT0:=(REF(趋势线,1)<趋势线);
TT1:=(REF(趋势线,1)>趋势线);


TA:=TT0;
TB:=TT1;
STICKLINE((((KEYAND(CLOSE>趋势线))AND(OPEN>趋势线))ANDTA),HIGH,LOW,0.5,0),colorFFFF;
STICKLINE(((((KEYAND(CLOSE>趋势线))AND(OPEN>趋势线))ANDTA)AND(CLOSE<OPEN)),OPEN,CLOSE,8,0),colorFFFF;
STICKLINE(((((KEYAND(CLOSE>趋势线))AND(OPEN>趋势线))ANDTA)AND(CLOSE>=OPEN)),OPEN,CLOSE,8,1),colorFFFF;
STICKLINE(((KEYAND((OPEN<趋势线)OR(OPEN<生命线)))ANDTB),HIGH,LOW,0.5,0),colorCCCCCC;
STICKLINE((((KEYAND((OPEN<趋势线)OR(OPEN<生命线)))ANDTB)AND(CLOSE<OPEN)),OPEN,CLOSE,8,0),colorCCCCCC;
STICKLINE((((KEYAND((OPEN<趋势线)OR(OPEN<生命线)))ANDTB)AND(CLOSE>=OPEN)),OPEN,CLOSE,8,1),colorCCCCCC;
STICKLINE((NOT(((((CLOSE>趋势线)AND(OPEN>趋势线))ANDTA)OR(((OPEN<趋势线)OR(OPEN<生命线))ANDTB)))AND(CLOSE<OPEN)),HIGH,LOW,0.5,0),colorFFFF00;
STICKLINE((NOT(((((CLOSE>趋势线)AND(OPEN>趋势线))ANDTA)OR(((OPEN<趋势线)OR(OPEN<生命线))ANDTB)))AND(CLOSE<OPEN)),OPEN,CLOSE,8,0),colorFFFF00;
STICKLINE((NOT(((((CLOSE>趋势线)AND(OPEN>趋势线))ANDTA)OR(((OPEN<趋势线)OR(OPEN<生命线))ANDTB)))AND(CLOSE>=OPEN)),HIGH,LOW,0.5,0),colorFF;
STICKLINE((NOT(((((CLOSE>趋势线)AND(OPEN>趋势线))ANDTA)OR(((OPEN<趋势线)OR(OPEN<生命线))ANDTB)))AND(CLOSE>=OPEN)),OPEN,CLOSE,8,1),colorFF;
STICKLINE(((BARSCOUNT(CLOSE)<=5)AND(CLOSE<OPEN)),HIGH,LOW,0.5,0),colorFFFF00;
STICKLINE(((BARSCOUNT(CLOSE)<=5)AND(CLOSE<OPEN)),OPEN,CLOSE,8,0),colorFFFF00;
STICKLINE(((BARSCOUNT(CLOSE)<=5)AND(CLOSE>=OPEN)),HIGH,LOW,0.5,0),colorFF;
STICKLINE(((BARSCOUNT(CLOSE)<=5)AND(CLOSE>=OPEN)),OPEN,CLOSE,8,1),colorFF;




2.智汇MACD

CHECK:=STRCMP(USERNAME,'DEL')>1;
KEY:=NOT(CHECK);
VAR1:=EMA(EMA(EMA(CLOSE,13),13),13);
VAR2:=(((VAR1-REF(VAR1,1))/REF(VAR1,1))*1);
IF(KEY,VAR2,0),;
IF(KEY,EMA(VAR2,21),0),;
IF(KEY,VAR2,0),colorstick;




3.智汇KDJ

技术低位:20;
技术中位:50;
技术高位:80;
Var3:=LLV(LOW,33);
Var4:=HHV(HIGH,21);
Var5:=EMA((CLOSE-Var3)/(Var4-Var3)*100,20)*0.998;
目前位置:EMA(0.667*REF(Var5,1)+0.333*Var5,1),CIRCLEDOT;




4.智汇VOL

CHECK:=STRCMP(USERNAME,'del')>1;
KEY:=NOT(CHECK);
VAR1:=((CAPITAL*VOLUNIT)*CLOSE);
流通市值:IF(KEY,(EMA(MA(VAR1,3),9)/100000000),0),colorFF;
涨跌:IF(KEY,(((CLOSE-REF(CLOSE,1))/REF(CLOSE,1))*100),0),colorFFFFFF;
换手率:IF(KEY,((VOL/CAPITAL)*100),0),POINTDOT,colorFF00FF;
量:IF(KEY,VOL,0),VOLSTICK,color66FF;
额:IF(KEY,(AMOUNT/10000),0),VOLSTICK,colorFFFF;
均量1:IF(KEY,MA(VOL,10),0),colorFF00;
均量2:IF(KEY,MA(VOL,20),0),colorFFFF;
均量3:IF(KEY,MA(VOL,40),0),colorFFFFFF;





回复

举报

QQ|

GMT+8, 2024-11-16 11:13

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