Mariner Backtesting - LIME midpoint limit sell Logic

Check Logic

Accept the order if the limit is greater than 0

Fill Logic

Fill the order at the midpoint of the bid/ask if the last price is less than the midpoint and the midpoint locks or crosses the limit.

midpoint = (ask + bid) / 2.0

 

See the ARCA Midpoint limit sell page for general examples on how midpoint orders are filled.

The number of shares filled is the symbol's bid_size * lot_size or order shares, whichever is smaller. If the number of shares filled doesn't completely fill the order, the remainder of the order is put back into the queue for later fill attempts. This fill takes liquidity.

Cancel Logic

The order can be cancelled at any time