最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 把大智慧《macd》修改为飞狐使用的

    正文概述    2024-04-14 09:26:22  

    九毛八公式指标

    烦请老师将把大智慧《macd》修改为飞狐使用的,谢谢,顺祝老师们双节快乐! 源码如下: VAR1:=REF(MA(C,20),10);开:=O-VAR1;高:=H-VAR1;低:=L-VAR1;收:=C-VAR1;MID:=MA(C,20); UPPER:=MID+2*STD(C,20);LOWER:=MID-2*STD(C,20);V1:=(C-LOWER)/(UPPER-LOWER)*100; V2:=V1-EMA(V1,5);K1:=SUM(LLV(V2,4),4)/4;V3:=EMA(V2,64)*10;V4:=EMA(0.4*V2*(-1),3); V5:=-1*EMA(V2,39)*10;A:=V3>10;B:=V2>V4;D:=V5>10;E:=V3<=10 OR V2<=V4 OR V5<=10; STICKLINE(C,0,0,6,0), COLORYELLOW; STICKLINE(收>=开 AND E,高,低,0,0), COLORRED; STICKLINE(收>=开 AND E,收,开,3,0) ,COLORRED; STICKLINE(收< 开 AND E,高,低,0,0) ,COLORGREEN; STICKLINE(收< 开 AND E,收,开,3,0) ,COLORGREEN; STICKLINE(开> 收 AND A ,低,高,0,0),COLORFF0000; STICKLINE(开> 收 AND A ,收,开,3,0),COLORFF0000; STICKLINE(开<=收 AND A,低,高,0,0),COLORYELLOW; STICKLINE(开<=收 AND A,收,开,3,1),COLORYELLOW; STICKLINE(开> 收 AND B,低,高,0,0),COLORRED; STICKLINE(开> 收 AND B,收,开,3,0),COLORRED; STICKLINE(开<=收 AND B,低,高,0,0),COLORRED; STICKLINE(开<=收 AND B,收,开,3,1),COLORRED; STICKLINE(开> 收 AND D,低,高,0,0),COLORGREEN; STICKLINE(开> 收 AND D,收,开,3,0),COLORGREEN; STICKLINE(开<=收 AND D,收,开,3,1),COLORGREEN; 长DIF:EMA(CLOSE,7)-EMA(CLOSE,144),linethick0; 长DEA:EMA(长DIF,360),linethick0; JC:=CROSS(长DIF,长DEA); fillrgn(长DIF,长DEA,长DIF>长DEA,RGB(150,0,150),长DIF<长DEA,RGB(0,100,200)); F:=(EMA(CLOSE,5)-EMA(CLOSE,21))*4; A:=EMA(F,5); MMD:=2*(F-A); STICKLINE(MMD>0,0,MMD,1,1),COLOR0000FF; STICKLINE(MMD<0,0,MMD,1,1),COLOR00FF00; 短DIF:F,COLORFFFFFF; 短DEA:A,COLOR00FFFF,linethick0; PARTLINE(A,A>F,RGB(255,0,0),A

    公式模块:

    VAR1:=REF(MA(C,20),10);

    开:=O-VAR1;高:=H-VAR1;低:=L-VAR1;收:=C-VAR1; MID:=MA(C,20); UPPER:=MID+2*STD(C,20); LOWER:=MID-2*STD(C,20); V1:=(C-LOWER)/(UPPER-LOWER)*100; V2:=V1-EMA(V1,5); K1:=SUM(LLV(V2,4),4)/4;V3:=EMA(V2,64)*10; V4:=EMA(0.4*V2*(-1),3); V5:=-1*EMA(V2,39)*10; A:=V3>10;B:=V2>V4;D:=V5>10;E:=V3<=10 OR V2<=V4 OR V5<=10; STICKLINE(C,0,0,6,0), COLORYELLOW; STICKLINE(收>=开 AND E,高,低,0,0), COLORRED; STICKLINE(收>=开 AND E,收,开,3,0) ,COLORRED; STICKLINE(收< 开 AND E,高,低,0,0) ,COLORGREEN; STICKLINE(收< 开 AND E,收,开,3,0) ,COLORGREEN; STICKLINE(开> 收 AND A ,低,高,0,0),COLORFF0000; STICKLINE(开> 收 AND A ,收,开,3,0),COLORFF0000; STICKLINE(开<=收 AND A,低,高,0,0),COLORYELLOW; STICKLINE(开<=收 AND A,收,开,3,1),COLORYELLOW; STICKLINE(开> 收 AND B,低,高,0,0),COLORRED; STICKLINE(开> 收 AND B,收,开,3,0),COLORRED; STICKLINE(开<=收 AND B,低,高,0,0),COLORRED; STICKLINE(开<=收 AND B,收,开,3,1),COLORRED; STICKLINE(开> 收 AND D,低,高,0,0),COLORGREEN; STICKLINE(开> 收 AND D,收,开,3,0),COLORGREEN; STICKLINE(开<=收 AND D,收,开,3,1),COLORGREEN; 长DIF:EMA(CLOSE,7)-EMA(CLOSE,144),linethick0; 长DEA:EMA(长DIF,360),linethick0; JC:=crOSS(长DIF,长DEA); FILLRGN(长DIF>长DEA,长DIF,长DEA),Color960096; FILLRGN(长DIF<=长DEA,长DIF,长DEA),ColorC86400; F1:=(EMA(CLOSE,5)-EMA(CLOSE,21))*4; A1:=EMA(F1,5); MMD:=2*(F1-A1); STICKLINE(MMD>0,0,MMD,1,1),COLOR0000FF; STICKLINE(MMD<0,0,MMD,1,1),COLOR00FF00; 短DIF:F1,COLORFFFFFF; 短DEA:A1,COLOR00FFFF,linethick0; FILLRGN(A1>F1,A1,F1),Color0000FF; FILLRGN(A1<=F1,A1,F1),Color00FF00;

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 把大智慧《macd》修改为飞狐使用的 加入收藏