Specifiche
1. Instruments
Bot operates ONLY on:
• UK100 (FTSE 100 Cash)
• CASH30 (Dow Jones / DJI30)
• GOLD (XAUUSD)
Developer Note:
Please ensure proper handling of contract sizes and point values for indices vs gold when calculating lot size.
2. Chart & Timeframes
Primary Execution Timeframe:
➡ M15
Higher Timeframe Bias:
➡ H1
Trades are allowed ONLY in the direction of H1 EMA200:
• BUY allowed only if H1 price is above H1 EMA200
• SELL allowed only if H1 price is below H1 EMA200
If condition not met → no trades.
3. Indicators
Apply on M15:
• EMA 13 (short momentum)
• EMA 50 (medium trend)
• EMA 200 (long anchor)
Apply on H1:
• EMA 200 (directional bias)
4. Trading Session Filter
Bot may trade ONLY during:
London + New York Kill Zone
(Broker server time adjustable)
Default:
08:00 – 17:00 London Time
Outside this window → NO entries.
5. Daily Trade Limit
Maximum:
➡ 3 trades per instrument per day.
Daily counter resets at:
➡ 00:00 broker server time.
6. Market Structure Filter (Anti-Chop Rule)
Before any setup is valid:
EMA Separation Requirement:
Distance between EMA50 and EMA200 must be ≥ ATR(14) × 0.5
If EMAs are compressed → no trade.
7. Momentum Confirmation Filter
Entry candle must satisfy:
• Candle body ≥ 60% of total candle range
• Candle closes in trade direction
• EMA13 slope must be positive (BUY) or negative (SELL)
Otherwise → ignore signal.
8. Two-Stage Entry Logic
Stage 1 – Momentum Cross
BUY Setup:
EMA13 crosses ABOVE EMA50 (confirmed on candle close)
SELL Setup:
EMA13 crosses BELOW EMA50 (confirmed on candle close)
This creates a pending setup state.
Setup Expiry Rule
If EMA200 confirmation does NOT occur within:
➡ 10 closed M15 candles
Then invalidate setup.
Stage 2 – Trend Confirmation (Execution)
BUY Entry:
• Price OR EMA13 crosses ABOVE EMA200
• H1 bias aligned
• Momentum + structure filters valid
• Session valid
• Spread acceptable
SELL Entry:
• Price OR EMA13 crosses BELOW EMA200
• H1 bias aligned
• Momentum + structure filters valid
• Session valid
• Spread acceptable
9. Position Rules
• Only ONE open trade per instrument at any time.
• No stacking.
• No immediate reversal on opposite signal.
• New setup allowed only after previous trade closes.
10. Stop Loss Logic
SL is placed at the tighter of:
A) Previous swing high/low
B) Fixed 1% account risk
Swing Definition:
Swing High = Highest high of last 5 closed candles
Swing Low = Lowest low of last 5 closed candles
Whichever gives smaller risk distance is used.
11. Risk Management
Risk per trade:
➡ Exactly 1% of account balance.
Reward target:
➡ 3R (1:3 Risk-Reward)
Lot size must be dynamically calculated based on:
• Account balance
• SL distance
• Instrument contract size
• Point value
12. Spread & Slippage Protection
Before order execution:
• Max spread allowed: – Indices: ≤ broker average × 1.5
– Gold: ≤ broker average × 1.2
• Max slippage: 2 points
If exceeded → cancel trade.
13. News & Volatility Safety (Optional but Recommended)
Do NOT open new trades within:
➡ 15 minutes before or after high-impact news on traded instrument.
(Open trades may continue.)
14. Execution Rules
• Entries executed at candle close only.
• No intra-bar trading.
• No partial closes.
• TP and SL placed immediately upon entry.
15. Logging Requirements
Bot must log:
• Instrument
• Entry type (Buy/Sell)
• Entry price
• SL / TP
• Risk size
• Reason for trade
• Setup expiration
• Daily trade count
Exportable to CSV.
16. Fail-Safe Conditions
Bot must halt trading if:
• Account drawdown reaches 5% in a day
• Connection lost
• Price feed invalid
• Order rejected twice consecutively
This algorithm trades:
Momentum
EMA Structure
Higher Timeframe Direction
Session Liquidity
Avoids:
✘ Chop
✘ Weak crosses
✘ Overnight noise
✘ Overtrading