Navigation

    Quantiacs Community

    • Register
    • Login
    • Search
    • Categories
    • News
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    How to use complex indicator in fundamental data

    Support
    2
    7
    300
    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.
    • illustrious.felice
      illustrious.felice last edited by

      Hello, I need help with using complex indicators in fundamental data

      This is my code for standard indicator

      import xarray as xr
      import qnt.data as qndata
      import qnt.output as qnout
      import qnt.stats as qnstats
      import qnt.graph as qngraph
      import qnt.data.secgov_fundamental as fundamental
      import numpy as np
      import pandas as pd
      import qnt.xr_talib as xr_talib
      import qnt.ta as qnta

      market_data = qndata.stocks.load_ndx_data(min_date="2005-01-01")
      indicators_data = fundamental.load_indicators_for(market_data, indicator_names=['total_revenue'])

      total_revenue = indicators_data.sel(field="total_revenue")

      Suppose now I want to use market cap indicator in complex indicator, how do I do it?

      I use the following code but I can't get the indicator

      complex_data = fundamental.load_indicators_for(market_data, fundamental.get_complex_indicator_names())

      cap = complex_data.sel(field="market_capitalization")

      Ảnh chụp màn hình 2023-12-30 180726.png

      Please help me. Thank you very much

      illustrious.felice 1 Reply Last reply Reply Quote 0
      • illustrious.felice
        illustrious.felice @illustrious.felice last edited by

        @illustrious-felice Please help me

        support 1 Reply Last reply Reply Quote 0
        • support
          support @illustrious.felice last edited by

          @illustrious-felice Hello, did you check already the documentation at:

          https://quantiacs.com/documentation/en/data/fundamental.html

          ?

          Kind regards

          illustrious.felice 2 Replies Last reply Reply Quote 1
          • illustrious.felice
            illustrious.felice @support last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • illustrious.felice
              illustrious.felice @support last edited by

              @support Hi, I have read the documentation and realized that I can only use the indicators listed in the following table
              Screenshot 2024-01-03 194425.png

              However, I want to use more indicators included in the complex indicator. Currently, I can only display the list of indicators but cannot use them
              Screenshot 2024-01-03 195240.png
              I tried using this code to get data but it didn't work
              Screenshot 2024-01-03 195338.png
              I hope you can show me how to get the complex indicator, for example: market_capitalization, p_divide_by_e, p_divide_by_bv, p_divide_by_s,...

              support 1 Reply Last reply Reply Quote 0
              • support
                support @illustrious.felice last edited by

                @illustrious-felice Hello, please use only the list of indicators shown at the documentation page https://quantiacs.com/documentation/en/data/fundamental.html. The list can be obtained by function get_all_indicator_names() from qnt.data.secgov_fundamental and the list contains 6 "complex indicators" - ['ebitda_use_income_before_taxes', 'ebitda_use_operating_income', 'ebitda_simple', 'liabilities_divide_by_ebitda', 'net_debt_divide_by_ebitda', 'roe'].
                Other indicators from get_complex_indicator_names() function are not available at the moment.
                Best regards

                illustrious.felice 1 Reply Last reply Reply Quote 1
                • illustrious.felice
                  illustrious.felice @support last edited by

                  @support Ohh, I understand. Thank you for your support.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Powered by NodeBB | Contributors
                  • Documentation
                  • About
                  • Career
                  • My account
                  • Privacy policy
                  • Terms and Conditions
                  • Cookies policy
                  Home
                  Copyright © 2014 - 2021 Quantiacs LLC.
                  Powered by NodeBB | Contributors