macd顶底背离dif线背离共振副图金叉选股 股票指标炒股软件公式
20
2024 / 11 / 20
2023-08-26 17:45:15 通达信指标网
{INPUT:N(14,2,99,1),M1(3,2,50,1),M2(3,2,50,1),Y1(25,0,50),Y2(75,50,100); }{通达信删除这一行后另行设置}
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
%K:MA(RSV,M1);
%D:MA(%K,M2),COLORAA00DD;
Y1,COLOR007A00;
Y2,COLOR007A00;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
VAR1:=HHV(DEA,53);
VAR2:=LLV(DEA,55);
VAR3:=DEA-(DIF-DEA);
UP:=IF(DIF>VAR1 AND DEA=VAR1,MAX(LLV(VAR1,10),VAR3),VAR1);
DN:=IF(DIF<VAR2 AND DEA=VAR2,MIN(HHV(VAR2,10),VAR3),VAR2);
DRAWICON(CROSS(%D,%K) AND %D>74,100,2);
DRAWICON(CROSS(%K,%D) AND %D<26,0,1);
STICKLINE(DIF<DN,-5,-4,5,0),LINETHICK3,COLORRED;
STICKLINE(DIF>UP,104,103,5,0),LINETHICK3,COLORRED;
原文链接:https://www.tdxzb.com/?id=1557
本文版权:如无特别标注,本站文章均为原创。