Navigation

    Backtrader Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

    Can i get btrun output into pandas dataframe

    General Discussion
    2
    3
    1243
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      Tausif last edited by

      Can i get btrun output into pandas dataframe.
      I am currently getting it into csv file but the output in a csv file is not structured properly.
      I need to display the output on a web page through AJAX and display graphs.
      E.g.
      Cerebro:

      • Datas:
        +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
        • Data0:
          • Name: TATASTEEL
          • Timeframe: Days
          • Compression: 1

      • Strategies:
        +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
        • strategy9999:
          • Params:

          • Indicators:
            .......................................................................
            • BollingerBands:
              • Lines: mid, top, bot
              - Params:
                - period: 20
                - devfactor: 2.0
                - movav: MovingAverageSimple
              

          • Observers:
            .......................................................................
            • Broker:
              • Lines: cash, value
              • Params: None
                .......................................................................
            • BuySell:
              • Lines: buy, sell
              - Params:
                - barplot: True
                - bardist: 0.015
              
            .......................................................................
            • Trades:
              • Lines: pnlplus, pnlminus
              • Params: None

          • Analyzers:
            .......................................................................
            • Value:
              • Begin: 1000000.0
              • End: 1004263.8
                .......................................................................
            • pyfolio:
              - Params:
                - timeframe: 5
                - compression: 1****
      1 Reply Last reply Reply Quote 0
      • B
        backtrader administrators last edited by backtrader

        @Tausif said in Can i get btrun output into pandas dataframe:

        I am currently getting it into csv file but the output in a csv file is not structured properly.

        It's clearly not csv output and it's not meant to be.

        @Tausif said in Can i get btrun output into pandas dataframe:

        I need to display the output on a web page through AJAX and display graphs.

        you'll have to develop your own scripts to properly structure the output.

        1 Reply Last reply Reply Quote 0
        • T
          Tausif last edited by

          ok , Thanks

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Copyright © 2016, 2017, 2018, 2019, 2020, 2021 NodeBB Forums | Contributors