How to use complex indicator in fundamental data
-
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 qntamarket_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")
Please help me. Thank you very much
-
@illustrious-felice Please help me
-
@illustrious-felice Hello, did you check already the documentation at:
https://quantiacs.com/documentation/en/data/fundamental.html
?
Kind regards
-
This post is deleted! -
@support Hi, I have read the documentation and realized that I can only use the indicators listed in the following table
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
I tried using this code to get data but it didn't work
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,... -
@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()
fromqnt.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 fromget_complex_indicator_names()
function are not available at the moment.
Best regards -
@support Ohh, I understand. Thank you for your support.