欢迎来到皮皮网网首页

【传奇3 源码】【论坛分享源码】【来源码表】通达信智慧指标源码_通达信zljc指标源码

来源:外包源码问题 时间:2024-11-26 19:34:47

1.请高手那通达信的通达指标改成大智慧的?
2.怎样把通达信的指标公式改为大智慧指标公式,条件选股公式,信智传奇3 源码进行预警?

通达信智慧指标源码_通达信zljc指标源码

请高手那通达信的标源论坛分享源码指标改成大智慧的?

       { MACD指标转换到大智慧平台}

       MACD2 := 2 * ("MACD.DIFF" - "MACD.DEA");

       STICKLINE(MACD2 >= 0 AND MACD2 > REF(MACD2, 1), 0, MACD2, 1.2, 0), COLORA5;

       STICKLINE(MACD2 >= 0 AND MACD2 < REF(MACD2, 1), 0, MACD2, 1.2, 0), COLORAA;

       STICKLINE(MACD2 < 0 AND MACD2 < REF(MACD2, 1), 0, MACD2, 1.2, 0), COLORA;

       STICKLINE(MACD2 0 AND MACD2 > REF(MACD2, 1), 0, MACD2, 1.2, 0), COLORAA5;

       DIF := EMA(CLOSE, ) - EMA(CLOSE, );

       DEA := EMA(DIF, 9);

       MACD := (DIF - DEA) * 2, LINETHICK0;

       { MACD日线二次金叉信号}

       JCCOUNT := COUNT(CROSS(DIF, DEA), BARSLAST(DEA >= 0));

       二次金叉 := CROSS(DIF, DEA) AND DEA < 0 AND COUNT(JCCOUNT = 2, ) = 1;

       DRAWTEXT(二次金叉, DEA * 1., '零下二金'), COLORWHITE;

       { MACD日线底背离信号}

       A1 := BARSLAST(REF(CROSS(DIF, DEA), 1));

       底背离 := REF(CLOSE, A1 + 1) > CLOSE AND DIF > REF(DIF, A1 + 1) AND CROSS(DIF, DEA);

       DRAWTEXT(底背离, DIF * 0.5, '日底背'), COLORRED;

       { 日线底背离连线}

       DRAWLINE(A1 = 0, DEA, 底背离, DEA, 0), COLORRED, DOTLINE;

       { MACD日线顶背离信号}

       A2 := BARSLAST(REF(CROSS(DEA, DIF), 1));

       顶背离 := REF(CLOSE, A2 + 1) CLOSE AND REF(DIF, A2 + 1) > DIF AND CROSS(DEA, DIF);

       DRAWTEXT(顶背离, DIF * 1., '日顶背'), COLORGREEN;

       { 日线顶背离连线}

       DRAWLINE(A2 = 0, DEA, 顶背离, DEA, 0), COLORGREEN, DOTLINE;

       { MACD与KDJ金叉共振信号}

       RSV := (CLOSE - LLV(LOW, 9)) / (HHV(HIGH, 9) - LLV(LOW, 9));

       K := SMA(RSV, 9, 3), LINETHICK0;

       D := SMA(K, 9, 3), LINETHICK0;

       J := 3 * K - 2 * D, LINETHICK0;

       金共 := CROSS(DIF, DEA) AND CROSS(K, D) AND CROSS(J, D);

       DRAWTEXT(金共, DEA * 1., '金叉共振'), COLORYELLOW;

       { MACD柱状背离}

       MACD高 := HHV(MACD, 5);

       C1 := BARSLAST(REF(CROSS(DEA, DIF), 1));

       E := REF(C, C1 + 1) > C AND DEA > 0 AND REF(MACD高, C1 + 1) < MACD高 AND CROSS(DEA, DIF);

       DRAWTEXT(E > 0, -0.5, '柱顶背'), COLORCYAN;

       F := REF(C, A1 + 1) > C AND DEA < 0 AND REF(MACD高, A1 + 1) < MACD高 AND CROSS(DIF, DEA);

       DRAWTEXT(F > 0, 0.5, '柱底背'), COLOR;

       { MACD积聚背离}

       JC := DEA - DIF;

       绿碰迅柱面积 := IF(MACD < 0, SUM(MACD, BARSLAST(JC < 0)), 0);

       红柱面积 := IF(MACD > 0, SUM(MACD, BARSLAST(JC > 0)), 0);

       本次最低价 := LLV(L, BARSLAST(JC < 0));

       本次最高价 := HHV(H, BARSLAST(JC > 0));

       X1 := IF(MACD < 0, BARSLAST(CROSS(DIF, DEA)), 0);

       前次绿柱面积 := REF(绿柱面积, X1 + 1);

       前次最低价 := REF(本次最低价, X1 + 1);

       Y1 := IF((绿柱面积 < 0 AND ABS(绿柱面积) < ABS(前次绿柱面积) AND 本次最低价 < 前次最低价), 1, 0);

       RS1 := MACD < 0 AND REF(MACD, 1) < 0 AND C < 前次最低价 AND ABS(绿柱面积) < ABS(前次绿柱面积) AND ABS(MACD) < ABS(REF(MACD, 1));

       底背驰 := IF(CROSS(DIF, DEA), REF(Y1, 1), 0);

       DRAWTEXT(底背驰, DEA * 0.8, '积底背'), COLORFFFF;

       X2 := IF(MACD > 0, BARSLAST(CROSS(DEA, DIF)), 0);

       前次红柱面积 := REF(红柱面积, X2 + 1);

       前次最高价 := REF(本次最高价, X2 + 1);

       Y2 := IF((红柱面积 > 0 AND 红柱面积 前次红柱面积 AND 本次最高价 > 前次最高价), 1, 0);

       RS2 := MACD > 0 AND REF(MACD, 1) > 0 AND C > 前次最高价 AND ABS(红柱面积) < ABS(前次红柱面积) AND ABS(MACD) < ABS(REF(MACD, 1));

       顶背驰 := IF(CROSS(DEA, DIF), REF(Y2, 1), 0);

       DRAWTEXT(顶背驰, DEA * 0.8, '积顶背'), COLORCYAN;

怎样把通达信的指标公式改为大智慧指标公式,条件选股公式,码通来源码表进行预警?

       { OK。达信四虎源码主图通过测试}

       均价线:AMOUNT/V/,指标启动源码大全POINTDOT;

       C2:=REF(C,1);

       涨停:=IF(REF(C,1)*1.1-C<0. ,1,0);

       STICKLINE(涨停,OPEN,CLOSE,8,0),COLORRED;

       STICKLINE(涨停,OPEN,CLOSE,5,0),COLORYELLOW;

       STICKLINE(涨停,H,L,0,0),COLORYELLOW;

       B1:='┄┄┄┄┄';

       DRAWTEXT(均价线 AND 涨停,均价线,B1),COLORGREEN;

       B3:='┄┄┄┄┄';

       DRAWTEXT((O+C)/2 AND 涨停,(O+C)/2 ,B3),COLORMAGENTA;

       B2:='┄┄┄┄┄';

       DRAWTEXT(涨停,L,B2),COLORGRAY;

       MA:MA(C,),COLORGRAY;

       MA:MA(C,),COLORWHITE;

       支撑线:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,)+MA(CLOSE,))/4,COLORMAGENTA;

       LC:=REF(CLOSE,1);

       操作线:SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*,COLORWHITE,LINETHICK0;

       趋势线:SMA(MAX(CLOSE-LC,0),,1)/SMA(ABS(CLOSE-LC),,1)*,COLORGRAY,LINETHICK0;

       震仓线:,COLORMAGENTA,LINETHICK0;

       震仓线2:,COLORGRAY,LINETHICK0;

       逃命线:,COLORRED,LINETHICK0;

       抄底线:,COLORGREEN,LINETHICK0;

       绝底线:5,COLORBLUE,LINETHICK0;

       PP2:=操作线<震仓线2 AND REF(操作线,1)>震仓线2 ;

       PP:=操作线<震仓线 AND REF(操作线,1)>震仓线 ;

       PP3:=操作线<抄底线 AND REF(操作线,1)>抄底线;

       HH:=COUNT(涨停,)>=1;

       STICKLINE(PP2 AND HH,OPEN,CLOSE,8,0),COLORBLUE;

       STICKLINE(PP AND HH,OPEN,CLOSE,8,0),COLORBLUE;

       STICKLINE(PP3 AND HH,OPEN,CLOSE,8,0),COLORBLUE;

       A:=SMA(L,4,3) ;

       STICKLINE(A AND REF(PP,1) AND HH ,A*0.,A*0.,8,0),COLORGREEN;

       PARTLINE(L,A AND REF(PP,1) AND HH,RGB(,0,0)),CIRCLEDOT;

       DRAWICON(A AND REF(PP,1) AND HH,L*0.,1);

       STICKLINE(A AND REF(PP3,1) AND HH ,A*0.,A*0.,8,0),COLORGREEN;

       PARTLINE(L,A AND REF(PP3,1) AND HH,RGB(0,,0)),CIRCLEDOT;

       DRAWICON(A AND REF(PP3,1) AND HH,L*0.,1);

       HD:=COUNT(涨停,)>=1;

       A1:=SMA(H,4,3);

       STICKLINE(A1 AND HD ,A1,A1*1.,8,0),COLORWHITE;

       博金投资:INDEXADV,COLOREE,LINETHICK0;

       ========================

       { 副图显示}

       LC:=REF(CLOSE,1);

       操作线:SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*,COLORWHITE,LINETHICK0;

       趋势线:SMA(MAX(CLOSE-LC,0),,1)/SMA(ABS(CLOSE-LC),,1)*,COLORGRAY,LINETHICK0;

       震仓线:,COLORMAGENTA,LINETHICK0;

       震仓线2:,COLORGRAY,LINETHICK0;

       逃命线:,COLORRED,LINETHICK0;

       抄底线:,COLORGREEN,LINETHICK0;

       绝底线:5,COLORBLUE,LINETHICK0;

       PP2:=操作线<震仓线2 AND REF(操作线,1)>震仓线2 ;

       PP:=操作线<震仓线 AND REF(操作线,1)>震仓线 ;

       PP3:=操作线<抄底线 AND REF(操作线,1)>抄底线;

       涨停:=IF(REF(C,1)*1.1-C<0. ,1,0);

       HH:=COUNT(涨停,)>=1;

       STICKLINE(涨停 AND HH,0,0.8,4.5,0),COLORYELLOW;

       DRAWTEXT(涨停 AND HH,1.3,'涨'),COLORYELLOW;

       DRAWTEXT(涨停 AND HH,1,'停'),COLORYELLOW;

       AA:=REF(PP,1) AND HH;

       STICKLINE(PP AND HH,0,0.8,2,0),COLORRED;

       DRAWTEXT(PP AND HH,1.3,'预'),COLORRED;

       DRAWTEXT(PP AND HH,1,'警'),COLORRED;

       STICKLINE(REF(PP,1) AND HH,0,3,0.5,0),COLORGREEN;

       DRAWICON(REF(PP,1) AND HH,3.3,1);

       BB:=REF(PP3,1) AND HH;

       STICKLINE(PP3 AND HH,0,0.8,2,0),COLORRED;

       STICKLINE(REF(PP3,1) AND HH,0,3,0.5,0),COLORGREEN;

       DRAWICON(REF(PP3,1) AND HH,3.3,1);

       **涨停板:PP,LINETHICK0,COLORYELLOW;

       红色预警:PP,LINETHICK0,COLORRED;

       绿色买入:PP,LINETHICK0,COLORGREEN;

       =====================

       { 预警选股}

       { 1}

       LC:=REF(CLOSE,1);

       操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*;

       趋势线:=SMA(MAX(CLOSE-LC,0),,1)/SMA(ABS(CLOSE-LC),,1)*;

       震仓线:=;

       PP:=操作线<震仓线 AND REF(操作线,1)>震仓线 ;

       涨停:=IF(REF(C,1)*1.1-C<0. ,1,0);

       HH:=COUNT(涨停,)>=1;

       REF(PP,1) AND HH;

       =====================

       { 2}

       涨停:=IF(REF(C,1)*1.1-C<0. ,1,0);

       HH:=COUNT(涨停,)>=1;

       涨停 AND HH;

       =========================

       { 3}

       LC:=REF(CLOSE,1);

       操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*;

       抄底线:=;

       PP3:=操作线<抄底线 AND REF(操作线,1)>抄底线;

       涨停:=IF(REF(C,1)*1.1-C<0. ,1,0);

       HH:=COUNT(涨停,)>=1;

       PP3 AND HH;