Board logo

标题: [同花顺指标] 同花顺MACD背离战法指标公式 [打印本页]

作者: 龙听    时间: 2020-4-21 13:42     标题: 同花顺MACD背离战法指标公式

  1.   AAA:=CLOSE*9.81987-14.18013*REF(CLOSE,1)-1.68013*REF(CLOSE,2)-1.3468*REF(CLOSE,3)-1.0968*REF(CLOSE,4)-0.8968*REF(CLOSE,5)-0.73013*REF(CLOSE,6)-0.58728*REF(CLOSE,7)-0.46228*REF(CLOSE,8)-0.35117*REF(CLOSE,9)-0.25117*REF(CLOSE,10)-0.16026*REF(CLOSE,11)-0.07692*REF(CLOSE,12);

  2.   BBB:=CLOSE*29.88179-36.11821*REF(CLOSE,1)-2.61821*REF(CLOSE,2)-2.28488*REF(CLOSE,3)-2.03488*REF(CLOSE,4)-1.83488*REF(CLOSE,5)-1.66821*REF(CLOSE,6)-1.52535*REF(CLOSE,7)-1.40035*REF(CLOSE,8)-1.28924*REF(CLOSE,9)-1.18924*REF(CLOSE,10)-1.09833*REF(CLOSE,11)-1.015*REF(CLOSE,12)-0.93808*REF(CLOSE,13)-0.86665*REF(CLOSE,14)-0.79998*REF(CLOSE,15)-0.73748*REF(CLOSE,16)-0.67866*REF(CLOSE,17)-0.6231*REF(CLOSE,18)-0.57047*REF(CLOSE,19)-0.52047*REF(CLOSE,20)-0.47285*REF(CLOSE,21)-0.4274*REF(CLOSE,22)-0.38392*REF(CLOSE,23)-0.34225*REF(CLOSE,24)-0.30225*REF(CLOSE,25)-0.26379*REF(CLOSE,26)-0.22675*REF(CLOSE,27)-0.19104*REF(CLOSE,28)-0.15656*REF(CLOSE,29)-0.12322*REF(CLOSE,30)-0.09096*REF(CLOSE,31)-0.05971*REF(CLOSE,32)-0.02941*REF(CLOSE,33);

  3.   高:=(3-BBB/AAA)*100;

  4.   上:=HHV(高,2);

  5.   收:=MA(高,3)-STD(高,3);

  6.   开:=MA(高,5)-STD(高,4);

  7.   低:=MA(高,5)-STD(高,4);

  8.   MID1:=MA(收,18);

  9.   生命线:MID1,Color11FFFF;

  10.   取舍线:EMA(收,9),ColorFFFFFF;

  11.   LC:=REF(CLOSE,1);

  12.   RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);

  13.   FF:=EMA(CLOSE,4);

  14.   背离线:EMA(CLOSE,21),Color00FB00;

  15.   DRAWTEXT(CROSS(FF,背离线),(LOW * 0.99),‘底背离’),Color33FFFF;

  16.   DRAWTEXT(CROSS(88,RSI),(HIGH * 3.58),‘顶背离’),ColorFFFFFF;

  17.   STICKLINE(取舍线>收,取舍线,收,1,0),ColorFFFF4D,POINTDOT;

  18.   STICKLINE(取舍线<收,取舍线,收,1,0),ColorFF3EFF,POINTDOT;

  19.   STICKLINE(收>=开,收,开,10,0),color00AAAA;

  20.   STICKLINE(收>=开,收,开,6,0),color00F2F2;

  21.   STICKLINE(收>=开,收,开,4,0),color4DFFFF;

  22.   STICKLINE(收>=开,收,开,2,0),color4DFFFF;

  23.   STICKLINE(收<开,收,开,10,0),color007900;

  24.   STICKLINE(收<开,收,开,6,0),color00A200;

  25.   STICKLINE(收<开,收,开,3,0),color00C600;

  26.   STICKLINE(收<开,收,开,1,0),color00FF00;

  27.   STICKLINE(上=高,收,开,10,0),color0000AA;

  28.   STICKLINE(上=高,收,开,6,0),color0000BB;

  29.   STICKLINE(上=高,收,开,3,0),color0000CC;

  30.   STICKLINE(上=高,收,开,1,0),color0000DD;

  31.   10,LINEDOT;

  32.   20,LINEDOT;

  33.   30,LINEDOT;

  34.   MTM:=C-REF(C,1);

  35.   DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);

  36.   低吸:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);

  37.   DRAWTEXT(FILTER(低吸=1,5),LOW-6.99,‘▲’),ColorFFFFFF;

  38.   最新收益:MGSYX(33),Color6700CE;
复制代码





欢迎光临 龙听期货论坛 (http://www.qhlt.cn/) Powered by Discuz! 7.2