setsysparam(pn_stock(),'IF01');
setsysparam(pn_cycle(),cy_day());
Endt:=inttodate(20230104);
Stype:=stocktype(DefaultStockID());
closePrice:=PortfolioBackTesting_Quantity_GetClose(Endt,Stype,0);
settleprice:=PortfolioBackTesting_Quantity_GetClose(Endt,Stype,1);
return array(
'收盘价':closePrice,
'结算价':settleprice
);
//结果:array("收盘价":3898.0,"结算价":3895.0);