calculate closed profit. require setting closed=TRUE in HFTsimulator.
character, instrument identifier
closed profit is the most recent cash when all holdings are equal to zero. total_profit = holdings_profit + closed_profit.
numeric, closed profit
1 2 3 4 5
## Not run: ## get closed profit of TF1603 closedprofit("TF1603") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.