# Working Hours

The "Working Hours" feature allows scheduling algorithm operating times based on either a general "Weekly" scheme or individually configuring schedules for each day of the week separately — "Daily".

***

### Schedule Type

Choose the algorithm's operating scheme.

#### Weekly

Created schedule applies to all selected days of the week.

**How it works:** Configure one schedule (for example, from 09:00 to 23:00), and it will apply identically to all marked days of the week.

**Application:** Convenient when the algorithm should operate on the same schedule every day.

***

#### Daily

Allows individually configuring schedules for each day separately.

**How it works:** For each day of the week, you can set its own operating time interval.

**Application:** Use when different operating times are required on different days of the week (for example, shorter hours on weekends).

***

### Days of Week

Select the days of the week to which the scheme will apply.

**Available options:**

* Sun (Sunday)
* Mon (Monday)
* Tue (Tuesday)
* Wed (Wednesday)
* Thu (Thursday)
* Fri (Friday)
* Sat (Saturday)

**With "Weekly" scheme:** Mark the needed days of the week — the schedule will apply to all selected days.

**With "Daily" scheme:** Configure operating time for each day individually.

***

### Hours

Specify the algorithm's operating time interval.

**Parameters:**

* **From** — start time (for example, 09:00)
* **To** — end time (for example, 23:00)

**Adding intervals:** Click the **+** button to add an additional time interval for the same day.

**Removing intervals:** Click the **🗑️** (trash) button to remove an interval.

**Application:** You can set multiple intervals for one day if the algorithm should operate with breaks.

***

### Usage Examples

#### Example 1: Weekday Operation

**Settings:**

* **Schedule type:** Weekly
* **Days of week:** Mon, Tue, Wed, Thu, Fri
* **Hours:** From 09:00 To 18:00

**Result:** Algorithm operates Monday through Friday from 9:00 to 18:00. Does not operate on weekends.

***

#### Example 2: Different Times on Weekdays and Weekends

**Settings:**

* **Schedule type:** Daily
* **Monday-Friday:** From 09:00 To 23:00
* **Saturday:** From 10:00 To 20:00
* **Sunday:** From 12:00 To 18:00

**Result:** Algorithm operates on different schedules depending on the day of the week.

***

#### Example 3: Operation with Breaks

**Settings:**

* **Schedule type:** Weekly
* **Days of week:** All days
* **Interval 1:** From 09:00 To 12:00
* **Interval 2:** From 14:00 To 18:00

**Result:** Algorithm operates in the morning (9:00-12:00) and after lunch (14:00-18:00), with a break from 12:00 to 14:00.

***

### Why Working Hours are Needed

**Trading Optimization:** Operate only during high liquidity hours or when you can monitor the algorithm.

**Avoiding Undesirable Periods:** Disable the algorithm during periods of low market activity, weekends, or exchange maintenance times.

**Flexible Planning:** Configure different schedules for different days of the week depending on market conditions or personal schedule.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guide.moontrader.com/en-moontrader-docs/trading/trading-algorithms/general-algorithm-settings/working-hours.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
