Bully Bear AI
- Experts
- 버전: 2.50
- 업데이트됨: 10 9월 2026
- 활성화: 10
# Bully Bear AI — Expert Advisor Description (v2.40)
## Overview
**Bully Bear AI** is a fully automated MetaTrader 5 Expert Advisor built around **Bollinger Bands pullbacks in a confirmed trend**, with optional hammer/strong-candle confirmation. It is designed for **H1 major FX pairs**, with higher-timeframe (H4) bias filtering, ATR-based risk, breakeven, trailing stop, and optional partial take-profit.
Core idea:
1. Trade only when trend strength is present (ADX + MA alignment).
2. Enter on a **pullback toward the Bollinger middle** in the trend direction (not at the extreme outer band).
3. Confirm with RSI range and a directional candle (and optional strong/hammer bar).
4. Align with **H4 MA** so H1 trades are not taken against the larger trend.
5. Manage risk with fixed fractional risk, ATR stop, 3R target, trailing, and optional partial TP.
---
## Strategy logic (summary)
| Stage | Rule |
|--------|------|
| **Trend** | Fast MA > Slow MA and rising (buys), or opposite (sells); price on the correct side of Fast MA |
| **H4 bias** | Price above H4 MA(50) for buys; below for sells |
| **Volatility** | Bollinger width ≥ `MinBBWidthATR` × ATR; ADX ≥ `MinADX` |
| **Entry zone** | Price between BB middle and ~70% of the way to the outer band |
| **Momentum** | RSI in a moderate band (not extreme); prior bar is a pullback, current bar continues with trend |
| **Risk** | Lot size from `% risk` and SL distance; SL = `SL_ATR_Mult` × ATR; TP = `TP_RR` × SL |
| **Management** | Breakeven, ATR trailing, optional 50% partial at 1.2R |
Trades are evaluated **once per new bar** (not every tick). Open positions are managed every tick for BE / trail / partial.
---
## Recommended pairs & timeframe
| Priority | Symbol | Timeframe | Notes |
|----------|--------|-----------|--------|
| **Primary** | **GBPUSD** (or GBPUSDm) | **H1** | Best backtest result on 2025–2026 sample (~break-even to slight profit) |
| Secondary | EURUSD (or EURUSDm) | H1 | Near break-even; usable with defaults |
| Cautious | USDJPY (or USDJPYm) | H1 | Weaker on the same sample; use only after your own forward test |
| Optional | Same majors | H4 | Fewer trades; can be cleaner for EUR/JPY |
**Not recommended as primary:** crypto (e.g. BTCUSDm), low-liquidity crosses, or M1–M15 with these defaults (filters were tuned for H1 majors).
**Broker:** Works with standard and “m” (micro) suffixes. Keep `MaxSpreadPoints` realistic for your symbol (default 100).
---
## Input variables
### Risk
| Input | Default | Description |
|-------|---------|-------------|
| `RiskPercent` | 0.4 | Risk per trade as % of account balance |
| `MaxLot` | 0.50 | Maximum lot size |
| `MinLot` | 0.01 | Minimum lot size |
| `MaxPositions` | 1 | Maximum open positions for this EA/symbol |
### Session
| Input | Default | Description |
|-------|---------|-------------|
| `TradeOnWeekends` | false | Allow trading Saturday/Sunday |
| `MaxSpreadPoints` | 100 | Skip new entries if spread exceeds this (points) |
| `UseTimeFilter` | true | Restrict entries to hour range |
| `StartHour` | 8 | First allowed server hour |
| `EndHour` | 17 | Last allowed server hour (exclusive) |
| `CooldownBars` | 5 | Minimum bars between new trades |
### Bollinger Bands
| Input | Default | Description |
|-------|---------|-------------|
| `BBPeriod` | 20 | Bollinger period |
| `BBDeviation` | 2.0 | Bollinger deviation |
| `MinBBWidthATR` | 1.1 | Minimum BB width in ATR units (skip tight ranges) |
### Trend
| Input | Default | Description |
|-------|---------|-------------|
| `FastMAPeriod` | 20 | Fast SMA period |
| `SlowMAPeriod` | 50 | Slow SMA period |
| `ADXPeriod` | 14 | ADX period |
| `MinADX` | 22.0 | Minimum ADX to allow entries |
| `UseH4Filter` | true | Require price vs H4 MA alignment |
| `H4_MAPeriod` | 50 | H4 SMA period for bias |
### RSI
| Input | Default | Description |
|-------|---------|-------------|
| `RSIPeriod` | 14 | RSI period |
| `RSI_BuyMax` | 58.0 | No buys if RSI above this |
| `RSI_SellMin` | 42.0 | No sells if RSI below this |
### Candle
| Input | Default | Description |
|-------|---------|-------------|
| `RequireStrongCandle` | false | If true, require strong body or hammer; if false, any directional bar is enough |
### Stop loss / take profit
| Input | Default | Description |
|-------|---------|-------------|
| `SL_ATR_Mult` | 2.0 | Stop distance = ATR × this |
| `TP_RR` | 3.0 | Take-profit distance = SL × this (3R) |
| `UseBreakeven` | true | Move SL to break-even after profit threshold |
| `BreakevenATR` | 1.2 | Profit in ATR before BE is applied |
### Trailing stop
| Input | Default | Description |
|-------|---------|-------------|
| `UseTrailing` | true | Enable ATR trailing stop |
| `TrailStartATR` | 1.8 | Start trailing after this much profit (ATR) |
| `TrailDistATR` | 1.5 | Trail distance behind price (ATR) |
| `TrailStepATR` | 0.5 | Minimum SL improvement before modify (ATR) |
### Partial take-profit
| Input | Default | Description |
|-------|---------|-------------|
| `UsePartialTP` | true | Close part of the position at a first target |
| `PartialTP_RR` | 1.2 | First target in R multiples of SL |
| `PartialPct` | 50.0 | Percent of volume to close at partial TP |
### Exits
| Input | Default | Description |
|-------|---------|-------------|
| `ExitOnTrendFlip` | false | Close if Fast/Slow MA cross against the position |
| `ExitOnOppBand` | false | Close profitable trade at opposite Bollinger band |
### Debug
| Input | Default | Description |
|-------|---------|-------------|
| `ShowDebug` | false | Print filter/signal details to the Journal |
---
## Risk & usage notes
- Default risk is **0.4% per trade**, one position max — conservative for H1.
- Always confirm **Journal** shows `Bully Bear AI v2.40` after compile.
- Backtests on one period are not a guarantee of future results; forward-test on demo before live.
- Best practical deployment from current testing: **GBPUSDm H1** with defaults; treat EUR/JPY as secondary after your own validation.

