Skip to content
Prev 13749 / 15274 Next

stoptrailing mechanics question in MACD example - Quantstrat

On Wed, Feb 17, 2016 at 2:22 AM, Derek Wong <treydog999 at gmail.com> wrote:
For OHLC data, the sell stoplimit order price will be based on the
high price, but the order evaluation is based on the close price.
That means the stoplimit will only be moved if the close is >= order
price + threshold.  And when it is moved, the new order price will be
high - threshold.

For BBO data, a sell stoplimit order price *and* evaluation would be
based on the offer price.

I don't recall at the moment why they're different.  Perhaps someone
else will remember.