Can i get btrun output into pandas dataframe



  • 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****

  • administrators

    @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.



  • ok , Thanks


Log in to reply
 

Looks like your connection to Backtrader Community was lost, please wait while we try to reconnect.