Supertrend Entries with EMA Filtering, Scale-Ins, and Partial Profit Taking
Summary
This long-only strategy combines a Supertrend crossover entry with a higher-timeframe EMA filter. It enters when price crosses above the Supertrend while the higher-timeframe fast, medium, and slow EMAs are ordered from lower to higher. If already long, it can add to the position after price falls sufficiently below the average entry price. The required decline grows with each scale-in, and add size is tied to the drawdown and current position size.
For exits, the script tracks a reference average and position size, then closes portions as profit advances through configurable percentage steps. It can schedule a partial add-back on the next bar after a take-profit, with the final profit step closing the remaining position. Labels and a dashboard estimate notional, margin, and unrealized profit and loss. These are adjustable mechanics, not evidence of profitability: the supplied excerpt is incomplete, describes leverage and large scale-in settings, and provides no verified backtest results or treatment of liquidation and execution risks.
Key ideas
- Long entries require a bullish Supertrend crossover and a specified higher-timeframe EMA ordering.
- Scale-ins occur after price falls below the current average by a step-dependent threshold.
- Partial exits use profit increments and a snapshot of average price and position size.
- A portion of the remaining position can be added back on a later bar after a partial exit.
- The dashboard estimates margin and unrealized results, but the document does not establish strategy performance or liquidation safety.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.