clockTrading 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:


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:


Dual Session Combined Example

European morning + US afternoon:


Best Trading Sessions

Based on 3,777+ DAX signal analysis

Peak performance hours:

  • 10:00 AM β€” 126 signals (highest activity)

  • 12:00 PM β€” 114 signals

  • 11:00 AM β€” 79 signals


European DAX Trading (Peak Hours Strategy)

Combines highest-activity morning + afternoon windows:

London + New York Sessions (Forex Majors)

Maximum liquidity windows:

Asian + London Sessions (JPY Pairs)

Tokyo + London overlap:

Single Session Strategies

European session only (DAX, EURUSD):

US session only (NAS100, US30):

24-hour trading (crypto, round-the-clock indices):


Trade Closure Control

CloseTradesAtSessionClose

What it does: Controls whether open trades are force-closed when trading sessions end.

Configuration:

  • Default: false (recommended for swing trading)

  • Options:

    • false β€” Trades continue after session ends (recommended)

    • true β€” Force-close all trades at session end (day trading)

How it works with dual sessions:

Example scenarios:

Day trading (CloseTradesAtSessionClose = true)

CancelPendingsAtSessionClose

What it does: Controls whether pending orders are canceled when trading sessions end.

Configuration:

  • Default: false (pending orders remain active)

  • Options:

    • false β€” Pending orders remain active after session close

    • true β€” Cancel all pending orders at session end

Use case:


Moving Average Filter

Multi-Layered EMA Trend Filter System

BananaEA uses a 3-tier EMA system for multi-layered trend confirmation. Each layer can be enabled or disabled independently.


Fast EMA Filter

Filter_EMA_Fast β€” Enable/disable fast EMA filter &#xNAN;FastEMA_Value β€” Fast EMA period

Default: 9 Range: 5–20


Slow EMA Filter

Filter_EMA_Slow β€” Enable/disable slow EMA filter &#xNAN;SlowEMA_Value β€” Slow EMA period (default: 21)


Slowest EMA Filter

Filter_EMA_SLOWEST β€” Enable/disable long-term EMA filter &#xNAN;EMA_SLOWEST_Input β€” Period (default 55)

EMA_SLOWEST_Strict β€” Require strict EMA hierarchy


MA Crossover Filter

Filter_MA_Crossover β€” Enable EMA crossover direction filter


EMA Filter Presets

Aggressive

Conservative

No Filtering


EMA Filter Pros & Cons

Benefits

  • βœ… Filters counter-trend trades

  • βœ… Improves profit factor in trending markets

  • βœ… Avoids range-bound whipsaws

  • βœ… Modular β€” enable any combination

Drawbacks

  • ❌ May miss reversals

  • ❌ Fewer trades overall

  • ❌ Strict mode can be overly selective


Spread Filter

MaxSpread

What it does: Maximum spread (in pips) allowed to open trades.

Typical range: 0.5–10.0 pips

Why it matters:

  • Prevents poor execution in high-spread conditions

  • Avoids news-time or low-liquidity entries

Symbol Type
Recommended MaxSpread

Forex Majors

2.0–3.0

Forex Minors

3.0–5.0

Forex Exotics

5.0–10.0

Indices (DAX/NAS)

2.0–4.0

Gold (XAUUSD)

3.0–5.0

By Trading Style

  • Scalping: 1.5–2.0

  • Day trading: 2.0–3.0

  • Swing trading: 3.0–5.0


Slippage Control

Slippage

Purpose: Maximum slippage (in pips) allowed for order execution. Default: 2–3 pips Range: 0–10 pips

Last updated