ATR STOPLOSS Trading Guide
Last updated: July 22, 2026
The ATR StopLoss is a quantitative technical analysis tool. ATR StopLoss Indicator Based on Pine Script "Stoploss area's" by chadmex Shows dynamic stop-loss levels based on ATR and price structure.
What does the indicator show?
- Market Structure & Momentum: Visualizes prevailing trend directions and key reversal zones.
- BUY / SELL Signals: Highlights confirmed entry and exit opportunities based on quantitative rules.
- Dynamic Boundaries: Provides adaptive levels for managing trade risk and reward expectations.
Key Settings
- ATR Length (
atrLength): Controls the calculation period and sensitivity for market detection. - Use Structure (
useStructure): Controls the calculation period and sensitivity for market detection. - Lookback for High/Low (
lookback): Controls the calculation period and sensitivity for market detection. - ATR Multiplier (
atrMultiplier): Controls the calculation period and sensitivity for market detection. - Hide Data (
hideData): Controls the calculation period and sensitivity for market detection. - Long Stop (
longStop): Controls the calculation period and sensitivity for market detection. - Short Stop (
shortStop): Controls the calculation period and sensitivity for market detection. - Long Stop Zone (
longZone): Controls the calculation period and sensitivity for market detection. - Short Stop Zone (
shortZone): Controls the calculation period and sensitivity for market detection. - Long Stop Level (
longStop): Controls the calculation period and sensitivity for market detection. - Short Stop Level (
shortStop): Controls the calculation period and sensitivity for market detection. - Distance to Long Stop % (
distToLongStopPct): Controls the calculation period and sensitivity for market detection. - Distance to Short Stop % (
distToShortStopPct): Controls the calculation period and sensitivity for market detection. - ATR (with multiplier) (
realAtr): Controls the calculation period and sensitivity for market detection.
How to use Strategy Parameters (Condition Source)
Within the Strategy Tester module, this indicator can be used both as a direct signal source and as a market-state filter.
1. Signal Events
buySignal- Fires when a bullish market condition is confirmed.sellSignal- Fires when a bearish market condition is confirmed.signalDir- Outputs1for bullish,-1for bearish, and0when neutral.
2. Filters and Trade Levels
atrLength- ATR Length value used for structural qualification or thresholds.useStructure- Use Structure value used for structural qualification or thresholds.lookback- Lookback for High/Low value used for structural qualification or thresholds.atrMultiplier- ATR Multiplier value used for structural qualification or thresholds.hideData- Hide Data value used for structural qualification or thresholds.longStop- Long Stop value used for structural qualification or thresholds.shortStop- Short Stop value used for structural qualification or thresholds.longZone- Long Stop Zone value used for structural qualification or thresholds.shortZone- Short Stop Zone value used for structural qualification or thresholds.longStop- Long Stop Level value used for structural qualification or thresholds.shortStop- Short Stop Level value used for structural qualification or thresholds.distToLongStopPct- Distance to Long Stop % value used for structural qualification or thresholds.distToShortStopPct- Distance to Short Stop % value used for structural qualification or thresholds.realAtr- ATR (with multiplier) value used for structural qualification or thresholds.
Strategy Example: Enter Long when buySignal is true and trendFilter == 1, ensuring trades align with dominant momentum.