回覆列表
  • 1 # 使用者8817694511088

    以通達信為例:

    一、首先開啟通達信的介面--功能--公式管理--公式管理器--技術指標公式--其他型別--新建(假如是文件的話選擇匯入--在桌面上找到文件直接匯入就好)

    二、名稱:資金上穿均線--把原始碼貼上在框框--幅圖

    DRAWGBK(C>0, RGB(0,10,10),RGB(88,0,0),0,"11",0); YM:=MA(((WINNER((CLOSE * 0.9)) * 100) * CLOSE),3);

    DC:=(IF((YM > 10),YM,0) / 2);

    主力資金:DC,STICK,LINETHICK4,COLORRED;

    資金均量:MA(DC,5),COLORGREEN;

    資金流入線:DC,COLORYELLOW,LINETHICK1;

    資金均量線:MA(DC,5),COLORMAGENTA;

    盤1:=COST(0.33);

    盤2:=COST(5);

    盤3:=COST(15);

    盤4:=COST(55);

    盤5:=COST(97);

    獲利:=WINNER(CLOSE)*100;

    套牢:=100-WINNER(CLOSE)*100;

    DRAWTEXT_FIX(1,0.02,0,0,EXTERNSTR(0,1)),COLOR719FFF;

    DRAWTEXT_FIX (1,0.4,0,1,"升浪:"),COLOR00FFFF;

    DRAWNUMBER_FIX(1,0.41,0,0,CONST(COST(55))),COLOR007DFB;

    DRAWTEXT_FIX (1,0.5,0,0,"預測:"),COLOR00FFFF;

    DRAWNUMBER_FIX(1,0.55,0,0,CONST(COST(97))),COLOR007DFB;

    {DRAWTEXTABS(675,25,"升浪:"+NUMTOSTRN(盤4,2)),COLOR00FFFF;

    DRAWTEXTABS(520,40,"獲利:"+NUMTOSTRN(獲利,2)+"%"),COLOR00FFFF;

    DRAWTEXTABS(600,40,"套牢:"+NUMTOSTRN(套牢,2)+"%"),COLOR00FFFF;

    DRAWTEXTABS(675,40,"預測:"+NUMTOSTRN(盤5,2)),COLOR00FFFF;}

    MA1:=MA(CLOSE,5);

    MA2:=MA(CLOSE,10);

    MA3:=MA(CLOSE,20);

    MA4:=MA(CLOSE,30);

    多頭排列:= MA1>MA2 AND MA2>MA3 AND MA3>MA4 ;

    MA60:=MA(C,60),COLORFFCC66; MA13:=MA(C,13),COLORFFCC66;

    MA75:=MA(C,75),COLORFFCC66;

    空頭排列:= MA1<MA2 AND MA2<MA3 AND MA3<MA4 ;

    下跌趨勢:=MA4<REF(MA4,3)AND MA4<REF(MA4,1);

    上升趨勢:=MA4>REF(MA4,3) AND MA4>REF(MA4,1) ;

    下降成:=CONST(IF(下跌趨勢 AND MA1<REF(MA1,1) AND REF(NOT(下跌趨勢),1),1,0));

    上升成:=CONST(IF(上升趨勢 AND REF(NOT(上升趨勢),1),1,0));

    DRAWTEXT_FIX(ISLASTBAR AND 下降成=1,0.8,0.2,0,"下降趨勢成"),COLORFFFF00;

    DRAWTEXT_FIX(ISLASTBAR AND 上升成=1,0.8,0.2,0,"上升趨勢成"),COLOR8080FF;

    一陰穿2線:=C/O<0.985 AND H>MA1 AND C<MA3;

    一陽穿2線:=C/O>1.016 AND L<MIN(MA1,MA3)AND C>MAX(MA1,MA3);

    發散度:=MA1/MA4;

    均線下發散:=下跌趨勢 AND 發散度<0.9 AND 發散度<0.99*REF(發散度,1);

    均線上發散:=MA1>REF(MA1,1) AND MA2>REF(MA2,1) AND MA3>REF(MA3,1) AND MA4>REF(MA4,1) AND MA1>MA2 AND MA2>MA3 AND MA3>MA4;

    AAAA1:=MAX(MAX(MA(V,5),MA(V,10)),MA(V,60))/MIN(MIN(MA(V,5),MA(V,10)),MA(V,60))<=1.4;

    AAAA2:=MAX(MA(C,5),MA(C,10))/MIN(MA(C,5),MA(C,10))<=1.4;

    DIFF:=EMA(C,12)-EMA(C,26);

    DEA:=EMA(DIFF,9);

    升:=CONST(IF( DIFF>0,1,0)),COLORRED;

    DRAWTEXT_FIX(ISLASTBAR AND 升=1,0.1,0.35,0,"處於上升趨勢"),COLOR8080FF;

    降:=CONST(IF( DIFF<-0,1,0)),COLORRED;

    DRAWTEXT_FIX(ISLAS

  • 中秋節和大豐收的關聯?
  • 繽越epro優缺點?