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

请老师改一个开拓者的策略 我想在文华上用 [文华财经]

  • 咨询内容:   Params Numeric ExitOnCloseMins(15.10); Numeric TradeBeginMins(9.21); Vars NumericSeries myval1; NumericSeries myval2; NumericSeries myval3; Numeric HH1; Numeric HH2; Numeric HH3; Numeric HH4; Numeric HH5; Numeric HH6; Begin if ( (Time== 0.0915) or (Time== 0.0916) ) SetGlobalVar(20, 0); if (CurrentDate>= 20991019){ if (GetGlobalVar(20)!= 1){ if (H> 0){ if (Time>= 0.1455){ PlotString("", "", H * 1.008, Yellow); SetGlobalVar(20, 1); } } } } if ( !(CurrentDate> 20991021)){ //if ( !(BarStatus== 2) or (A_AccountID =="9351019") and (GetUserID() == "bjzq9351019") ){ if (0.0> 2) (0.0== 2); myval1= XAverage(Close[1], 12) - XAverage(Close[1], 26); HH1 = XAverage(myval1, 9); HH2 = myval1 - HH1; HH1 = HighestFC(High[1], 5); myval2= HH1; HH1 = LowestFC(Low[1], 5); myval3= HH1; HH1 = LowestFC(Low[1], 30); HH3 = HighestFC(High[1], 30); HH4 = myval2 + PriceScale * MinMove * 0.0; if (High>= HH4){ if (MarketPosition== 0){ if (HH2> 0){ if (Time> TradeBeginMins / 100){ HH5 = myval2 + PriceScale * MinMove * 0.0; if (Open> HH5) HH6 = Open; else HH6 = HH5; Buy(0.0, HH6); } } } } HH4 = HH1 - PriceScale * MinMove * 0.0; if (Low<= HH4){ if (MarketPosition== 1){ if (HH2< 0){ HH5 = myval3 - PriceScale * MinMove * 0.0; if (Open< HH5) HH6 = Open; else HH6 = HH5; Sell(0.0, HH6); } } } HH4 = myval3 - PriceScale * MinMove * 0.0; if (Low<= HH4){ if (MarketPosition== 0){ if (HH2< 0){ if (Time> TradeBeginMins / 100){ HH5 = myval3 - PriceScale * MinMove * 0.0; if (Open< HH5) HH6 = Open; else HH6 = HH5; SellShort(0.0, HH6); } } } } HH4 = PriceScale * MinMove * 0.0 + HH3; if (High>= HH4){ if (MarketPosition== -1){ if (HH2> 0){ HH5 = myval2 + PriceScale * MinMove * 0.0; if (Open> HH5) HH6 = Open; else HH6 = HH5; Buy(0.0, HH6); } } } if (MarketPosition== 1){ HH5 = myval2 + PriceScale * MinMove * 0.0 - PriceScale * MinMove * 160.0; if (Low<= HH5){ if (Open< HH5) HH6 = Open; else HH6 = HH5; Sell(0.0, HH6); } } if (MarketPosition== -1){ HH5 = myval3 - PriceScale * MinMove * 0.0 + PriceScale * MinMove * 160.0; if (High>= HH5){ if (Open> HH5) HH6 = Open; else HH6 = HH5; BuyToCover(0.0, HH6); } } if (Time>= ExitOnCloseMins / 100){ Sell(0.0, Open); BuyToCover(0.0, Open); } } } END

     

  • 文华技术人员:  

     

  • 文华客服:

    请参考:

     

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

    HH1 :=EMA(MYVAL1,9);

    HH2 :=MYVAL1 - HH1;

    MYH5:=HV(H,5);

    MYL5:=LV(L,5);

    MYH30:=HV(H,30);

    MYL30:=LV(L,30);

    H>=MYH5&&HH2>0&&TIME>0921,BK;

    L<=MYL30&&HH2<0,SP;

    L<MYH5-MINPRICE*160,SP;

    L<=MYL5&&HH2<0&&TIME>0921,SK;

    H>=MYH30&&HH2>0,BP;

    H>MYH30+MINPRICE*160,BP;

    TIME>1510,CLOSEOUT;

    AUTOFILTER;

 

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

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


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

相关文章

    没有相关内容