A Supertrend Flip Strategy for Long Entries and Exits
Summary
This script turns Supertrend direction changes into a simple long-only trading rule. It buys when the direction switches from positive to negative and closes the long position when direction switches back. The indicator uses an ATR length of four and a factor of 22, and plots the trend line in green or red along with entry and exit markers.
The document provides executable strategy logic but no backtest report, asset universe, timeframe, transaction-cost assumptions, or performance evidence. It does not include a separate stop-loss or short-selling rule; the trend reversal itself is the exit trigger. The title and parameters identify the indicator configuration, while a brief user comment mentions Nifty, but the script does not enforce a market or timeframe. Results would therefore depend on the instrument, bar interval, trading costs, and testing setup.
Key ideas
- The strategy opens a long position when Supertrend direction changes from positive to negative.
- It closes the long position when direction changes from negative to positive.
- The indicator is configured with an ATR length of four and a factor of 22.
- The document supplies no reported performance data or explicit stop-loss beyond the direction-change exit.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.