您现在的位置:程序化交易>> 期货公式>> 文华财经>> 文华财经知识>>正文内容

老师下午好!帮我改一下,谢谢 [文华财经]

  • 咨询内容:  一:
    V1:=ZIG(3,12);

    V2:IF(REF(V1,2)>REF(V1,1) AND V1>REF(V1,1),50,0),colorred,LINETHICK2;

    V3:IF(REF(V1,2)<REF(V1,1) AND V1<REF(V1,1),50,0),colorgreen,LINETHICK2;

    VAR1:=ZIG(3,12)<REF(ZIG(3,12),1) AND REF(ZIG(3,12),1)>REF(ZIG(3,12),2);

    VAR2:=ZIG(3,12)>REF(ZIG(3,12),1) AND REF(ZIG(3,12),1)<REF(ZIG(3,12),2);

    DRAWTEXT(VAR1,50,'顶'),coloryellow;

    DRAWTEXT(VAR2,50,'底'),coloryellow;

    资金趋势:EMA(30*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3)*3, colorred,LINETHICK1;

    VAR3:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);

    买点:= VAR3,colorred;

    DRAWTEXT(买点>0,45,'低吸点'),colormagenta;

    STICKLINE(买点,0,50,2,0),colormagenta,LINETHICK1;


    二:


    A7:=C-REF(C,1);
    A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
    SHORT:=7;
    LONG:=19;
    RMA:=EMA(CLOSE,SHORT);
    NMA:=EMA(CLOSE,LONG);
    UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NMA,RMA))+1),H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BARSLAST(CROSS(RMA,NMA))+1),0);
    DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BARSLAST(CROSS(RMA,NMA))+1),L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NMA,RMA))+1),0);
    MA20:=MA(C,20);
    MA30:=MA(C,30);
    QSXS:=MA20>MA30 AND MA20>REF(MA20,1) AND MA30>REF(MA30,1);
    Z,:=(C/REF(C,1)-1)*100;
    N1:=BARSLAST(CROSS(C,MA(C,5)));
    N2:=BARSLAST(CROSS(MA(C,5),C));
    HM:=IF(N1<N2,N1+1,0)*QSXS;
    Z2:=HM=1 AND Z,>=0 AND C>O AND QSXS;
    KX1:=Z,<=-3 AND C<O;
    XDSJ:=BARSLAST(KX1);
    KX2:=Z,>=3 AND C>O;
    JBY:=KX2 AND XDSJ<=2 AND C>=REF(O*0.99,XDSJ) AND Z,>ABS(REF(Z,,XDSJ)*0.99);
    Z3:=IF(FILTER(JBY,1) AND QSXS,5,0);
    VAR11:=EMA(HHV(HIGH,500),21);
    VAR2:=EMA(HHV(HIGH,250),21);
    VAR3:=EMA(HHV(HIGH,90),21);
    VAR4:=EMA(LLV(LOW,500),21);
    VAR5:=EMA(LLV(LOW,250),21);
    VAR6:=EMA(LLV(LOW,90),21);
    VAR7:=EMA((VAR4*0.96+VAR5*0.96+VAR6*0.96+VAR11*0.558+VAR2*0.558+VAR3*0.558)/6,21);
    VAR8:=EMA((VAR4*1.25+VAR5*1.23+VAR6*1.2+VAR11*0.55+VAR2*0.55+VAR3*0.65)/6,21);
    VAR9:=EMA((VAR4*1.3+VAR5*1.3+VAR6*1.3+VAR11*0.68+VAR2*0.68+VAR3*0.68)/6,21);
    VARA:=EMA((VAR7*3+VAR8*2+VAR9)/6*1.738,21);
    VARB:=REF(LOW,1);
    VARC:=SMA(ABS(LOW-VARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100;
    VARD:=EMA(IF(CLOSE*1.35<=VARA,VARC*10,VARC/10),3);
    VARE:=LLV(LOW,30);
    VARF:=HHV(VARD,30);
    VAR10:=IF(MA(CLOSE,58),1,0);
    AA3:=( EMA(IF(LOW<=VARE,(VARD+VARF*2)/2,0),3)/618*VAR10);
    CC:=HHV(AA3,60);
    AR3:=(1-(MA(LOW,3))/(MA((HIGH+LOW+(2)*(CLOSE))/(4),20)))*(100)-(50)/(10);
    AVAR1:=MA(HHV(HIGH,485),17);
    AVAR2:=MA(HHV(HIGH,222),17);
    AVAR3:=MA(HHV(HIGH,96),17);
    AVAR4:=MA(LLV(LOW,485),17);
    AVAR5:=MA(LLV(LOW,222),17);
    AVAR6:=MA(LLV(LOW,96),17);
    AVAR7:=MA(((AVAR4)*(0.96)+(AVAR5)*(0.96)+(AVAR6)*(0.96)+(AVAR1)*(0.558)+(AVAR2)*(0.558)+(AVAR3)*(0.558))/(6),17);
    AVAR8:=MA(((AVAR4)*(1.25)+(AVAR5)*(1.23)+(AVAR6)*(1.2)+(AVAR1)*(0.55)+(AVAR2)*(0.55)+(AVAR3)*(0.65))/(6),17);
    AVAR9:=MA(((AVAR4)*(1.3)+(AVAR5)*(1.3)+(AVAR6)*(1.3)+(AVAR1)*(0.68)+(AVAR2)*(0.68)+(AVAR3)*(0.68))/(6),17);
    AVARA:=MA((((AVAR7)*(3)+(AVAR8)*(2)+AVAR9)/(6))*(1.738),17);
    AVARB:=IF((DATE<=1341231),AVARA,(AVARA)*(DAY));
    AVARC:=LOW;
    AVARD:=REF(LOW,1);
    AVARE:=((SMA(ABS(AVARC-AVARD),3,1))/(SMA(MAX(AVARC-AVARD,0),3,1)))*(100);
    AVARF:=MA(IF(((CLOSE)*(1.35)<=AVARB),(AVARE)*(10),(AVARE)/(10)),3);
    AVAR10:=LLV(LOW,30);
    AVAR11:=HHV(AVARF,30);
    AVAR12:=1341231;
    买进:=(LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2))) AND REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);
    捡钱了未来:IF(买进,0,1),COLORMAGENTA,LINETHICK2;
    抢钱了:Z2 AND Z3,LINETHICK2,COLORYELLOW;
    大底:=FILTER(AA3>10 ,1);
    找钱了:大底>0 AND C<O,COLORWHITE,NODRAW;
    印钞机:IF((AR3>0) AND (DATE>901231) AND (DATE<1341231),
    (((AR3)*(3000))*(REF((HIGH+LOW+(2)*(CLOSE))/(4),3)))/(CLOSE),0),COLORRED,NODRAW;
    点钞机:IF((DATE<=AVAR12),MA(IF((LOW<=AVAR10),(AVARF+(AVAR11)*(2))/(2),0),3),100000000),COLORYELLOW,NODRAW;
    STICKLINE(大底>0 AND C<O,0,1,1,0),COLORYELLOW;
    STICKLINE(印钞机>0,0,0.1,3,0),COLORRED;
    STICKLINE(点钞机>0,0.1,0.2,3,0),COLORCYAN;

     

     

     来源:程序化99

  • 文华技术人员:  不同软件对函数的处理略有不同,加载效果略有差异是正常的,参考:
     V1:=ZIGZAG(C,12,1); V2:IF(REF(V1,2)>REF(V1,1) AND V1>REF(V1,1),50,0),COLORRED,LINETHICK2;
    V3:IF(REF(V1,2)<REF(V1,1) AND V1<REF(V1,1),50,0),COLORGREEN,LINETHICK2;
    VAR1:=ZIGZAG(C,12,1)<REF(ZIGZAG(C,12,1),1) AND REF(ZIGZAG(C,12,1),1)>REF(ZIGZAG(C,12,1),2);
    VAR2:=ZIGZAG(C,12,1)>REF(ZIGZAG(C,12,1),1) AND REF(ZIGZAG(C,12,1),1)<REF(ZIGZAG(C,12,1),2);
    DRAWTEXT(VAR1,50,'',COLORYELLOW;
    DRAWTEXT(VAR2,50,'',COLORYELLOW;
    资金趋势:EMA(30*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3)*3, COLORRED,LINETHICK1;
    VAR3:=IF(TROUGHBARS(3,16,1,1)=0 AND HIGH>LOW+0.04,4,0);
    买点:= VAR3,COLORRED;
    DRAWTEXT(买点>0,45,'吸点',COLORMAGENTA;
    STICKLINE1(买点,0,50,2,0),COLORMAGENTA,LINETHICK1;

     

     来源: WWW.CXH99.COM

  • 文华客服:  文化中不能对趋势线进行赋值,  对趋势线赋值部分给你删除掉了
    A7:=C-REF(C,1); A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6); SHORT:=7; LONG:=19; RMA:=EMA(CLOSE,SHORT); NMA:=EMA(CLOSE,LONG); DRAWLINE(L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NMA,RMA))+1),H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BARSLAST(CROSS(RMA,NMA))+1),0); DRAWLINE(H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BARSLAST(CROSS(RMA,NMA))+1),L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NMA,RMA))+1),0); MA20:=MA(C,20); MA30:=MA(C,30); QSXS:=MA20>MA30 AND MA20>REF(MA20,1) AND MA30>REF(MA30,1); Z,:=(C/REF(C,1)-1)*100; N1:=BARSLAST(CROSS(C,MA(C,5))); N2:=BARSLAST(CROSS(MA(C,5),C)); HM:=IF(N1<N2,N1+1,0)*QSXS; Z2:=HM=1 AND Z,>=0 AND C>O AND QSXS; KX1:=Z,<=-3 AND C<O; XDSJ:=BARSLAST(KX1); KX2:=Z,>=3 AND C>O; JBY:=KX2 AND XDSJ<=2 AND C>=REF(O*0.99,XDSJ) AND Z,>ABS(REF(Z,,XDSJ)*0.99); Z3:=IF(FILTER(JBY,1) AND QSXS,5,0); VAR11:=EMA(HHV(HIGH,500),21); VAR2:=EMA(HHV(HIGH,250),21); VAR3:=EMA(HHV(HIGH,90),21); VAR4:=EMA(LLV(LOW,500),21); VAR5:=EMA(LLV(LOW,250),21); VAR6:=EMA(LLV(LOW,90),21); VAR7:=EMA((VAR4*0.96+VAR5*0.96+VAR6*0.96+VAR11*0.558+VAR2*0.558+VAR3*0.558)/6,21); VAR8:=EMA((VAR4*1.25+VAR5*1.23+VAR6*1.2+VAR11*0.55+VAR2*0.55+VAR3*0.65)/6,21); VAR9:=EMA((VAR4*1.3+VAR5*1.3+VAR6*1.3+VAR11*0.68+VAR2*0.68+VAR3*0.68)/6,21); VARA:=EMA((VAR7*3+VAR8*2+VAR9)/6*1.738,21); VARB:=REF(LOW,1); VARC:=SMA(ABS(LOW-VARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100; VARD:=EMA(IF(CLOSE*1.35<=VARA,VARC*10,VARC/10),3); VARE:=LLV(LOW,30); VARF:=HHV(VARD,30); VAR10:=IF(MA(CLOSE,58),1,0); AA3:=( EMA(IF(LOW<=VARE,(VARD+VARF*2)/2,0),3)/618*VAR10); CC:=HHV(AA3,60); AR3:=(1-(MA(LOW,3))/(MA((HIGH+LOW+(2)*(CLOSE))/(4),20)))*(100)-(50)/(10); AVAR1:=MA(HHV(HIGH,485),17); AVAR2:=MA(HHV(HIGH,222),17); AVAR3:=MA(HHV(HIGH,96),17); AVAR4:=MA(LLV(LOW,485),17); AVAR5:=MA(LLV(LOW,222),17); AVAR6:=MA(LLV(LOW,96),17); AVAR7:=MA(((AVAR4)*(0.96)+(AVAR5)*(0.96)+(AVAR6)*(0.96)+(AVAR1)*(0.558)+(AVAR2)*(0.558)+(AVAR3)*(0.558))/(6),17); AVAR8:=MA(((AVAR4)*(1.25)+(AVAR5)*(1.23)+(AVAR6)*(1.2)+(AVAR1)*(0.55)+(AVAR2)*(0.55)+(AVAR3)*(0.65))/(6),17); AVAR9:=MA(((AVAR4)*(1.3)+(AVAR5)*(1.3)+(AVAR6)*(1.3)+(AVAR1)*(0.68)+(AVAR2)*(0.68)+(AVAR3)*(0.68))/(6),17); AVARA:=MA((((AVAR7)*(3)+(AVAR8)*(2)+AVAR9)/(6))*(1.738),17); AVARB:=IF((DATE<=331231),AVARA,(AVARA)*(DAY)); AVARC:=LOW; AVARD:=REF(LOW,1); AVARE:=((SMA(ABS(AVARC-AVARD),3,1))/(SMA(MAX(AVARC-AVARD,0),3,1)))*(100); AVARF:=MA(IF(((CLOSE)*(1.35)<=AVARB),(AVARE)*(10),(AVARE)/(10)),3); AVAR10:=LLV(LOW,30); AVAR11:=HHV(AVARF,30); AVAR12:=1341231; 买进:=(LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2))); 捡钱了未来:IF(买进,0,1),COLORMAGENTA,LINETHICK2; 抢钱了:Z2 AND Z3,LINETHICK2,COLORYELLOW; 大底:=FILTER(AA3>10 ,1); 找钱了:大底>0 AND C<O,COLORWHITE,NODRAW; 印钞机:IF((AR3>0) AND (DATE>901231) AND (DATE<331231), (((AR3)*(3000))*(REF((HIGH+LOW+(2)*(CLOSE))/(4),3)))/(CLOSE),0),COLORRED,NODRAW; 点钞机:IF((DATE<=AVAR12),MA(IF((LOW<=AVAR10),(AVARF+(AVAR11)*(2))/(2),0),3),100000000),COLORYELLOW,NODRAW; STICKLINE1(大底>0 AND C<O,0,1,1,0),COLORYELLOW; STICKLINE1(印钞机>0,0,0.1,3,0),COLORRED; STICKLINE1(点钞机>0,0.1,0.2,3,0),COLORCYAN;

 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 511411198  点击这里给我发消息进行 有偿 编写!不贵!点击查看价格!


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容