swagato25

W and M Pattern Indicator- SwaG

swagato25 已更新   
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! 😊
版本注释:
*fix
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?