Marking the close is illegal. The SEC's definition of "marking the close" is "attempting to influence the closing price of a stock by executing purchase or sale orders at or near the close of the market."