Best SuperTrend BTCUSD
Sep 27, 2017

The Best SuperTrend BTCUSD tool is a dual Double Exponential Moving Average (DEMA) crossover strategy designed to identify trend reversals specifically optimized for Bitcoin and other cryptocurrency pairs. It utilizes a higher-timeframe resolution input to smooth out price noise and capture significant market shifts through long and short entries.
Usage
The strategy is primarily used to automate or signal entries and exits based on trend momentum. When the slow DEMA crosses over the fast DEMA, a "Buy" signal is triggered, accompanied by a green background highlight. Conversely, when the slow DEMA crosses under the fast DEMA, a "Sell" signal is triggered with a red background highlight.
Example configurations for BTCUSD include:
- Resolution 165 at 30m chart: Fast Period 17, Slow Period 9.
- Resolution 100 at 30m chart: Fast Period 16, Slow Period 30.
Users should align the "Resolution" timeframe setting with their desired trading horizon while ensuring the "Resolution (minutes)" integer matches the selected timeframe to maintain proper sampling offsets.
Details
The script utilizes the Double Exponential Moving Average (DEMA) to reduce lag typically associated with standard EMAs. By calculating these averages on a user-defined higher timeframe (via request.security), the script filters out intraday volatility.
The strategy incorporates a sampling offset calculation: math.floor(resInteger / timeframe.multiplier). This ensures that the crossover logic remains consistent and accounts for the relationship between the chart's current timeframe and the indicator's calculation resolution.
Settings
- Fast Period: The lookback length for the faster DEMA calculation.
- Slow Period: The lookback length for the slower DEMA calculation.
- Resolution: The timeframe from which the DEMA data is requested (e.g., 60m, 240m, Daily).
- Resolution (minutes): The integer value of the chosen resolution used to calculate the internal sampling offset.
FAQ
How do I interpret the background colors?
A solid green background indicates a fresh Buy signal, while a faint green background suggests the current trend remains bullish. Red backgrounds indicate Sell signals and bearish trend persistence.
Can I use this on assets other than BTCUSD?
While optimized for BTCUSD, the underlying DEMA crossover logic can be applied to any asset. You may need to adjust the Fast and Slow periods to match the volatility of the specific pair.
How can I access this tool?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.