Extracted algorithm research record
EMA+PSAR+MACD
A trading bot using MACD, PSAR, and EMA indicators for entering long and short positions.
Source & extraction context
Evidence label: source_code (source claim, not independent verification). Recorded completeness: 80.0/100. Neither is a performance result.
Names identify source records. Inclusion is not an endorsement or a claim of authorship, ownership or reuse permission. Check the source license before reusing any implementation.
Extraction warnings
Build warnings
- MT4_ONLY: the captured source is MQL4 / written for MetaTrader 4. It needs porting (order functions, indicator handles) before it runs on MT5.
Recorded market & execution profile
- Recorded timeframes
- M15, H1, H4, D1
- Recorded sessions
- 24/7
- Recorded regime
- trending|volatile
Recorded indicators & parameters
| Indicator | Parameters | Applied to |
|---|---|---|
| MACD | {"fast_period": 12, "signal_period": 9, "slow_period": 26} | close |
| PSAR | {"acceleration": 0.02, "maximum": 0.02, "step": 0.2} | close |
| EMA | {"period": 9} | close |
| EMA | {"period": 26} | close |
Extracted strategy rules
Recorded long-entry rules
- MyMACD crosses over MySignalLine
- LongSAR is true
- EMA9 crosses over EMA26
- Not on market
Recorded short-entry rules
- MyMACD crosses under MySignalLine
- ShortSAR is true
- EMA9 crosses under EMA26
- Not on market
Recorded exit rules
- Trailing stop on long position
- Trailing stop on short position
Recorded filters
- Not specified in the extracted record.
- Stop loss
- Trailing stop based on EMA26
- Take profit
- Double the stop loss
- Position sizing
- 1 contract
Questions about this record
What entry rules are recorded for EMA+PSAR+MACD?
Long: MyMACD crosses over MySignalLine LongSAR is true EMA9 crosses over EMA26 Not on market Short: MyMACD crosses under MySignalLine ShortSAR is true EMA9 crosses under EMA26 Not on market These are unverified extracted rules.
Which markets and timeframes are recorded?
Markets: EURUSD, GBPUSD, USDJPY. Timeframes: M15, H1, H4, D1. These are source-recorded labels, not verified execution behavior.