The ATRTrailingStopSE strategy generates a Short Entry signal when the close price falls below the ATR Trailing Stop value.

Input Parameters

Parameter Description
trail type Defines whether to use "modified" or "unmodified" trailing stop calculation mechanism.
atr period The number of bars used to calculate the Average True Range.
atr factor The multiplier of the ATR value.
first trade Defines whether to initialize ATR calculation at a short or a long position.
average type The type of moving average to be used in calculations: simple, exponential, weighted, Wilder's, or Hull.