人人爽天天爽夜夜爽qc-人人爽天天爽夜夜爽曰-人人天天爱天天做天天摸-人人天天夜夜-色网站在线-色网站在线看

您現(xiàn)在的位置:程序化交易>> 期貨公式>> 交易開拓者(TB)>> 開拓者知識>>正文內(nèi)容

onbarclose應(yīng)用實(shí)例好像不執(zhí)行 [開拓者 TB]

  • 咨詢內(nèi)容:

    Vars

    ? ? Array<numeric>settime([0.095800,0.105800,0.11295800,0.135800,0.145800,0.215800,0.225800]);
    ?? ?
    ?? ?Numeric Lotsold;
    ?? ?Numeric Lotsnew;
    ?? ??? ?
    ? ? Series<Numeric> MA3; ? ? ?? ??? ??? ?//中軌
    ?? ?Series<Numeric> SD ; ? ??? ??? ??? ?//通道距離
    ?? ?Series<Numeric> Top; ? ??? ??? ??? ?//通道高點(diǎn)
    ?? ?Series<Numeric> Bottom; ?? ?
    ? ? Series<Numeric> Bottomm;?? ?//通道低點(diǎn)

    ?? ?
    ?? ?bool cnbpk;
    ?? ?bool cnspk;
    ?? ?bool timecondition;
    ?? ?
    Events

    ? ?OnBar(ArrayRef<Integer> indexs)
    ? ?
    ? ?
    ? ?
    ? ? { ??
    ? ? ?? ?
    ? ?? ?
    ? ? ?? ?
    ? ? ?? ??? ?//平移boll通道計(jì)算
    ? ? ? ? MA3 = Average(C,P3); ? ? ? ?
    ? ? ?? ?SD = StandardDev(c,p3,2)*p;
    ? ? ?? ?Top = ma3 + SD;
    ? ? ?? ?Bottom = ma3 - SD;
    ? ? ?? ?PlotNumeric("MA3",MA3);
    ? ? ?? ?PlotNumeric("Top",top);
    ? ? ?? ?PlotNumeric("Bottom",bottom);
    ? ? ?? ?lotsold=ooo;
    ? ? ?? ?lotsnew=nnn;
    ? ? ?? ?
    ? ? ? ? Bottomm=Highest(bottom,2);
    ? ? ?? ?
    ? ? ?? ?cnbpk=c>top;
    ? ? ?? ?cnspk=c<bottom;
    ? ? ?? ?
    ? ? ?? ?
    ? ? ?? ?
    ? ? ?? ? timecondition=(time==0.09 and currenttime>time+0.0210) or (time==0.12 and currenttime>time+0.0240) Or (time==0.21 and currenttime>time+0.0140);
    ? ? //------------------------------------------------------------?? ?
    ? ? ?? ?If(CNbpk==true )//分開處理,首次建倉
    ? ? ?? ?{
    ? ? ?? ??? ?
    ? ? ?? ??? ?if (MarketPosition==0) ?
    ? ? ?? ??? ?{
    ? ? ?? ? ?? ?Buy(lotsnew,c)
    ? ? ?? ??? ?;
    ? ? ?? ??? ?if (timecondition==True ) Alert("空空")
    ? ? ?? ??? ?;
    ? ? ?? ??? ?}
    ? ? ?? ??? ?
    ? ? ?? ?if (marketposition==-1)?
    ? ??
    ? ? ?? ? ?{
    ? ? ? ? ??? ?BuyToCover(lotsold,c) and Buy(lotsnew,c)?
    ? ? ?? ??? ?;
    ? ? ?? ? ? if (timecondition==True ) Alert("空空")
    ? ? ?? ??? ?;
    ? ? ?? ? ? }
    ? ? ?? ?
    ? ? ?? ? }
    ? ? ?? ? ??
    ? ? ?//---------------------------------------------------------------------------------------
    ? ? ?If ?( CNspk==true )//and CurrentTime>0.1045
    ? ? ?? ?{
    ? ? ?? ?
    ? ? ? ? ?? ?if (MarketPosition==0?? ? ? ?) ??
    ? ? ?? ??? ?{
    ? ? ?? ? ??? ?SellShort(Lotsnew,c)
    ? ? ?? ??? ?;
    ? ? ?? ??? ?if (timecondition==True ) Alert("空空")
    ? ? ? ? ? ?? ?;
    ? ? ?? ??? ?}
    ? ? ?? ?if (marketposition==1
    ? ? ?? ? ? ?) ?
    ? ? ?? ??? ?{
    ? ? ?? ??? ?sell(lotsold,c) and SellShort(Lotsnew,c)
    ? ? ?? ??? ?;
    ? ? ?? ??? ?if (timecondition==True ) Alert("空空")
    ? ? ?? ?;
    ? ? ?? ?}
    ? ? ?? ?
    ? ? ?? ?} ? ?
    ? ? }
    ? ??
    ? ?OnBarClose(ArrayRef<Integer> indexs)
    ? ?
    ? ?{
    ? ??? ?SetTriggerBarClose(settime);
    ? ??? ?}

    一個布林通道實(shí)例,限制交易時間在每個小時k線即將結(jié)束2分鐘。

    ?

    ?來源:CXH99.COM

  • TBQuant技術(shù)回復(fù):

    開發(fā)手冊就是沒有啊,具體的視頻及案例課的鏈接可以給個嗎?

    ?

  • TB資深用戶 回復(fù):

    onbarclose里不寫交易業(yè)務(wù)的代碼?寫個settrigger是什么意思?

    建議再好好看看開發(fā)手冊或者學(xué)習(xí)視頻里?關(guān)于時間驅(qū)動的視頻及案例課

 

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

可聯(lián)系技術(shù)人員 QQ: 262069696  點(diǎn)擊在線交流或微信號:cxh99cxh99  進(jìn)行 有償收費(fèi) 編寫!

怎么收費(fèi),代編流程等詳情請點(diǎn)擊閱讀!

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


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

相關(guān)文章

    沒有相關(guān)內(nèi)容
主站蜘蛛池模板: 在线亚洲欧洲国产综合444 | 日本三级在线观看免费 | 国产精品免费看久久久久 | 黑人操日本人视频 | 亚洲视频中文字幕 | 福利体验区120秒免费观看 | 999久久久免费精品国产牛牛 | 激情五月在线 | 男女爽爽无遮拦午夜视频 | 亚洲一页| 美女网站视频黄 | 日韩欧美在线第一页 | 成人免费视频网 | 亚洲免费高清 | 1024手机在线观看 | 婷婷亚洲综合五月天在线 | 狠狠干狠狠色 | 看片网站免费 | 免费观看成人www精品视频在线 | 亚洲欧美日韩久久一区 | 精品日韩在线 | 免费一级毛片在线视频观看 | 人人鲁免费播放视频人人香蕉 | 日韩网| 中文字幕第九页 | 欧美精品成人一区二区视频一 | 被男人吃奶很爽的毛片两男一女 | 午夜伦理在线观看 | 亚洲图欧美 | 国产高清第一页 | 午夜琪琪 | 一级黄色录像免费看 | 久久人人澡人人爽人人爱 | 午夜视频a| 日韩在线伦理片免费观看 | 久久久久成人精品免费播放动漫 | 国产精品xxxxbbbb18 | 精品久久久久国产免费 | 在线观看片成人免费视频 | 丁香婷婷亚洲六月综合色 | 国产伦精品一区二区三区无广告 |