News and event protection
Block trading during set times, hold to your hours, and flatten open positions before scheduled events.
Some moments carry more risk than others. A scheduled report, a market open, or a set window where you would rather sit out. Lune gives you three tools to guard these moments. Each one applies to your trading through the same risk checks, so it covers manual, automated, and copied entries alike.
These tools protect your account. They do not tell you when to trade. You decide the windows and events that matter to you.
Set your trading hours#
Trading hours let you allow entries only inside a set window. You give a start time, an end time, a time zone, and the days of the week the window is active.
Outside that window, Lune blocks new entries. Your open positions stay as they are unless another rule acts on them.
The window can cross midnight. A window like 18
to 09 stays active overnight into the next morning. Pick the time zone that matches how you think about the session, since the check reads the clock in that zone.Use trading hours to keep a strategy inside the session you tested it on. Entries outside your hours stop on their own.
Add blackout windows#
A blackout is a window where Lune blocks new entries. Use it to sit out a report, a rollover, or any period you want to skip. You can add as many as you need, in two shapes.
RecurringRepeats weeklyOptionalSet a day of the week and a start and end time. The window blocks entries every week on that day. Leave the times empty to block the whole day. A window that crosses midnight is supported.
One-timeSingle date rangeOptionalSet a start date and time and an end date and time. The window blocks entries once, across that exact range, then never again.
While a blackout is active, Lune blocks new entries and names the window so you know which one stopped the trade. As with trading hours, blackouts guard entries. They do not close what you already hold.
Flatten before an event#
Blocking new entries keeps you out of a window. It does not close a position you opened earlier. Automatic flatten fills that gap. It closes your open positions before a scheduled event starts, so you go into the event flat.
Turn it on and set a lead time in minutes. Lune closes your open positions that many minutes before the event begins.
Enable it in your risk settings and set the lead time. A short lead like five minutes is a safe start. The lead time can run from one minute up to two hours.
Lune checks your schedule often. It looks at your one-time blackouts, your recurring blackouts, and your trading-hours close.
When an event falls inside your lead window, Lune closes your open positions for that account. Each event flattens once, so it does not fire again for the same event.
Automatic flatten closes real positions. It applies to positions on the account, however they were opened, including automated and copied trades. Set your lead time with care.
How the three work together#
Trading hours and blackouts block new entries during the times you choose. Automatic flatten closes open positions before an event you choose. Use them together to stay out of a risky window and to go into it flat.
All three run through your account risk checks. That means they cover the entries your automations place and the entries copied from a trader you follow, not just the trades you place by hand.