同花顺日金斗进指标公式

2019-05-21    作者:股匠网整理    来源:本站整理

DIFF:=100*(EMA(CLOSE12)-EMA(CLOSE26))NODRAW;
DEA:=EMA(DIFF9)NODRAW;
MACD:=(DIFF-DEA)*2NODRAW;
死叉:=CROSS(DEADIFF);
N1:=BARSLAST(死叉);
N2:=REF(BARSLAST(死叉)N1+1);
N3:=REF(BARSLAST(死叉)N2+N1+2);
CL1:=LLV(LOWN1+1);
DIFL1:=LLV(DIFFN1+1);
CL2:=REF(CL1N1+1);
DIFL2:=REF(DIFL1N1+1);
CL3:=REF(CL2N1+1);
DIFL3:=REF(DIFL2N1+1);
PDIFL2:=IF(DIFL2>0INTPART(LOG(DIFL2))-1INTPART(LOG(-DIFL2))-1);
MDIFL2:=INTPART(DIFL2/POW(10PDIFL2));
PDIFL3:=IF(DIFL3>0INTPART(LOG(DIFL3))-1INTPART(LOG(-DIFL3))-1);
MDIFL3:=INTPART(DIFL3/POW(10PDIFL3));
MDIFB2:=INTPART(DIFF/POW(10PDIFL2));
MDIFB3:=INTPART(DIFF/POW(10PDIFL3));
直接底部结构:=(CL1<CL2 ) AND (MDIFB2>MDIFL2) AND DIFF<0 AND (MACD<0 AND REF(MACD1)<0) AND MDIFB2<=REF(MDIFB20);
隔峰底部结构:=(CL1<CL3 AND CL3<CL2 ) AND (MDIFB3>MDIFL3) AND (MACD<0 AND REF(MACD1)<0) AND MDIFB3<=REF(MDIFB30);
BG:=((MDIFB2>REF(MDIFB21))*REF(直接底部结构2)) OR ((MDIFB3>REF(MDIFB32))*REF(隔峰底部结构2))NODRAW;
P:=CROSS(DIFFDEA);
DRAWTEXT(FILTER(BG AND PMACD>0)L*0.99'●底部结构')colormagenta;
金叉:=CROSS(DIFFDEA);
M1:=BARSLAST(金叉);
M2:=REF(BARSLAST(金叉)M1+1);
M3:=REF(BARSLAST(金叉)M2+M1+2);
CH1:=HHV(HIGHM1+1);
DIFH1:=HHV(DIFFM1+1);
CH2:=REF(CH1M1+1);
DIFH2:=REF(DIFH1M1+1);
CH3:=REF(CH2M1+1);
DIFH3:=REF(DIFH2M1+1);
PDIFH2:=IF(DIFH2>0INTPART(LOG(DIFH2))-1INTPART(LOG(-DIFH2))-1);
MDIFH2:=INTPART(DIFH2/POW(10PDIFH2));
PDIFH3:=IF(DIFH3>0INTPART(LOG(DIFH3))-1INTPART(LOG(-DIFH3))-1);
MDIFH3:=INTPART(DIFH3/POW(10PDIFH3));
MDIFT2:=INTPART(DIFF/POW(10PDIFH2));
MDIFT3:=INTPART(DIFF/POW(10PDIFH3));
直接顶部结构:=(CH1>CH2 ) AND (MDIFT2<MDIFH2) AND DIFF>0 AND (MACD>0 AND REF(MACD1)>0) AND MDIFT2>=REF(MDIFT20);
隔峰顶部结构:=(CH1>CH3 AND CH3>CH2 ) AND (MDIFT3<MDIFH3) AND (MACD>0 AND REF(MACD1)>0) AND MDIFT3>=REF(MDIFT30);
TG:=((MDIFT2<REF(MDIFT21))*REF(直接顶部结构2)) OR ((MDIFT3<REF(MDIFT32))*REF(隔峰顶部结构2))NODRAW;
Q:=CROSS(DEADIFF);
DRAWTEXT(FILTER(TG AND QMACD<0)H*1.02'●顶部结构')colorgreen;
A1:=C>REF(C4);
NT:=BARSLASTCOUNT(A1);
TJ11:=NT=9;
TJ13:=ISLASTBAR AND BETWEEN(NT58);
DRAWTEXT(NT=9H*1.007'▲高点')colorgreen;
K1:=REF(C0)>REF(C13);
K2:=REF(NT=913);
DRAWTEXT(K1 AND K2H*1.007'■顶')colorred;
B1:=C<REF(C4);
NT0:=BARSLASTCOUNT(B1);
TJ21:=NT0=9 ;
TJ23:=ISLASTBAR AND BETWEEN(NT058);
DRAWTEXT(NT0=9L*0.994'▲低点')colorred;
T1:=REF(C0)<REF(C13);
T2:=REF(NT0=913);
DRAWTEXT(T1 AND T2L*0.994'■底')colorgreen;
A1A:=EMA(CLOSE 9);
A1B:=((A1A - EMA(CLOSE 5)) < 0);
A1C:=((A1A - EMA(CLOSE 5)) > 0);
A1D:=BARSLAST(A1B);
A1E:=BARSLAST(A1C);
A1F:=IF((A1E > 0)(CLOSE - REF(CLOSE 1)) / REF(CLOSE 1) * 1000);
A20:=SUM(A1F0);
A21:=IF((A1D > 0)(0 - 2)0);
A22:=IF((A1E > 0)SUM((CLOSE - REF(CLOSE 1)) / REF(CLOSE 1) * 100A1E)0);
A23:=A22 / A1E;
A25:=EMA(EMA(EMA(CLOSE 3) 3) 3);
上升通道:((A25 - REF(A25 1)) + A25)colorred;
反转通道:MA(上升通道 15)colorgreen;

阅读:385    评论:0

联系我们 - 关于我们 - 网站地图

声明:站内所有文章、公式均来自互联网或网友分享提供,如侵犯您的权利请告知,我们会在24小时内及时删除! 


【电脑版】  【回到顶部】