指定
EA Name: Stochastic EA (MT5)
Timeframe
• Works only on M1, M5, M15, M30
⸻
Indicators & Settings
1. Stochastic Oscillator
• %K Period: 14 (editable)
• %D Period: 3 (editable)
• Slowing: 3 (editable)
• Buy Level: 10 (editable via input Buy Level)
• Sell Level: 90 (editable via input Sell Level)
2. Simple Moving Average (SMA)
• Period: 100 (editable via input SMA Period)
• Acts as a hard filter for trades:
• Buy trades only if price > SMA100
• Sell trades only if price < SMA100
⸻
Entry Rules:
BUY
- Stochastic crosses below Buy Level (default 10) from above
- Current price above SMA100
- Max trades not exceeded
- Grid spacing respected for multiple positions
- Immediate entry on the current candle; no waiting for candle close when price comes out of 10level
SELL
- Stochastic crosses above Sell Level (default 90) from below
- Current price below SMA100
- Max trades not exceeded
- Grid spacing respected for multiple positions
- Immediate entry on the current candle; no waiting for candle close when price comes out of 90level
Trade Management
- Maximum positions per direction: 10
- Grid layering: 2-5 pips apart (editable via Grid Step Pips)
- Fixed lot (Fixed Lot) or % of account risk (Risk Percent) selectable
- Stop Loss: Manual SL in pips (Stop Loss Pips) applied to all trades
- Take Profit: extreme opposite 90/10 or manual close
- Manual close safe: EA will not open new trades until stochastic crosses the levels again after a position is closed
Behavior Notes
1. Trades only open when SMA filter AND stochastic condition are met simultaneously.
2. If price moves back into neutral zones (around 50), no new trades are triggered unless stochastic crosses the defined Buy/Sell levels again.
3. EA continuously monitors each tick and respects grid spacing and max trades rules.
4. Fully customizable via inputs - stochastic periods, SMA period, Buy/Sell levels, lot size, risk, stop loss, grid spacing, and max trades.
How it Works (Step-by-Step)
1. Check SMA100
- Price above SMA100 → Only BUY trades allowed
- Price below SMA100 → Only SELL trades allowed
2. Check Stochastic
- BUY: comes out of below Buy Level (default 10) → open BUY
- SELL: comes out of above Sell Level (default 90) → open SELL
3. Check Grid
- New trades only if distance from last open ≥ GridStepPips (2-5 pips)
- Max 10 positions per direction
4. Apply Stop Loss
- * SL in pips as set in input
5. Manual Close Safe
- If trades are manually closed, EA waits for fresh stochastic cross before opening again