# AK-47 EA

A MetaTrader 5 expert advisor that trades based on time filters and fixed stop-loss and take-profit levels.

Canonical: https://prismaticalgos.com/compendium/algo/33-ak-47-ea
Record ID: 33
Catalog rank: 21 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Scalping & Short-Horizon (D)
Source: https://www.mql5.com/en/code/44883
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

Signal warnings: HARD-CODED DIRECTION: `OrdType` is initialised to ORDER_TYPE_SELL and never reassigned, yet the code branches on it. The opposite branch is unreachable - this EA can only ever trade one direction.

## Recorded profile

- symbols: any
- timeframes: any
- sessions: 2:30 - 21:00 GMT
- market_regime: any

## Indicators

No indicator stack recorded.

## Recorded long-entry rules

- Bid + InpSL_Pips/2 * Pips2Double
- Ask - InpSL_Pips/2 * Pips2Double

## Recorded short-entry rules

- Ask - InpSL_Pips/2 * Pips2Double
- Bid + InpSL_Pips/2 * Pips2Double

## Recorded exit rules

- Trailing stop with InpSL_Pips

## Recorded filters

- Trading time filter from 2:30 to 21:00 GMT

## Risk controls

- Stop loss: Stop loss placed at Ask + InpSL_Pips/2 * Pips2Double for buy orders and Bid - InpSL_Pips/2 * Pips2Double for sell orders
- Take profit: Take profit placed at OpenPrice + InpTP_Pips * Pips2Double for buy orders and OpenPrice - InpTP_Pips * Pips2Double for sell orders
- Position sizing: Risk percentage of balance or fixed lot size
