⏰ Trading Hours & Filters
Time Controls & Entry Filters
BananaEA provides powerful filtering mechanisms to control when trades are opened and what market conditions qualify for entry.
Trading Hours Control
Dual Trading Session System (v4.x.x)
NEW: BananaEA now supports two independent trading sessions for maximum flexibility.
⚡ Key Benefits:
- ✅ Trade multiple optimal time windows per day
- ✅ Combine European morning + US afternoon sessions
- ✅ Avoid slow midday periods automatically
- ✅ Minute-level precision for exact session timing
- ✅ Enable/disable each session independently
Master Time Window Control
UseTimeWindow
What it does: Master switch for all time-based trading restrictions.
Configuration:
- Default: true (time restrictions enabled)
- Options:
- true — Respect Session 1 and Session 2 time windows
- false — 24/7 trading (ignore all session settings)
When to disable (false):
- 24/7 crypto trading
- Automated testing without time restrictions
- Indices that trade around the clock
Session 1 Settings
Typical use: European morning session, London open, primary trading window
UseSession1
What it does: Enable/disable first trading session.
Configuration:
- Default: true (Session 1 enabled)
- Options:
- true — Session 1 active (respects start/end times)
- false — Session 1 disabled (no trading in this window)
Session1_StartHour & Session1_StartMinute
What it does: Exact time when Session 1 begins.
Configuration:
- Format: 24-hour format
- Hour range: 0–23
- Minute range: 0–59
- Default: 10:00 (10 AM)
- Example:
Session1_StartHour = 10, Session1_StartMinute = 0→ 10:00 AM
Session1_EndHour & Session1_EndMinute
What it does: Exact time when Session 1 ends.
Configuration:
- Format: 24-hour format
- Hour range: 0–23
- Minute range: 0–59
- Default: 13:00 (1 PM)
- Example:
Session1_EndHour = 13, Session1_EndMinute = 0→ 1:00 PM
Session 1 Example:
UseSession1 = true
Session1_StartHour = 10
Session1_StartMinute = 0
Session1_EndHour = 13
Session1_EndMinute = 0
10:00 AM → Session 1 starts
10:30 AM → Signal generated → Trade opened ✅
12:45 PM → Signal generated → Trade opened ✅
1:00 PM → Session 1 ends
1:15 PM → Signal generated → Trade ignored ❌
Session 2 Settings
Typical use: US afternoon session, New York open, secondary trading window
UseSession2
What it does: Enable/disable second trading session.
Configuration:
- Default: true (Session 2 enabled)
- Options:
- true — Session 2 active (respects start/end times)
- false — Session 2 disabled (no trading in this window)
Session2_StartHour & Session2_StartMinute
What it does: Exact time when Session 2 begins.
Configuration:
- Format: 24-hour format
- Hour range: 0–23
- Minute range: 0–59
- Default: 16:15 (4:15 PM)
- Example:
Session2_StartHour = 16, Session2_StartMinute = 15→ 4:15 PM
Session2_EndHour & Session2_EndMinute
What it does: Exact time when Session 2 ends.
Configuration:
- Format: 24-hour format
- Hour range: 0–23
- Minute range: 0–59
- Default: 17:45 (5:45 PM)
- Example:
Session2_EndHour = 17, Session2_EndMinute = 45→ 5:45 PM
Session 2 Example:
UseSession2 = true
Session2_StartHour = 16
Session2_StartMinute = 15
Session2_EndHour = 17
Session2_EndMinute = 45
4:15 PM → Session 2 starts
4:30 PM → Signal generated → Trade opened ✅
5:30 PM → Signal generated → Trade opened ✅
5:45 PM → Session 2 ends
6:00 PM → Signal generated → Trade ignored ❌