您現在的位置:程序化交易>> 期貨公式>> 文華財經>> 文華財經知識>>正文內容

[原創]想買wh9實盤但是不知道tb的模型能不能在這邊用 [文華財經]

  • 咨詢內容: ?//------------------------------------------------------------------------// 簡稱: zhaoxin11// 名稱: zhaoxin11// 類別: 公式應用// 類型: 用戶應用// 輸出://------------------------------------------------------------------------


    Params?Numeric AfStep( 0.02);?Numeric AfLimit( 0.2 ) ;?Numeric Length(50); //均線周期?Numeric Tiao(0); //跳數?Numeric Lots(1); //倉量???Numeric lostPoint(100); // 50個點,止損?Vars?Numeric oParCl( 0 );??Numeric oParOp( 0 );?Numeric oPosition( 0 );??Numeric oTransition( 0 );?NumericSeries sar;??Numeric ma;?NumericSeries isDo;?NumericSeries lastOpen;?// NumericSeries sar;?Numeric minpoint;?NumericSeries myenterPrice;?Numeric zhisunPrice;?Begin
    ?ma = AverageFC(Close[1],Length);?ParabolicSAR( AfStep, AfLimit, oParCl, oParOp, oPosition, oTransition ) ;

    ?COMMENTARY("oParCl="+ Text(oParCl));?// COMMENTARY("oParOp"+ Text(oParOp));?// COMMENTARY("oPosition"+ Text(oPosition));?// COMMENTARY("oTransition"+ Text(oTransition));?// COMMENTARY("MarketPosition"+ Text(MarketPosition));??// COMMENTARY("isDo[0]"+ Text(isDo));?// COMMENTARY("isDo[1]"+ Text(isDo[1]));?COMMENTARY("ma="+ Text(ma));?PlotNumeric("oParCl" , oParCl);???minpoint = MinMove*PriceScale;?zhisunPrice = MinMove * PriceScale * lostPoint;??isDo = oParCl - ma - 10 * Tiao;
    ?If(MarketPosition==1 )??{? // If(isDo[0] > 0 && isDo[1] <= 0){? If(oParCl > H){? ?Sell(Lots, (h+l)/2);? ?SellShort(Lots, (h+l)/2);? ?lastOpen = O;? }? // zhisunPrice? else if(close[1] < lastOpen - zhisunPrice) {? ? sell(LOTS, open);? ?}?}Else If(MarketPosition==-1){? If(oParCl < L){? ?BuyToCover(Lots, (h+l)/2);? ?Buy(Lots, (h+l)/2);? ?lastOpen = O;? // zhisunPrice? }else if (close[1] > lastOpen + zhisunPrice)? ? {? ? BuyToCover(LOTS,o);? ??
    ? }?}Else If(MarketPosition==0){? If(oParCl < L){? ?Buy(Lots, O);? ?lastOpen = O;? }Else If(oParCl > H){? ?SellShort(Lots, O);? ?lastOpen = O;? }?}??End

    是否可以輔助翻譯成文華9.謝謝

    ?

    ?來源:程序化99

  • 文華技術人員: ? Params ?Numeric Length(50); //均線周期 ?Numeric Tiao(0); //跳數 ?Numeric Lots(1); //倉量? ? ?Numeric lostPoint(100); // 50個點,止損 ? Vars ?Numeric AfStep; ?Numeric AfLimit ; ?Numeric oParCl( 0 );? ?Numeric oParOp( 0 ); ?Numeric oPosition( 0 );? ?Numeric oTransition( 0 ); ?Numeric ma1; ?NumericSeries isDo; ?NumericSeries lastOpen;? // NumericSeries sar; ?Numeric minpoint; ?NumericSeries myenterPrice; ?Numeric zhisunPrice; ?Numeric H,L,O,C; Begin AfStep=0.02; AfLimit=0.2; ?ma1 = AverageFC(Close[1],Length);
    ?COMMENTARY("oParCl="+ Text(oParCl));COMMENTARY("ma="+ Text(ma1));PlotNumeric("oParCl" , oParCl); ?L=LOW; O=OPEN; C=CLOSE; ?H=HIGH; ?minpoint = MinMove*PriceScale; ?zhisunPrice = MinMove * PriceScale * lostPoint; ? ?isDo = oParCl - ma1 - 10 * Tiao;
    ?If(MarketPosition==1 )? ?{ ? // If(isDo[0] > 0 && isDo[1] <= 0){ ? If(oParCl > H){ ? ?SP(Lots, (h+l)/2); ? ?SPK(Lots, (h+l)/2); ? ?lastOpen = O; ? } ? // zhisunPrice ? else if(close[1] < lastOpen - zhisunPrice) { ? ? SP(LOTS, open); ? ?} ?}Else If(MarketPosition==-1){ ? If(oParCl < L){ ? ?BP(Lots, (h+l)/2); ? ?BPK(Lots, (h+l)/2); ? ?lastOpen = O; ? // zhisunPrice ? }else if (close[1] > lastOpen + zhisunPrice) ? ? { ? ? BP(LOTS,o); ? ??
    ? } ?}Else If(MarketPosition==0){ ? If(oParCl < L){ ? ?BPK(Lots, O); ? ?lastOpen = O; ? }Else If(oParCl > H){ ? ?SPK(Lots, O); ? ?lastOpen = O; ? } ?} ? ?End

 

有思路,想編寫各種指標公式,交易模型,選股公式,還原公式的朋友

可聯系技術人員 QQ: 262069696  點擊在線交流或微信號:cxh99cxh99  進行 有償收費 編寫!

怎么收費,代編流程等詳情請點擊閱讀!

(注:由于人數限制,QQ或微信請選擇方便的一個聯系我們就行,加好友時請簡單備注下您的需求,否則無法通過。謝謝您!)


【字體: 】【打印文章】【查看評論

相關文章

    沒有相關內容
主站蜘蛛池模板: 黄色网址在线免费| 日本va欧美va欧美va精品| 精品视频一区二区三三区四区| 欧美日韩第一区| 99国内精品久久久久久久| 特黄特黄aaaa级毛片免费看| 国产大片91精品免费看3 | 日本漫画之无翼彩漫大全| 免费一级在线观| 青娱乐在线免费观看视频| 国产精品无码无卡无需播放器| 一级毛片成人免费看免费不卡| 日韩精品无码人成视频手机| 亚洲第一区精品观看| 精品欧美一区二区在线观看| 国产成人免费ā片在线观看老同学 | 不卡高清av手机在线观看| 最新国产在线视频| 亚洲精品乱码久久久久久自慰| 精品视频在线观看一区二区 | 久久亚洲精品成人| 欧美性猛交xxxx乱大交丰满| 免费观看黄a一级视频日本| 青娱乐欧美视频| 国产精品人成在线播放新网站| bt自拍另类综合欧美| 成人高清毛片a| 久久人妻AV中文字幕| 欧美videos在线观看| 亚洲第一极品精品无码久久| 精品久久久久久久久久中文字幕| 国产乱子伦一区二区三区| 日韩色图在线观看| 国内精品videofree720| yellow日本动漫高清小说| 抱着cao才爽| 久久天天躁狠狠躁夜夜avai| 欧美一级高清黄图片| 亚洲男人的天堂网站| 男人女人真曰批视频大全免费观看 | 一区二区精品在线观看|