Órdenes a mercado en la apertura: cómo se ejecuta una señal "end of day" y qué cuesta el slippage
Muchos sistemas de trading, Meridian entre ellos, trabajan "end of day": calculan las señales con los precios de cierre y las ejecutan en la apertura siguiente. Es una forma de operar que no requiere estar frente a la pantalla, pero tiene un costo propio que hay que entender: la diferencia entre el precio que el sistema asumió y el que vos conseguís. Esta guía explica cómo se ejecuta una señal así, paso a paso, y cuánto suele costar esa diferencia.
Qué es una señal "end of day"
El mercado de EE.UU. cierra a las 16:00, hora de Nueva York (17:00 o 18:00 en Argentina, según el horario de verano de allá). Cuando cierra, los precios del día quedan fijos, y un sistema mecánico puede calcular con esos datos qué comprar y qué vender. La señal sale esa tarde o esa noche: "comprar X, vender Y", con cantidades.
Lo importante es que la señal se calcula con el cierre pero no se puede ejecutar al cierre, porque el mercado ya cerró. La primera oportunidad real es la apertura del día siguiente, a las 9:30 de Nueva York (10:30 u 11:30 en Argentina). Entre un momento y el otro pasan más de 17 horas en las que el precio puede moverse: noticias, resultados, lo que haya pasado en Asia y Europa. A eso se lo llama el gap de apertura, y es parte del juego, no un error.
Cómo se ejecuta: la subasta de apertura
La apertura en las bolsas de EE.UU. no es un instante caótico: es una subasta. Desde antes de las 9:30 los brokers acumulan órdenes de compra y de venta, y a las 9:30 la bolsa calcula el precio único que cruza la mayor cantidad posible. Todas las órdenes que participan se ejecutan a ese mismo precio de apertura.
Para participar, el camino más simple es una orden a mercado enviada antes de la apertura. En muchos brokers existe el tipo específico "market on open" (MOO), que asegura que la orden entra en la subasta; en otros alcanza con mandar la orden a mercado la noche anterior o a la mañana temprano. La secuencia práctica es:
- Llega la señal a la tarde o a la noche.
- Cargás las órdenes en tu broker esa noche o antes de las 9:30 de Nueva York.
- A las 9:30 se ejecutan en la subasta, todas al precio de apertura.
- A la tarde siguiente llega la próxima señal, con la posición ya tomada.
Meridian manda la lista de señales a la tarde, con el cierre, para que cada persona la cargue en su propio broker y se ejecute en la apertura siguiente. No opera cuentas de nadie ni custodia dinero; cada uno decide y ejecuta. Esto no es asesoramiento financiero.
Orden a mercado vs. orden límite
Una orden a mercado dice "comprame al precio que haya". Una orden límite dice "comprame solo si el precio es este o mejor". La límite parece más segura, pero para una señal end of day tiene un problema: si el precio abre por arriba de tu límite, la orden no se ejecuta y te perdés la operación. Y las operaciones que se te escapan son, con frecuencia, las que más suben, porque abrieron con fuerza.
Un sistema que fue probado con precios de apertura asume que todas las señales se ejecutan. Si vos ejecutás solo las que abren baratas, estás operando un sistema distinto, y de ese no hay backtest. Por eso la ejecución a mercado en la apertura, aunque cueste algo más, es la que mantiene lo que hacés parecido a lo que fue medido.
Qué es el slippage y de qué se compone
El slippage es la diferencia entre el precio que el sistema asumió para la operación y el precio que efectivamente conseguiste. Tiene tres partes:
- El spread: la distancia entre el mejor precio de compra y el mejor de venta. En una acción grande de EE.UU. son centavos; en una chica o poco operada, puede ser bastante más.
- El impacto de tu orden: cuánto mueve el precio tu propia compra. Con una cuenta de US$10.000 a US$50.000 operando acciones líquidas, es prácticamente cero: tu orden es una gota en la subasta.
- La diferencia entre el precio de referencia y el real: si un backtest asume que compraste al cierre pero vos compraste a la apertura, todo el gap entre uno y otro es "slippage" contra vos o a tu favor. Un backtest honesto de un sistema end of day simula la compra al precio de apertura, no al de cierre. Es una de las primeras cosas que hay que preguntarle a cualquier servicio.
Cuánto cuesta, en plata
Órdenes de magnitud, para acciones y ETFs líquidos de EE.UU. y órdenes chicas: entre unos pocos puntos básicos y diez o quince (un punto básico es 0,01 %). En una posición de US$3.000, 5 puntos básicos son US$1,50; 15 puntos básicos, US$4,50. La comisión, en la mayoría de los brokers internacionales hoy, va de cero a uno o dos dólares por orden. Ida y vuelta: unos pocos dólares por operación, más lo que se pierda en el spread.
No es nada, pero tampoco es cero: un sistema que opera mucho y gana poco por operación puede quedarse sin ventaja solo por este costo. Un sistema que opera pocas veces, con posiciones que duran días o semanas, lo siente mucho menos. Lo que te tiene que importar no es el costo por orden sino la relación entre ese costo y lo que gana el sistema por operación en promedio. Si el servicio no publica ese número o no puede explicarte cómo lo simuló, preguntá. Si no te contesta, desconfiá.
Tres errores comunes
- Ejecutar tarde. Cargar la orden a las 11 de la mañana de Nueva York, "cuando tengo un rato", no es ejecutar en la apertura: es operar otro sistema, con un precio que ya se movió.
- Filtrar señales a ojo. "Esta no me gusta, la salteo". Cada señal que salteás te aleja del sistema medido; después no vas a saber si el resultado es del sistema o de tus salteos.
- Achicar la orden por miedo al gap. El gap está incluido en el backtest si el backtest usa precios de apertura. Achicar la posición a mano es cambiar las reglas sin medir.
Si querés ver cómo se ve una lista de señales real, podés mirar un día de ejemplo.
Market orders at the open: how an "end of day" signal gets executed and what slippage costs
Many trading systems, Meridian among them, work "end of day": they compute the signals with closing prices and execute them at the next open. It is a way of trading that doesn't require sitting in front of a screen, but it has a cost of its own that you need to understand: the difference between the price the system assumed and the one you actually get. This guide explains how such a signal gets executed, step by step, and how much that difference usually costs.
What an "end of day" signal is
The US market closes at 4:00 pm New York time (5:00 or 6:00 pm in Argentina, depending on daylight saving time up there). Once it closes, the day's prices are fixed, and a mechanical system can use that data to compute what to buy and what to sell. The signal goes out that afternoon or evening: "buy X, sell Y", with quantities.
The important part is that the signal is computed with the close but cannot be executed at the close, because the market is already closed. The first real opportunity is the next day's open, at 9:30 am New York time (10:30 or 11:30 am in Argentina). More than 17 hours pass between one moment and the other, in which the price can move: news, earnings, whatever happened in Asia and Europe. That is called the opening gap, and it is part of the game, not a mistake.
How it gets executed: the opening auction
The open on US exchanges is not a chaotic instant: it is an auction. From before 9:30 brokers accumulate buy and sell orders, and at 9:30 the exchange computes the single price that matches the largest possible quantity. Every order that takes part is filled at that same opening price.
To take part, the simplest path is a market order sent before the open. Many brokers offer the specific order type "market on open" (MOO), which makes sure the order enters the auction; with others it is enough to send the market order the night before or early in the morning. The practical sequence is:
- The signal arrives in the afternoon or evening.
- You enter the orders in your broker that night or before 9:30 am New York time.
- At 9:30 they get filled in the auction, all at the opening price.
- The next afternoon the next signal arrives, with the position already taken.
Meridian sends the list of signals in the afternoon, with the close, so that each person enters it in their own broker and it gets executed at the next open. It doesn't trade anyone's account or hold anyone's money; each person decides and executes. This is not financial advice.
Market order vs. limit order
A market order says "buy me at whatever price there is". A limit order says "buy me only if the price is this or better". The limit order looks safer, but for an end of day signal it has a problem: if the price opens above your limit, the order doesn't fill and you miss the trade. And the trades that get away from you are, frequently, the ones that go up the most, because they opened with strength.
A system that was tested with opening prices assumes that all signals get executed. If you only execute the ones that open cheap, you are trading a different system, and there is no backtest of that one. That is why market execution at the open, even if it costs a bit more, is what keeps what you do close to what was measured.
What slippage is and what it is made of
Slippage is the difference between the price the system assumed for the trade and the price you actually got. It has three parts:
- The spread: the distance between the best bid and the best ask. In a large US stock it is cents; in a small or thinly traded one, it can be quite a bit more.
- The impact of your order: how much your own purchase moves the price. With a US$10,000 to US$50,000 account trading liquid stocks, it is practically zero: your order is a drop in the auction.
- The difference between the reference price and the real one: if a backtest assumes you bought at the close but you bought at the open, the whole gap between the two is "slippage" against you or in your favor. An honest backtest of an end of day system simulates the purchase at the opening price, not the close. It is one of the first things to ask any service.
How much it costs, in money
Orders of magnitude, for liquid US stocks and ETFs and small orders: between a few basis points and ten or fifteen (a basis point is 0.01%). On a US$3,000 position, 5 basis points are US$1.50; 15 basis points, US$4.50. The commission, at most international brokers today, goes from zero to one or two dollars per order. Round trip: a few dollars per trade, plus whatever is lost in the spread.
It is not nothing, but it is not zero either: a system that trades a lot and makes little per trade can lose its edge to this cost alone. A system that trades rarely, with positions that last days or weeks, feels it much less. What should matter to you is not the cost per order but the ratio between that cost and what the system makes per trade on average. If the service doesn't publish that number or can't explain how it simulated it, ask. If it doesn't answer, be suspicious.
Three common mistakes
- Executing late. Entering the order at 11 am New York time, "when I have a moment", is not executing at the open: it is trading a different system, at a price that already moved.
- Filtering signals by eye. "I don't like this one, I'll skip it". Every signal you skip moves you away from the measured system; afterwards you won't know whether the result is the system's or your skips'.
- Shrinking the order out of fear of the gap. The gap is included in the backtest if the backtest uses opening prices. Shrinking the position by hand is changing the rules without measuring.
If you want to see what a real list of signals looks like, you can look at an example day.