Skip links

Close all at a set time

FCC_EA 1.0Updated 2 min read

Available in FCC_EA Trading Panel Pro

Close All Trades at (in TRADING TIME SETTINGS) closes everything FCC_EA has open on the chart's symbol once a day, at a time you choose. Use it to be flat at night, before the weekend or at the end of a session. 00:00 = off.

What it closes

  • All positions and pending orders of FCC_EA on the chart's symbol, in both slots: signal trades, grid and pyramid positions, Trading Panel trades and hedge baskets.
  • Nothing else: trades of other EAs, other symbols and trades you opened outside FCC_EA stay open.

With alerts on, the usual close alert is sent, like for any other close (see Telegram alerts).

When it fires

It fires once, at the moment the clock passes the set time: one price tick before it, the next at or after it, on the same day. A quiet market with no ticks between 21:58 and 22:03 still counts as passing 22:00.

Nothing else closes anything:

  • Starting or restarting FCC_EA after the time does not close: the next close is the next day.
  • Changing the time does not close at the moment you save it. With 22:00 changed to 22:30 at 22:15, the positions close at 22:30.
  • Changing the timeframe or recompiling does not close either.
Before the weekend

The close needs a price tick at or after the set time. If your broker closes the market on Friday before that time, there is no tick and nothing closes until the time passes on Monday. Set it a few minutes before your broker's Friday close (see the trading hours of the symbol in Market Watch › Specification).

When the broker rejects the close

If a close fails (market closed, a rejected request), FCC_EA retries every 30 seconds until everything is closed. The Experts tab shows each step:

Close All Trades at: 21:45 reached (server) - 2 position(s), 1 pending order(s) to close
Close All Trades at: DONE - all positions and pending orders closed

A close that is still not finished when the day changes is given up, with a line unfinished close ABANDONED at day change.

New trades after the close

Close All does not stop new trades. A signal right after the close opens a new position. To stay flat, end the trading window before the close:

SettingValueEffect
Trading End Time21:30no new trades after 21:30
Close All Trades at21:45what is still open closes at 21:45

See Trading hours and breaks.

Time zone and format

The time is HH:MM in your broker's server time, or in the zone chosen in Time Zone of All Time Inputs (see Input time zone). A value in a wrong format (for example 2145) gives a warning at start and leaves Close All off; it does not stop FCC_EA.

All settings for this feature Trading Time settings → Other settings →

Build it, test it, change it.

Backtest this setup free in the Strategy Tester, and adjust it whenever the market changes; every feature is in every plan. Backtest results depend on your broker's data and don't guarantee future results.

Can't find an answer?

Check the FAQ or write to us. We reply within one business day.