closeall: closeall

Description Usage Arguments Details Value See Also

View source: R/hftsimulator.r

Description

close all holdings of a specific instrument, if close price is not specified, the holdings will be closed with market orders.

Usage

1
closeall(instrumentid = "qtid", price = NULL)

Arguments

instrumentid

character, specyfing instrument to be closed.

price

numeric, specyfing limit close order's price, if NULL, simulator will close the holdings with market orders.

Details

closeall can only close one instrument at a time

Value

nothing

See Also

chasecloseall


chenhaotian/High-Frequency-Trading-Simulation-System documentation built on April 18, 2018, 9:24 p.m.