INVITE-ONLY SCRIPT

Magic Candles PRO [MW]

מעודכן
The Magic Candles [MW] indicator provides users with low risk/high reward entries on small candles with big volume. It uses calculations that uniquely define high volume/low price movement (volume hammer) candles and engulfing pattern candles. In theory, measuring a volume hammer candle seems relatively simple, but it is in the definition of high and low with respect to volume and price movement, and with respect to each other that requires a novel method of defining the relationship. The definition that is ultimately used gives users the ability to identify candles that typically precede large price movements, because the volume necessary to drive the price exists by definition even though it is not reflected in the size of the current candle.

Similarly, engulfing candle patterns are useful because they show an acceleration of price movement from the previous candle. The difficulty in calculating engulfing candles, as with volume hammer candles, is in the interpretation of candle size, or “engulfing”. In many cases, engulfing simply means that a candle has reversed direction from the previous candle, and the body of the previous candle sits between the open and close of the new candle. Sometimes wicks are used, sometimes they aren’t. Our differentiation is that we allow the user to change “engulfing” to their preference, so that it can include candle bodies, full candles, dojis, and candle patterns where the body of the previous candle is not necessarily in between the open and close of the new candle. It also uses a double stochastic calculation on ATRs that filter out engulfing candles that may not be as meaningful.

Settings

Volume Hammer Candles
  • ATR Period: The ATR period that is used to compare the candle size against. (Default: 5)
  • Candle Portion to Use: The candle size can be defined as just the body, or the entire candle. (Default: Candle Body)
  • Volume Absorption Threshold: The threshold for the volume ratio relative to the candle size ratio. (Default: 4.5)
  • Volume ATR Period: The ATR period that is used to compare the volume against. (Default: 3)
  • 3 Consecutive Volume increases and 3 Bullish Candles: (Default: ON)
  • 3 Consecutive Volume Increases and 3 Bearish Candles: (Default: ON)
  • 2 Consecutive Volume increases Prior to Current Candle: (Default: ON)


Engulfing Pattern Candles
  • Show Engulfing Candles: (Default: ON)
  • Include Candle Wicks in Calculation: (Default: ON)
  • Show Bullish Candles: (Default: ON)
  • Show Bearish Candles: (Default: ON)
  • Use Dojis for Reversed Candles: Typically engulfing candles are compared against candles that are in the opposite direction of the new candle. However, dojis, or candles with small candle bodies and relatively large wicks, can be optionally used to measure against. (Default: OFF)
  • ATR Period 1: We use 2 levels of stochastic calculation to compare against in order to determine if an engulfing candle is valid. This is the shorter period ATR. (Default: 14)
  • ATR Period 2: The 2nd of 2 ATR periods used in a 2-level stochastic calculation that’s used to evaluate valid engulfing candles. (Default: 21)
  • Stochastic Period: The Stochastic Period used for both levels of ATR calculations. (Default: 14)
  • Smoothing: The period used to “smooth” the stochastic curves. (Default: 3)



Calculations

This indicator uses a comparison between relative volume (raw volume compared to its average true range) and relative price action as determined by candle size (specifically, candle size compared to the average true range of the candle size). The ratio between the relative volume and relative price action are compared as a ratio. Once that ratio hits a defined threshold a signal is generated in the form of a bright yellow bar, which we refer to as a “volume hammer”, because of the heavy volume acting on an unmoving object (price).

The indicator also identifies engulfing candle patterns by
  1. Determining the candle body size or full candle size.
  2. Checking to see if there was a reversal of direction, or checking to see if the first candle was a doji (small body with relatively large wicks).
  3. Calculating the stochastic ATR patterns across two periods in order to normalize the ATR behavior for comparison.
  4. Calculating the delta between those stochastic ATRs
  5. Calculating the stochastic patterns of the delta between the stochastic ATRs to add further sensitivity to the comparison between candles.



How to Use

Volume Hammer
When a bright yellow bar appears in the lower window it means that the ratio of relative volume to relative price movement is very high, which indicates that a volatile move will occur within the next candle or so. In this scenario using a small risk that is not much larger than the candle itself can be paired with a large reward/risk ratio when setting a take profit target.

For example, if the body of a candle has a range of less than $0.02 and the full candle is less than $0.10 in range, then a $0.10 stop can be used with the expectation that the large volume will generate a volatile move in one direction or the other. The expected move is generally 3x the size of the full candle, but typically more.

Sometimes, however, that 3x move will reverse and turn into even a larger move in the opposite direction if a key support or resistance level is hit. So, it is very useful to use this indicator with a tool that can identify key support/demand zones and resistance/supply zones such as the Magic Order Blocks [MW] or QQQ and SPY Price Levels [MW] for equities based on the NASDAQ and S&P 500. It can also be combined with indicators that provide upper and lower bounds like Magic Linear Regression Channel [MW], ATR Bands (Keltner Channel) Wick and SRSI Signals [MW], and/or Bollinger Band Wick and SRSI Signals [MW].

Additionally, the bright yellow candles have color-coded indicators that reflect the behavior of preceding volume behavior.
- Orange Dot - 3 consecutive candles of increasing volume
- Green Dot - 3 consecutive candles of increasing volume with a bullish candle pattern
- Red Dot - 3 consecutive candles of increasing volume with a bearish candle pattern
- Blue Dot - 2 consecutive candles of increasing volume followed by a candle with volume that is greater than the starting candle.

These only reflect the volume and candle pattern. They can provide insight, but should not be used as buy or sell signals, especially when encountered at key price levels.

Engulfing Candle Pattern
Frequently, the bright yellow bar in the lower window will be followed by an engulfing candle in the main chart. Engulfing candle patterns can themselves be useful on their own in a market that is not highly volatile. They tend to be indicative of price reversals, or trend continuations following consolidation. Following an engulfing candle, risk can be set at the “far end” of the candle with the expectation that if it does accurately define the direction, then the price will be less likely to go back to the candle’s starting price.


Other Usage Notes and Limitations

Occasionally a large gray bar will appear that is above the relative volume to relative candle size threshold. This indicates that although there is little price movement when compared to the volume, the actual volume is trailing off. This could lead to a quick move in a bullish or bearish direction, but it potentially would not be as sustained as in the case where volume has been consistently rising.

There are also faded yellow bars that appear when volume is increasing when the relative price movement is small. However, when the ratio of the relative volume is not large enough when compared to the price movement (i.e. it does not meet the threshold requirement) its color remains a dim yellow color.

It's important for traders to be aware of the limitations of any indicator and to use them as part of a broader, well-rounded trading strategy that includes risk management, fundamental analysis, and other tools that can help with reducing false signals, determining trend direction, and providing additional confirmation for a trade decision. Diversifying strategies and not relying solely on one type of indicator or analysis can help mitigate some of these risks.
הערות שחרור
v1.01:
  • Added max_lines_count = 500
  • Fixed issue with vertical alignment for signal lines that appear on the chart
candlesCandlestick analysisdojisEngulfing CandleengulfingpatternTrend AnalysisVolume

סקריפט להזמנה בלבד

הגישה לסקריפט זה מוגבלת למשתמשים שהוסמכו על ידי הכותב ובדרך כלל דורשת תשלום. אתה יכול להוסיף אותו למועדפים שלך, אך תוכל להשתמש בו רק לאחר שתבקש אישור ותקבל אותו מהמחבר שלו. למידע נוסף, צור קשר עם mwrightinc, או עקוב אחר הוראות המחבר למטה.

TradingView לא מציעה לשלם עבור סקריפט ולהשתמש בו אלא אם כן אתה סומך ב-100% על המחבר שלו ומבין כיצד הסקריפט עובד. במקרים רבים, אתה יכול למצוא אלטרנטיבה טובה לקוד פתוח בחינם בבסקריפטים הקהילתיים שלנו.

הוראות המחבר

To access this indicator you can: 1. Subscribe at riskmagicpro.com 2. Subscribe at mwrighttrading.com 3. DM us @mwrightinc on TradingView

רוצה להשתמש בסקריפ זה בגרף?

אזהרה: נא לקרוא לפני בקשת גישה.

גם על:

כתב ויתור