指标源码说明(kdj公式源码?)
1. kdj公式源码?
KDJ指标信号公式源码:
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,P1,1),COLORYELLOW;
D:SMA(K,P2,1),COLOR00DD00;
J:3*K-2*D,COLORRED;
{KDJ日周金叉死叉}
周K:='KDJ.K#WEEK'(9,3,3);
周D:='KDJ.D#WEEK'(9,3,3);
周J:='KDJ.J#WEEK'(9,3,3);
周金叉:=CROSS(周K,周D);
日金叉:=FILTER(CROSS(K,D) AND K<>
DRAWTEXT(周金叉,D,'★'),COLORYELLOW;
DRAWTEXT(周金叉,D*0.93,' KD周金叉'),COLORYELLOW;
DRAWTEXT(CROSS(周D,周K),D*0.95,'KD周死叉'),COLOR00DDBB;
DRAWICON(日金叉,K,1);
DRAWTEXT(日金叉,D,'低位金叉'),COLOR00CCCC;
KDB:=BARSLAST(REF(CROSS(K,D),1));
KDDB:=REF(CLOSE,KDB+1)>CLOSE AND REF(K,KDB+1)
K底背:=IF(FILTER(KDDB>0,5),1,0);
DRAWTEXT(K底背=1,D*0.98,'底背离'),COLORRED;
KDD:=BARSLAST(REF(CROSS(D,K),1));
K顶背:=REF(CLOSE,KDD+1)K AND CROSS(D,K);
DRAWTEXT(FILTER(K顶背>0,5),D+8,'顶背离'),COLORFFAA22;
2. mfi指标源码?
答:MFI指标(Money Flow Index):也可以叫资金流量指标,1989年3月由JWellesWilder's首次发表MFI指标的用法。MFI指标实际是将RSI加以修改后,演变而来。RSI以成交价为计算基础;MFI指标则结合价和量,将其列入综合考虑的范围。可以说,MFI指标是成交量的RSI指标
MFI又称为资金流向指标,其指标源码如下:
TYP:=(HIGH+LOW+CLOSE)/3;
V1:=SUM(IF(TYP>REF(TYP,1),TYP*VOL,0),N)/SUM(IF(TYP<REF(TYP,1),TYP*VOL,0),N)
MFI:100-(100/(1+V1))。
3. kdj指标公式源码?
KDJ指标公式源码:
参数:N:=9; M1:=3; M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1);
D:SMA(K,M2,1);
J:3*K-2*D;
周K:=MA("KDJ.K#WEEK"(N,M1,M2) ,5),LINETHICK1,COLORRED;
周D:=MA("KDJ.D#WEEK"(N,M1,M2) ,5),LINETHICK1,COLOR33FF99;
周J:=MA("KDJ.J#WEEK"(N,M1,M2) ,5),LINETHICK1,COLORMAGENTA;
月K:MA("KDJ.K#MONTH"(N,M1,M2),5),LINETHICK1,COLORFF00FF;
月D:MA("KDJ.D#MONTH"(N,M1,M2),5),LINETHICK1,COLOR00FF00;
月J:=MA("KDJ.J#MONTH"(N,M1,M2),5),LINETHICK1,COLORFFFFFF;
DRAWBAND(月K,RGB(100,0,100),月D,RGB(120,120,120));
STICKLINE(周K>=周D,周K,周D,1,0),COLOR6666FF;
STICKLINE(周K<周D,周K,周D,1,1),COLOR00FFFF;
STICKLINE(C>0,115,120,2,1),COLOR00FFFF;
STICKLINE(C>0,-15,-20,2,1),COLORFFFF88;
STICKLINE(周K>=周D,110,120,2,0),COLOR6666FF;
STICKLINE(月K>=月D,-10,-20,2,0),COLOR660099;
STICKLINE(C>0,48,52,2,1),COLORFFFFFF;
STICKLINE(周K>=周D AND 月K>=月D,42,58,2,1),COLORRED;
STICKLINE(月K<月D AND 周K>=周D,44,56,2,1),COLORFF00FF;
STICKLINE(月K>=月D AND 周K<周D,46,54,2,1),COLOR00FF00;
STICKLINE(CURRBARSCOUNT=88,10,90,99,0),COLOR222255;
STICKLINE(CURRBARSCOUNT=88,100,90,99,0),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=92,95,'中间彩柱'),COLORFF0000;
DRAWTEXT(CURRBARSCOUNT=8,110,'周KD金叉'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=8,-10,'月KD交叉'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=98,20,'月死叉周死叉--全退--白色'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=98,40,'月金叉周死叉--减仓--绿色'),COLOR00FF00;
DRAWTEXT(CURRBARSCOUNT=98,60,'月死叉周金叉--反弹--粉色'),COLORFF00FF;
DRAWTEXT(CURRBARSCOUNT=98,80,'月金叉周金叉--持股--红色'),COLORRED;
4. roc指标公式源码?
AA:=COUNT(C<=REF(LLV(L,10),1),5)=1;
BB:=COUNT(C>=REF(HHV(L,10),1),5)=1;
ROC:100*(CLOSE-REF(CLOSE,12))/REF(CLOSE,12);
MAROC:MA(ROC,6);
A1:=BARSLAST(REF(CROSS(ROC,MAROC),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND ROC>REF(ROC,A1+1) AND CROSS(ROC,MAROC);
DRAWTEXT(底背离 AND AA,ROC+0.02,’ 底背’),COLORFF00FF;
5. 魔笛量化值指标源码?
N:=34;M:=3;
28,COLORFFFFFF;
STICKLINE(C>0,0,2,5,0),COLOR00008A;
STICKLINE(C>0,2,5,5,0),COLOR85008A;
STICKLINE(C>0,5,10,5,0),COLOR657600;
STICKLINE(C>0,10,21.5,5,0),COLOR690079;
STICKLINE(C>0,21.5,28,5,0),COLOR79B715;
VAR1:=EMA(100*(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N)),M)/4,COLORFFFF00,LINETHICK2;
VAR2:IF(VAR1>23.16,VAR1,0),COLOR00FFFF,LINETHICK1;
BB:IF(VAR1<2,6,0),COLOR00FFFF,LINETHICK4;
DD:IF(VAR1>21.5,25.5,28),COLOR0000FF,LINETHICK4;
AA:IF(VAR1>23.16,24.5,28),COLORRED,LINETHICK4;
DRAWBAND(BB,RGB(190,0,100),0,RGB(0,0,0));
DRAWBAND(VAR2,RGB(250,250,0),0,RGB(0,0,0));
DRAWBAND(28,RGB(210,210,210),DD,RGB(0,0,0));
DRAWBAND(28,RGB(250,250,0),AA,RGB(0,0,0));
STICKLINE(C>0,2,2,2,0),COLORFF00FF;
STICKLINE(C>0,5,5,2,0),COLOR00FFFF;
STICKLINE(C>0,23.16,23.16,2,0),COLORFF0000;
顶底线:VAR1,,COLORFFFF00,LINETHICK2;
DRAWICON(CROSS(顶底线,2),2,23);
DRAWICON(CROSS(顶底线,5),5,13);
DRAWICON(CROSS(21.5,顶底线),21.5,14);
DRAWICON(CROSS(23.16,顶底线),23.16,15);
DRAWTEXT(CURRBARSCOUNT=38,1,'底部区'),COLOR00FFFF;
DRAWTEXT(CURRBARSCOUNT=38,3.5,'介入区'),COLOR00FFFF;
DRAWTEXT(CURRBARSCOUNT=38,7.5,'加仓区'),COLOR00FFFF;
DRAWTEXT(CURRBARSCOUNT=38,16,'安全区'),COLOR00FFFF;
DRAWTEXT(CURRBARSCOUNT=38,22,'风险区'),COLOR0000FF;
DRAWTEXT(CURRBARSCOUNT=38,25.5,'逃顶区'),COLORFF00FF;
6. dmi指标公式源代码?
DMI的正确用法 公式源码
MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),14);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),14);
PDI:=DMP*100/MTR;
MDI:=DMM*100/MTR;
ADX:EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,6);
ADXR:EXPMEMA(ADX,6);
DRAWTEXT_FIX(1,0.5,0.01,1,'当连续上涨
7. hcl指标源码?
HCL指标公式源码是针对特定目标设备设计的指标公式库。该库的目的是对设备运行状态进行实时检测,以便快速发现和解决设备问题。HCL指标公式源码包含各种指标公式,可以很快地集成到设备的监控系统中。在本文中,我们将深入讨论HCL指标公式源码的特点和优势。
8. xlpl指标公式源码?
xlpl的指标公式源码是wjzgs530
通达信有个指标叫吸拉派落,简称XLPL,是用来判断主力做庄一只股票的每个阶段