-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprint.txt
30 lines (30 loc) · 2.36 KB
/
print.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
_allocated_fund = fund_standardization.allocated_funds(self._genes, _allocated_fund_amount, NUM_OF_STOCKS)
print("_allocated_fund", _allocated_fund)
_remainder_of_pf = fund_standardization.remainder_of_pfs(INITIAL_FUNDS, _allocated_fund_amount, _num_of_selected_stocks)
print("_remainder_of_pf", _remainder_of_pf)
# _day = fund_standardization.days(KOSPI_TICKER, STARTDATE, ENDDATE)
# print("_day", _day)
# _stock_price = fund_standardization.stock_prices(self._genes, _day, KOSPI_TICKER, STARTDATE, ENDDATE)
# print("_stock_price", _stock_price)
_day = self._days
_stock_price = self.stock_prices
_share = fund_standardization.shares(self._genes, NUM_OF_STOCKS, _allocated_fund, _stock_price, FEE_RATE)
print("_share", _share)
_handling_fee = fund_standardization.handling_fees(self._genes, _day, NUM_OF_STOCKS, _share, _stock_price, FEE_RATE)
print("_handling_fee", _handling_fee)
_remainder_of_stock = fund_standardization.remainder_of_stocks(self._genes, NUM_OF_STOCKS, _allocated_fund, _stock_price, _share, _handling_fee)
print("_remainder_of_stock", _remainder_of_stock)
_return = fund_standardization.returns(self._genes, _day, NUM_OF_STOCKS, _share, _stock_price)
print("_return", _return)
_securities_transaction_tax = fund_standardization.securities_transaction_taxes(self._genes, _day, NUM_OF_STOCKS, _share, _stock_price, TAX_RATE)
print("_securities_transaction_tax", _securities_transaction_tax)
_funds_standardization = fund_standardization.funds_standardizations(self._genes, KOSPI_TICKER, NUM_OF_STOCKS, _day, _allocated_fund, _handling_fee, _return, _securities_transaction_tax, _remainder_of_stock)
print("_funds_standardization", _funds_standardization)
_pf_funds_standardization = fund_standardization.pf_funds_standardizations(self._genes, _day, NUM_OF_STOCKS, _funds_standardization, _remainder_of_pf)
print("_pf_funds_standardization", _pf_funds_standardization)
_roi = fund_standardization.rois(_pf_funds_standardization, INITIAL_FUNDS, _day)
print("_roi", _roi)
_risk = fund_standardization.risks(_day, _pf_funds_standardization)
print("_risk", _risk)
_fitness = fund_standardization.fitnesses(_roi, _risk, RISK_FREE_RATE)
print("_fitness: ", _fitness)