OPEN-SOURCE SCRIPT

W and M Pattern Indicator- SwaG

Zaktualizowano
This is a TradingView indicator script that identifies potential buy and sell signals based on ‘W’ and ‘M’ patterns in the Relative Strength Index (RSI). It provides visual alerts and draws horizontal lines to indicate potential trade entry points.

User Manual:

Inputs: The script takes two inputs - an upper limit and a lower limit. The default values are 70 and 40, respectively.

RSI Calculation: The script calculates the RSI based on the closing prices of the last 14 periods.

Pattern Identification: It identifies ‘W’ patterns when the RSI makes a higher low within the lower limit, and ‘M’ patterns when the RSI makes a lower high within the upper limit.

Visual Alerts: The script plots these patterns on the chart. ‘W’ patterns are marked with small green triangles below the bars, and ‘M’ patterns are marked with small red triangles above the bars.

Trade Entry Points: A horizontal line is drawn at the high or low of the candle to represent potential trade entry points. The line starts from one bar to the left and extends 10 bars to the right.

Trading Strategy:

  • For investing, use a weekly timeframe.
  • For swing trading, use a daily timeframe.
  • For intraday trading, use a 5 or 15-minute timeframe. Only consider sell-side signals for intraday trading.
  • Take a buy position if the high breaks above the green line or sell if the low breaks below the red line.
  • Use recent signals only and avoid signals that are too old.
  • Swing highs or lows will be your stop-loss level.
  • Always think about your stop-loss before entering a trade, not your target.
  • Avoid trades with a large stop-loss.

Remember, this script is a tool to aid in your trading decisions. Always test your strategies thoroughly before live trading. Happy trading! 😊
Informacje o Wersji
*fix
Relative Strength Index (RSI)

Skrypt open-source

W prawdziwym duchu TradingView autor tego skryptu opublikował go jako open source, aby inwestorzy mogli go zrozumieć i zweryfikować. Pozdrowienia dla autora! Możesz go używać bezpłatnie, ale ponowne użycie tego kodu w publikacji podlega Zasadom Regulaminu. Możesz go oznaczyć jako ulubione, aby użyć go na wykresie.

Chcesz użyć tego skryptu na wykresie?

Wyłączenie odpowiedzialności