# AutoSLTP

Automatically sets Stop Loss and Take Profit on open positions based on input parameters.

Canonical: https://prismaticalgos.com/compendium/algo/1436-autosltp
Record ID: 1436
Catalog rank: 1168 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Trend Following & Directional (A)
Source: https://www.mql5.com/en/code/14005
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: Not specified
- timeframes: Not specified
- sessions: Not specified
- market_regime: any

## Indicators

No indicator stack recorded.

## Recorded long-entry rules

- Not specified.

## Recorded short-entry rules

- Not specified.

## Recorded exit rules

- OrderOpenTime is less than 60 seconds

## Recorded filters

- OrderOpenTime is less than 60 seconds
- AllPairs setting

## Risk controls

- Stop loss: OrderOpenPrice() - iStopLoss*poin
- Take profit: OrderOpenPrice() + iTakeProfit*poin
- Position sizing: sizing rule based on Stop Loss and deposit, but not explicitly stated
