OPEN-SOURCE SCRIPT

W and M Pattern Indicator- SwaG

Aggiornato
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! 😊
Note di rilascio
*fix
Relative Strength Index (RSI)

Script open-source

In pieno spirito TradingView, l'autore di questo script lo ha pubblicato open-source, in modo che i trader possano comprenderlo e verificarlo. Un saluto all'autore! È possibile utilizzarlo gratuitamente, ma il riutilizzo di questo codice in una pubblicazione è regolato dal nostro Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?

Declinazione di responsabilità