macd顶底背离dif线背离共振副图金叉选股 股票指标炒股软件公式
22
2024 / 11 / 20
2023-07-23 19:38:10 通达信指标网
A:=(C*3+H+L+O)/6;
XJ:=(A+0.618*REF(A,1)+0.382*REF(A,2)+0.236*REF(A,3)+0.146*REF(A,4))/2.382;
DIFF:=EMA(XJ,12)-EMA(XJ,26);DEA:=EMA(DIFF,9);
MACA:=-2*(DIFF-DEA);MACB:=3*DIFF-2*DEA;
D1:=DIFF>=MACA;D2:=MACB>=MACA;BB:=(D1+D2)/2;
{以下四句是为了有些细节问题}
BB1:=BARSLAST(REF(BB,1)<1 AND BB=1);
BB2:=BARSLAST(REF(BB,1)>0 AND BB=0);
BB3:=(BB1<BB2 OR BB=1) AND NOT(BB=0);
BB4:=(BB1>BB2 OR BB=0) AND NOT(BB=1);
LC:=REF(C,4);
RMI:=SMA(MAX(C-LC,0),7,1)/SMA(ABS(C-LC),7,1)*100;
RMA:=SMA(RMI,3,1);RMB:=SMA(RMA,3,1);
RMC:=MAX(RMB,50)-30;RMD:=70-MIN(RMB,50);
{///////////////////////////////////////////////////////}
REFLINE:50,70;
STICKLINE(NOT(BB4),20,RMC,1,1),COLOR400080;
STICKLINE(RMC>35 AND NOT(BB4),35,RMC,1,1),COLOR5A00B5;
STICKLINE(RMC>50 AND NOT(BB4),50,RMC,1,1),COLOR0000FF;
{STICKLINE(BB4,20,RMD,1,1),COLOR733900;
STICKLINE(RMD>35 AND BB4,35,RMD,1,1),COLORB05800;
STICKLINE(RMD>50 AND BB4,50,RMD,1,1),COLOR5A5A5A;}
STICKLINE(DIFF>=0,3,5,1,1),COLORFF00FF;
STICKLINE(DIFF>=0,-3,-5,1,1),COLORFF00FF;
STICKLINE(NOT(BB4),0,5,1,1),COLOR4440FF;
STICKLINE(BB4,0,-5,1,1),COLORFFFF33;
原文链接:https://www.tdxzb.com/?id=1506
本文版权:如无特别标注,本站文章均为原创。