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

请老师修改一下模型吧 [文华财经]

  • 咨询内容:  TYA:=((((((((((LOW + HIGH) + CLOSE) + REF(CLOSE,1)) + REF(LOW,1)) + REF(HIGH,1)) + REF(CLOSE,2)) + REF(LOW,2)) + REF(HIGH,2)) / 9));{1}
    HDA:=(((((HHV(TYA,(17 * 2)) + REF(HHV(TYA,(17 * 2)),1)) + REF(HHV(TYA,(17 * 2)),2)) + REF(HHV(TYA,(17 * 2)),3)) + REF(HHV(TYA,(17 * 2)),4)) / 5);{2}
    LDA:=(((((LLV(TYA,(17 * 2)) + REF(LLV(TYA,(17 * 2)),1)) + REF(LLV(TYA,(17 * 2)),2)) + REF(LLV(TYA,(17 * 2)),3)) + REF(LLV(TYA,(17 * 2)),4)) / 5);{3}
    A1:=(REF(HDA,1) = (HHV(TYA,((2 * 21) + 0))));{4}
    A2:=(REF(LDA,1) = (LLV(TYA,((2 * 21) + 0))));{5}
    A:=(REF(HDA,BARSLAST(A1)));{6}
    B:=(REF(LDA,BARSLAST(A2)));{7}
    T1:=((BARSLAST(A1) < BARSLAST(A2)) and (NOT(A1)));{8}
    T2:=((BARSLAST(A1) > BARSLAST(A2))and(NOT(A2)));{9}
    BF:=IF(T1,A,A);{10}
    HH:=MA(BF,1);{11}
    BG:=IF(T2,B,B);{12}
    LL:=MA(BG,1);HH1:=(BARSLAST((CLOSE > (REF(HH,1) * 1.003))));{13}
    LL1:=(BARSLAST((CLOSE < (REF(LL,1) * 0.997))));{14}
    PARTLINE((HH1 < LL1),LL),COLORRED;{15}
    PARTLINE((HH1 > LL1),HH),COLORGREEN;{16}
    DRAWTEXT(CROSS(HH1,LL1),HH,'空头');{17}
    DRAWTEXT(CROSS(LL1,HH1),LL,'多头');{18}
    STICKLINE((HH1 < LL1),OPEN,CLOSE,7,0),COLORRED;{19}
    STICKLINE((HH1 < LL1),high,CLOSE,1,0),COLORRED;{20}
    STICKLINE((HH1 < LL1),OPEN,low,1,0),COLORRED;{21}
    STICKLINE((HH1 > LL1),OPEN,CLOSE,7,0),COLORGREEN;{22}
    STICKLINE((HH1 > LL1),high,CLOSE,1,0),COLORGREEN;{22}
    STICKLINE((HH1 > LL1),OPEN,low,1,0),COLORGREEN;这个模型在8.2不能测试 麻烦修改一下吧

     

  • 文华技术人员: 参考: TYA:=((((((((((LOW + HIGH) + CLOSE) + REF(CLOSE,1)) + REF(LOW,1)) + REF(HIGH,1)) + REF(CLOSE,2)) + REF(LOW,2)) + REF(HIGH,2)) / 9));
    HDA:=(((((HHV(TYA,(17 * 2)) + REF(HHV(TYA,(17 * 2)),1)) + REF(HHV(TYA,(17 * 2)),2)) + REF(HHV(TYA,(17 * 2)),3)) + REF(HHV(TYA,(17 * 2)),4)) / 5);
    LDA:=(((((LLV(TYA,(17 * 2)) + REF(LLV(TYA,(17 * 2)),1)) + REF(LLV(TYA,(17 * 2)),2)) + REF(LLV(TYA,(17 * 2)),3)) + REF(LLV(TYA,(17 * 2)),4)) / 5);
    A1:=(REF(HDA,1) = (HHV(TYA,((2 * 21) + 0))));
    A2:=(REF(LDA,1) = (LLV(TYA,((2 * 21) + 0))));
    A:=(REF(HDA,BARSLAST(A1)));
    B:=(REF(LDA,BARSLAST(A2)));
    T1:=((BARSLAST(A1) < BARSLAST(A2)) && (NOT(A1)));
    T2:=((BARSLAST(A1) > BARSLAST(A2)) && (NOT(A2)));
    BF:=IF(T1,A,A);
    HH:=MA(BF,1);
    BG:=IF(T2,B,B);
    LL:=MA(BG,1);HH1:=(BARSLAST((CLOSE > (REF(HH,1) * 1.003))));
    LL1:=(BARSLAST((CLOSE < (REF(LL,1) * 0.997))));
    PARTLINE1((HH1 < LL1),LL),COLORRED;
    PARTLINE1((HH1 > LL1),HH),COLORGREEN;
    DRAWTEXT(CROSS(HH1,LL1),HH,'空头');
    DRAWTEXT(CROSS(LL1,HH1),LL,'多头');
    STICKLINE((HH1 < LL1),OPEN,CLOSE,7,0),COLORRED;
    STICKLINE((HH1 < LL1),HIGH,CLOSE,1,0),COLORRED;
    STICKLINE((HH1 < LL1),OPEN,LOW,1,0),COLORRED;
    STICKLINE((HH1 > LL1),OPEN,CLOSE,7,0),COLORGREEN;
    STICKLINE((HH1 > LL1),HIGH,CLOSE,1,0),COLORGREEN;
    STICKLINE((HH1 > LL1),OPEN,LOW,1,0),COLORGREEN;

     

  • 文华客服:  不能测试盈亏 在修改一下吧  红色开多 绿色开空 

     

  • 网友回复:  参考: TYA:=((((((((((LOW + HIGH) + CLOSE) + REF(CLOSE,1)) + REF(LOW,1)) + REF(HIGH,1)) + REF(CLOSE,2)) + REF(LOW,2)) + REF(HIGH,2)) / 9));
    HDA:=(((((HHV(TYA,(17 * 2)) + REF(HHV(TYA,(17 * 2)),1)) + REF(HHV(TYA,(17 * 2)),2)) + REF(HHV(TYA,(17 * 2)),3)) + REF(HHV(TYA,(17 * 2)),4)) / 5);
    LDA:=(((((LLV(TYA,(17 * 2)) + REF(LLV(TYA,(17 * 2)),1)) + REF(LLV(TYA,(17 * 2)),2)) + REF(LLV(TYA,(17 * 2)),3)) + REF(LLV(TYA,(17 * 2)),4)) / 5);
    A1:=(REF(HDA,1) = (HHV(TYA,((2 * 21) + 0))));
    A2:=(REF(LDA,1) = (LLV(TYA,((2 * 21) + 0))));
    A:=(REF(HDA,BARSLAST(A1)));
    B:=(REF(LDA,BARSLAST(A2)));
    T1:=((BARSLAST(A1) < BARSLAST(A2)) && (NOT(A1)));
    T2:=((BARSLAST(A1) > BARSLAST(A2)) && (NOT(A2)));
    BF:=IF(T1,A,A);
    HH:=MA(BF,1);
    BG:=IF(T2,B,B);
    LL:=MA(BG,1);HH1:=(BARSLAST((CLOSE > (REF(HH,1) * 1.003))));
    LL1:=(BARSLAST((CLOSE < (REF(LL,1) * 0.997))));
    PARTLINE1((HH1 < LL1),LL),COLORRED;
    PARTLINE1((HH1 > LL1),HH),COLORGREEN;
    DRAWTEXT(CROSS(HH1,LL1),HH,'空头');
    DRAWTEXT(CROSS(LL1,HH1),LL,'多头');
    STICKLINE((HH1 < LL1),OPEN,CLOSE,7,0),COLORRED;
    STICKLINE((HH1 < LL1),HIGH,CLOSE,1,0),COLORRED;
    STICKLINE((HH1 < LL1),OPEN,LOW,1,0),COLORRED;
    STICKLINE((HH1 > LL1),OPEN,CLOSE,7,0),COLORGREEN;
    STICKLINE((HH1 > LL1),HIGH,CLOSE,1,0),COLORGREEN;
    STICKLINE((HH1 > LL1),OPEN,LOW,1,0),COLORGREEN;CROSS(HH1,LL1),SPK;CROSS(LL1,HH1),BPK;AUTOFILTER;

     

  • 网友回复:  LL:=LLV(LOW,(N + M));HH:=HHV(HIGH,(N + M));SR:=(2 * HH - LL);SS:=(2 * LL - HH);DD:=(SR - SS);DM:=(DD / 2);DKKPX:=(DM + SS);SDXT:=DKKPX;LL1:=LLV(LOW,(N1 + M1));HH1:=HHV(HIGH,(N1 + M1));SR1:=((2 * HH1) - LL1);SS1:=((2 * LL1) - HH1);DD1:=(SR1 - SS1);DM1:=(DD1 / 2);SDXT1:=(DM1 + SS1);AY:=SDXT1;AA:=SDXT;YY:=(((HIGH + LOW) + CLOSE) / 3);A0:=((HIGH + LOW) / 2);A1:=SMA(A0,13,1);A2:=HHV(HIGH,24);A3:=LLV(LOW,24);STICKLINE(YY < REF(AA,1),OPEN,CLOSE,7 ,0), COLORCYAN;STICKLINE(YY < REF(AA,1),HIGH,CLOSE,1 ,0), COLORCYAN;STICKLINE(YY < REF(AA,1),OPEN,LOW,1 ,0), COLORCYAN;STICKLINE(YY < REF(AA,1) AND A2 = REF(A2,0),OPEN,CLOSE, 7,0), COLORCYAN;STICKLINE(YY < REF(AA,1) AND A2 = REF(A2,0),OPEN,LOW,1 ,0), COLORCYAN;STICKLINE(YY < REF(AA,1) AND A2 = REF(A2,0),OPEN,LOW,1 ,0), COLORCYAN;STICKLINE(YY > REF(AA,1) AND A3 > REF(A3,0),OPEN,CLOSE, 7,0), COLORRED;STICKLINE(YY > REF(AA,1) AND A3 > REF(A3,0),OPEN,CLOSE, 1,0), COLORRED;STICKLINE(YY > REF(AA,1) AND A3 > REF(A3,0),OPEN,CLOSE, 1,0), COLORRED;STICKLINE(YY > REF(AA,1) AND A3 = REF(A3,0),OPEN,CLOSE, 7,0), COLORRED;STICKLINE(YY > REF(AA,1) AND A3 = REF(A3,0),HIGH,CLOSE, 1,0), COLORRED;STICKLINE(YY > REF(AA,1) AND A3 = REF(A3,0),OPEN,LOW, 1,0), COLORRED;STICKLINE(YY > AA AND YY < AY,OPEN,CLOSE,7 ,0), COLORYELLOW;STICKLINE(YY > AA AND YY < AY,HIGH,CLOSE,1 ,0), COLORYELLOW;STICKLINE(YY > AA AND YY < AY,OPEN,LOW,1 ,0), COLORYELLOW;STICKLINE(YY < AA AND YY > AY,OPEN,CLOSE,7 ,0), COLORYELLOW;STICKLINE(YY < AA AND YY > AY,HIGH,CLOSE,1 ,0), COLORYELLOW;STICKLINE(YY < AA AND YY > AY,OPEN,LOW,1,0), COLORYELLOW; 

  • 网友回复:红色开多 绿色开空  黄色空仓观望

 

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

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


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

相关文章

    没有相关内容