大伊人青草狠狠久久-大伊香蕉精品视频在线-大伊香蕉精品一区视频在线-大伊香蕉在线精品不卡视频-大伊香蕉在线精品视频75-大伊香蕉在线精品视频人碰人

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

onbarclose應(yīng)用實例好像不執(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; ? ??? ??? ??? ?//通道高點
    ?? ?Series<Numeric> Bottom; ?? ?
    ? ? Series<Numeric> Bottomm;?? ?//通道低點

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

    ? ?OnBar(ArrayRef<Integer> indexs)
    ? ?
    ? ?
    ? ?
    ? ? { ??
    ? ? ?? ?
    ? ?? ?
    ? ? ?? ?
    ? ? ?? ??? ?//平移boll通道計算
    ? ? ? ? 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);
    ? ??? ?}

    一個布林通道實例,限制交易時間在每個小時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  點擊在線交流或微信號:cxh99cxh99  進(jìn)行 有償收費 編寫!

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

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


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

相關(guān)文章

    沒有相關(guān)內(nèi)容
主站蜘蛛池模板: 国内精品免费一区二区观看 | 久久精品国产免费看久久精品 | 欧美亚洲国产视频 | 99久在线 | 久久精品国产99久久6动漫欧 | 国产性一交一乱一伦一色一情 | 四虎影视永久在线观看 | 精品国精品国产自在久国产应用 | 亚洲一本通 | 精品乱人伦一区二区 | 99视频在线观看视频一区 | 国内精品哆啪啪 | 亚洲精品一区二区三区婷婷月 | 一级啪啪片| 久久精品中文字幕首页 | 韩日视频在线观看 | 亚洲精品日本高清中文字幕 | 国产一级爱 | 亚洲精品福利一区二区三区 | 久久综合日韩亚洲精品色 | 经典日韩 | 国产一区二区三区在线免费 | 91伦理片 | 91精品国产91久久久久 | 奇米影音777 | 久久久久久亚洲精品中文字幕 | 国产成人v片视频在线观看 国产成人爱片免费观看视频 | 天天干在线免费视频 | 国产成人综合亚洲亚洲欧美 | 亚洲一区二区在线成人 | 久久66热re国产毛片基地 | 一级a性色生活片毛片 | 欧美综合图 | 天天操天天干天天射 | 久久宗合色 | 精品国产调教最大网站女王 | 日日夜夜免费精品视频 | 成人影院在线观看 | 国产精品一区二区不卡 | 国产精品ady9 | 精品91自产拍在线观看99re |