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

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

onbarclose應用實例好像不執行 [開拓者 TB]

  • 咨詢內容:

    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線即將結束2分鐘。

    ?

    ?來源:CXH99.COM

  • TBQuant技術回復:

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

    ?

  • TB資深用戶 回復:

    onbarclose里不寫交易業務的代碼?寫個settrigger是什么意思?

    建議再好好看看開發手冊或者學習視頻里?關于時間驅動的視頻及案例課

 

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

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

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

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


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

相關文章

    沒有相關內容
主站蜘蛛池模板: vk挠痒痒| 天天干天天射天天爽 | 两性午夜欧美高清做性 | 精品一区中文字幕 | 欧美日韩一区二区三区在线观看 | 国外性xxxnxxxf视频 | 亚洲欧美成人综合 | 欧美午夜激情影院 | 免费中文字幕 | 星光影院网高清在线观看 | 欧美视频一区二区三区精品 | 无遮挡一级毛片呦女视频 | 午夜一区二区免费视频 | 国产精品久久久尹人香蕉 | h片在线播放 | 亚洲综合第一欧美日韩中文 | 国产精品亚洲第五区在线 | 久热久草| 美女网站色黄 | 欧美色图第二页 | 日本jizz强视频69视频 | 亚洲高清毛片 | 免费一区二区三区视频狠狠 | 国产精品久久二区三区色裕 | 老司机午夜在线视频 | 免费国产成人高清在线观看不卡 | 日韩视频区 | 日韩成年人视频 | 欧美日韩亚洲综合 | 黄色肉肉视频 | 亚洲va老文色欧美黄大片人人 | a黄色一级片 | 欧美日韩 国产区 在线观看 | 最近的2019中文字幕4 | 日韩欧美中文字幕在线视频 | 成人免费看片 | 青青草综合在线 | 亚洲狠狠97婷婷综合久久久久 | 黄色中文字幕在线观看 | 97干视频| 日韩欧美亚洲国产高清在线 |