<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # 11.1 VWAP · Value-Weighted Average Price (VWAP) > 來源:https://uqer.io/community/share/55462234f9f06c1c3d688033 You can find it in API doc ```py start = '2011-01-01' # 回測起始時間 end = '2015-01-01' # 回測結束時間 benchmark = 'SH50' # 策略參考標準 universe = set_universe('SH50') capital_base = 100000 # 起始資金 longest_history = 40 # handle_data 函數中可以使用的歷史數據最長窗口長度 refresh_rate = 1 # 調倉頻率,即每 refresh_rate 個交易日執行一次 handle_data() 函數 threshold = 0.03 def initialize(account): # 初始化虛擬賬戶狀態 pass def handle_data(account): # 每個交易日的買入賣出指令 for s in account.universe: try: inter = 20 hist = account.get_symbol_history(s, inter) except: continue vwampvalue = sum(hist['turnoverValue'])/sum(hist['turnoverVol']) if(hist['lowPrice'][-1] < vwampvalue*(1 - threshold)) and (s not in account.valid_secpos): order(s,100) if(hist['lowPrice'][-1] > vwampvalue) and (s in account.valid_secpos): order_to(s,0) ``` ![](https://box.kancloud.cn/2016-07-30_579cbdb56099e.jpg) easy strategy.. bad results.... It's very difficult to get a good alpha......
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看