import alphien
tkr = alphien.data.getTickersSP500().ticker
port = alphien.portfolio.Portfolio(tkr)
port.payout(myPayout)
port.evaluate(zoom=“2007::2016”)
port.backtest()
Whe I run the above code, I get warning saying:
Generating weights for myPayoutjiweng201002
Values for CBSS.US Equity, EP.US Equity, APCC.US Equity, MI.US Equity, HAR.US Equity, UVN.US Equity, PTV.US Equity, RX.US Equity, PGL.US Equity, EOP.US Equity, TRB.US Equity, SLR.US Equity, CEG.US Equity, BNI.US Equity, BOL.US Equity, MFE.US Equity, AYE.US Equity, LEH.US Equity, BDK.US Equity, TXU.US Equity, BJS.US Equity, NOVL.US Equity, JAVA.US Equity, GENZ.US Equity, MEL.US Equity, MHS.US Equity, WWY.US Equity, BRL.US Equity, TIN.US Equity, KSE.US Equity, MEDI.US Equity, AW.US Equity, TEK.US Equity, CEPH.US Equity, BMET.US Equity, ACS.US Equity, SGP.US Equity, SBL.US Equity, ROH.US Equity, CBE.US Equity, CMVT.US Equity, ABK.US Equity, GR.US Equity, DJ.US Equity, MER.US Equity, SOV.US Equity, MEE.US Equity, PBG.US Equity, XTO.US Equity, CTX.US Equity, HPC.US Equity, NCC.US Equity, KG.US Equity, WYE.US Equity, CMX.US Equity, CFC.US Equity, ASN.US Equity at requested dates have been coerced to NaN.
Then the “port.pricesMatrix” only gives prices from 02-05-2013 to 31-12-2016.
Why the values are coerced to NaN?