# SA 40 Long + Short Strategy

A strategy that enters long positions based on high price conditions and short positions based on Aroon indicators, with trailing stops.

Canonical: https://prismaticalgos.com/compendium/algo/1728-sa-40-long-short-strategy
Record ID: 1728
Catalog rank: 2898 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Trade & Execution Management (K)
Source: https://www.prorealcode.com/topic/sa-40-long-short-strategy/
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

No automated warnings recorded; this is not validation.

## Recorded profile

- symbols: any
- timeframes: H1
- sessions: any
- market_regime: trending|volatile

## Indicators

- AverageTrueRange: {"period": 14}; applied to: close
- AroonDown: {"period": 14}; applied to: Not specified
- AroonUp: {"period": 14}; applied to: Not specified
- SuperTrend: {"multiplier": 17, "period": 7.4}; applied to: Not specified

## Recorded long-entry rules

- close[3] <= high[4]
- close[3] >= low[4]
- close[2] <= high[3]
- close[2] >= low[3]
- close[1] <= high[2]
- close[1] >= low[2]
- close > ath
- close >= trend2H

## Recorded short-entry rules

- AroonDown[14] crosses over AroonUp[14]
- close <= trend2H

## Recorded exit rules

- Trailing stop function with start at 70 points and step of 60 points.

## Recorded filters

- Not specified.

## Risk controls

- Stop loss: 270 points
- Take profit: 225 points
- Position sizing: lotsize = max(2,round(((liveaccountbalance * 0.1) / (atr * 1.2)) /4))
