Skip to content
All library documents

Supertrend Entries Filtered by Multi-Timeframe EMA Trends

Article TradingView scripts

Summary

This TradingView strategy enters long or short when the Supertrend direction changes, subject to optional agreement from a configurable set of six timeframes. Each timeframe is classified by whether its close is above or below an exponential moving average, and user-defined bullish or bearish counts determine whether a signal is allowed. Trading sessions and long-only or short-only direction can also be selected.

At an entry, the script uses the Supertrend value as a stop reference and draws projected take-profit levels at configurable reward-to-risk multiples. It provides a dashboard with multi-timeframe counts and indicator readings, plus JSON entry alerts and order-fill alerts. The code also sets position size as a percentage of equity. These levels are visual only: the shown strategy does not submit stop-loss or take-profit orders. The document supplies source code, not performance results or evidence of profitability; its risk input is included in the alert payload rather than used to calculate order size.

Key ideas

  • Supertrend direction changes provide the base long and short signals.
  • EMA comparisons across six configurable timeframes can filter entries by bullish or bearish counts.
  • Session windows and direction settings restrict when and which signals may trade.
  • Reward-to-risk target and stop reference levels are drawn on the chart, but no exit orders are shown.
  • The script includes dashboards and alert options, but the document provides no performance evidence.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.