Navigation

    Backtrader Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. sat7134
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 2
    • Best 0
    • Groups 0

    sat7134

    @sat7134

    0
    Reputation
    1
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    sat7134 Unfollow Follow

    Latest posts made by sat7134

    • Passing GenericCSVData to Pandas Data Frame

      Hi Everyone

      I have loaded my csv data to the "data" object as shown below

      data = btfeeds.GenericCSVData(
              dataname='E:\\Algorthmic Trading\\Data\\BIOCON\\BIOCON.day.csv',
              # fromdate=dt.datetime(2020, 7, 6),
              # todate=dt.datetime(2022, 7, 6),
              nullvalue=0.0,
              dtformat=('%Y-%m-%d %H:%M:%S+05:30'),
              datetime=0,
              open=1,
              high=2,
              low=3,
              close=4,
              volume=5,
              openinterest=-1)
      

      I am developing an indicator by following one of the articles and in that article for indicator development they are using Pandas Data Frame for all calculations. I am not sure how to convert this "data" object which is of type "GenericCSVData" to Pandas Data Frame

      I tried the below way, but it's not working

      df = pd.DataFrame(data)
      

      It's giving me below error

      ValueError: DataFrame constructor not properly called!
      
      posted in Indicators/Strategies/Analyzers
      S
      sat7134
    • Twiggs Money Flow Indicator

      Hi

      I am planning to use Twiggs Money Flow indicator in my strategy and I am not sure how to code it. If anyone can help me on this that would be great

      I am pasting an image below that contains the formula

      TMF.PNG

      posted in Indicators/Strategies/Analyzers
      S
      sat7134