Description Usage Arguments Details Value See Also Examples
calculate closed profit. require setting closed=TRUE in HFTsimulator.
1 | closedprofit(instrumentid)
|
instrumentid |
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
HFTsimulator holdingsprofit
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.