栏目分类
热点资讯
- 装修设计以及一家全新形象的东隅品牌先锋旅舍和行状式公寓
- 11月1日,太古地产晓谕,位于北京市向阳区的营业名目颐堤港将在二期扩建部分落成后,启用全新的名字“北京太古坊”,这也符号着“太古坊”品牌初次在中国内地落地。二期...
房产投资的风险有哪些 经典期间策画翻新:MACD策画优化政策与选股公式策画,主办时机 发布日期:2024-12-09 09:58 点击次数:134
策画详见下图:
图片
信号截至回测:
图片
图片
图片
源代码:
NN:=35;N:=20;M:=18;A:-( EMA(CLOSE,NN) - EMA(CLOSE,N));B:=EMA(A,M);MACD:(A-B),COLORSTICK;A1:-(EMA(CLOSE,NN/2) - EMA(CLOSE,N/2)),DOTLINE;B1:EMA(A1,M/2),DOTLINE;MACD1 : 2*(A1-B1)/N/2, COLORSTICK;LIJIN1:=MACD;STICKLINE(LIJIN1< REF(LIJIN1,1)AND LIJIN1>0,0,LIJIN1,2,0),COLOR33DFDD;STICKLINE(LIJIN1< REF(LIJIN1,1)AND LIJIN1< 0,0,LIJIN1,2,0),COLOR00DD00;STICKLINE(LIJIN1>REF(LIJIN1,1)AND LIJIN1< 0,0,LIJIN1,2,0),COLORFFAA00;STICKLINE(LIJIN1>REF(LIJIN1,1)AND LIJIN1>0,0,LIJIN1,2,0),COLOR0000DD;0;作念多买进:LIJIN1>REF(LIJIN1,1) AND LIJIN1>0,NODRAW;赢利回吐:LIJIN1< REF(LIJIN1,1)AND LIJIN1>0,NODRAW;作念空卖出:LIJIN1< REF(LIJIN1,1)AND LIJIN1<0,NODRAW;空头回补:LIJIN1>REF(LIJIN1,1) AND LIJIN1<0,NODRAW;A2:=EMA(CLOSE,NN/3) - EMA(CLOSE,N/3);B2:=EMA(A2,M/3);MACD2 : 2*(A2-B1)/N/3, COLORSTICK;AA:=A1<REF(A1,1)AND REF(A1,1)>REF(A1,2)AND A1>A AND A1>0.1;DRAWTEXT(CROSS(A1,B1)AND B1<0,B1,''),COLORRED;DRAWICON(CROSS(A2,B2)AND B2<-0.18,A,2);DRAWTEXT(CROSS(A,A2)AND A<0.03,A,'进');DRAWTEXT(COUNT(A>REF(A,1),8)>=7 AND A>0.2 AND A<REF(A,1)OR AA,A,'逃'),COLORGREEN;选股源代码:
NN:=35;N:=20;M:=18;A:=-( EMA(CLOSE,NN) - EMA(CLOSE,N));A2:=EMA(CLOSE,NN/3) - EMA(CLOSE,N/3);CROSS(A,A2)AND A<0.03;
图片
本站仅提供存储奇迹,扫数本色均由用户发布,如发现存害或侵权本色,请点击举报。