The ATRTrailingStopLE strategy generates a Long Entry signal when the close price rises above 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.

Backtesting is the evaluation of a particular trading strategy using historical data. Results presented are hypothetical, and there is no guarantee that the same strategy implemented today would produce similar results.

Technical analysis is not recommended as a sole means of investment research.

For educational purposes only. Not a recommendation of a specific security or investment strategy.