Prediction Date |
Algo |
Symbol |
Expected Gain |
Portfolio Value |
';
while ($row = pg_fetch_row($stmt)) {
$prediction_date=$row[0];
$prediction_date=date('Y-m-d',strtotime($prediction_date));
$algo=$row[1];
$symbol =$row[2];
$expected_gain =(double)$row[3];
$profit =(double)$row[4];
array_push($prediction_date_arr, $prediction_date);
array_push($profit_arr, $profit);
$profit = number_format(((double)$row[4]),2);
echo '
'.$prediction_date.' |
'.$algo.' |
'.$symbol.' |
'.$expected_gain.' |
'.$profit.' |
';
}
echo '
';
pg_free_result($stmt);
pg_close($conn);
?>