Skip to content
Prev 13815 / 15274 Next

stoplimit market price with OHLC

On Tue, Mar 29, 2016 at 9:46 AM, Diego Peroni <diegoperoni at vodafone.it> wrote:
Assuming you haven't specified "prefer", it will be NULL by default,
which means getPrice will be called on mktdata with prefer=NULL.  When
getPrice is called with prefer=NULL, it will search for a column name
containing "price", "trade", or "close" (in that order) and will
return the first it finds.

The transaction will occur on the observation after the order is
entered, since it's not safe to assume that your order will be filled
at the price you observed that triggered the order entry.