GithubHelp home page GithubHelp logo

Comments (3)

snake3342 avatar snake3342 commented on May 28, 2024

well,在实盘的时候,假设我们现在是9:35分,使用的是15分钟bar,你backtest的时候如果在9:35使用本bar的close,你就相当于读取了未来数据——9:45的价格。当然是不应该的吧?

from pyalgotrade-cn.

chopchopjames avatar chopchopjames commented on May 28, 2024

@snake3342 正解

from pyalgotrade-cn.

geraybos avatar geraybos commented on May 28, 2024

事实上我觉得 @fanchangyong 的需求是有意义的,虽然我不知道在目前的框架下如何实现。也就是说基本上只把bar看作在结束时刻的一个以close成交的trade,并且马上下单的话以该close成交,或者以close+slippage成交。否则如果以下一个open成交的话滑点太大。 @chopchopjames @snake3342

from pyalgotrade-cn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.