# Pirate

Automated trading EA using RSI and Moving Average for trade signals with risk management and time-based trading.

Canonical: https://prismaticalgos.com/compendium/algo/11268-pirate
Record ID: 11268
Catalog rank: 1914 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Mean Reversion & Counter-Trend (B)
Source: https://github.com/KanekiCraynet/Pirate-MQL4
Evidence label (unverified): source_code

## Scope and limitations

These are machine-extracted research records, not verified trading systems. Catalog rank measures specification detail and claimed evidence, not profitability. The catalog extraction pipeline did not independently backtest these records. Its separate selected testing ledger does not validate the wider corpus. Rules, labels and parameters can be incomplete or wrong; consult the original source and its reuse terms.

No endorsement, ownership claim or source-code reuse permission is implied.

## 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 profile

- symbols: CHFJPY, EURCHF, EURAUD, USDCHF, USDCAD
- timeframes: Not specified
- sessions: Not specified
- market_regime: any

## Indicators

- RSI: {"period": 14}; applied to: close
- RSI: {"period": 1}; applied to: close
- Moving Average: {"period": 8}; applied to: median

## Recorded long-entry rules

- RSI (14-period) < 30 and RSI (1-period) < 36.
- Price above Moving Average (8-period, Median Price)

## Recorded short-entry rules

- RSI (14-period) > 70 and RSI (1-period) > 64.
- Price below Moving Average (8-period, Median Price)

## Recorded exit rules

- Take Profit: Closes at TakeProfit pips.
- Stop Loss: Triggers at StopLoss pips.
- Time-Based Close: Closes trades that exceed predefined idle times.

## Recorded filters

- Spread Protection: Avoids trades if spread exceeds MaxSpreadOpen pips

## Risk controls

- Stop loss: Stop Loss in pips.
- Take profit: Take Profit in pips.
- Position sizing: Adjusts lot size based on account balance and risk percentage.
