OPEN-SOURCE SCRIPT

Trend-Following Combo-SuperTrend, EMA, Aroon, DMI, Laguerre RSI

Cập nhật
This is a trend-following indicator which condenses two SuperTrend indicators -- one based on analysis over a shorter period of time (1.5, 7), and one based on analysis over a longer period of time (1.65, 100) -- into a single indicator which appears on your chart only when both the shorter- and longer-term analysis indicates a "SuperTrend" in the same direction.

Additionally, potential trade entry indicators are displayed in the form of up and down arrows when (by default) three of the following five indicators suggest that the market is trending in the same direction as both the shorter- and longer-term SuperTrend indicators:

  • EMA Crossover (8, 15)
  • Aroon Indicator (8)
  • Aroon Oscillator (8)
  • Directional Movement Index (DI +/-) (8)
  • Laguerre RSI (13)


You may update the parameters of any of the indicators to match your own preferences.

Additionally, you may also adjust the "Threshold" of indicators that must be in agreement with the SuperTrend to show a potential trade entry arrow. Bear in mind that if you set the Indicator Threshold too low, you will see more frequent trade entry arrows, many of which will not be profitable if taken. Similarly, set this value too high, and you will see fewer trade entry arrows that may not appear until after most of the "juice" in the trend has evaporated. Ideal values for the threshold seem to be between 2-4, depending on the symbol you are trading.

The following image shows all of the indicators referenced above on a 5-minute chart of the SPY during a single trading day:
ảnh chụp nhanh

And, here is the same period of time showing only the Trend-Following Combo indicator with default settings:
ảnh chụp nhanh

This indicator would not have been possible save for work contributed by the following:
Phát hành các Ghi chú
Defined minimum and maximum values for the Indicator Threshold parameter.
Phát hành các Ghi chú
I've added a feature that enables the indicator, by default, to confirm the direction of the SuperTrend on a chart of a different timeframe before showing any potential trade entry arrows. This may be disabled by unchecking the Get trend confirmation from longer timeframe? box in the indicator settings. The Confirmation Timeframe (1 day by default) may also be adjusted in the indicator settings.
Phát hành các Ghi chú
Updated indicator thumbnail.
Phát hành các Ghi chú
Updated indicator thumbnail to reflect settings I use when trading equities and index ETFs intraday.
Phát hành các Ghi chú
null
Aroonaroon_oscillatorDirectional Movement Index (DMI)DMIExponential Moving Average (EMA)laguerreLaguerre Relative Strength Index (Laguerre RSI)Relative Strength Index (RSI)supertrend

Mã nguồn mở

Theo tinh thần TradingView thực sự, tác giả của tập lệnh này đã xuất bản dưới dạng nguồn mở để các nhà giao dịch có thể hiểu và xác minh. Chúc mừng tác giả! Bạn có thể sử dụng miễn phí. Tuy nhiên, bạn cần sử dụng lại mã này theo Quy tắc nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?

Thông báo miễn trừ trách nhiệm