Giter Site home page Giter Site logo

Comments (2)

josephchenhk avatar josephchenhk commented on September 16, 2024

你好,应该demo的例子就包括了action的记录。action['no']是记录同一个标的的开仓次数,比如你第一次开仓,可以标记1,然后你再加仓的时候,就标记2,如此类推。

from qtrader.

StephenLee2016 avatar StephenLee2016 commented on September 16, 2024

你好,应该demo的例子就包括了action的记录。action['no']是记录同一个标的的开仓次数,比如你第一次开仓,可以标记1,然后你再加仓的时候,就标记2,如此类推。

多谢回复,还有几个问题需要帮忙解答一下
1、demo例子里action的记录貌似没看到,跑了之后存好的csv文件action字段是空,我自己添加了update_action调用,目前可以记录了。然后action[‘no’]我是用get_all_orders方法取的记录自己解析之后算的,不知道是否有更便捷的取法?
2、 下面几行代码中的close_trd["close"] 中的“close ”是代表什么意义?
close_trd_price = close_trd["close"]
open_trd_price = open_trd["close"]
# make a copy, instead of a reference!

from qtrader.

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.