About Hosoda Waves with Price Targets
Unlike Hosoda wave tools that only project targets, Hosoda Waves with Price Targets also measures the waves themselves: how far each one went and how it compares with the last one in the same direction.
How it works
- Swings: a swing high is a high with no higher high for Swing length bars (12 by default) before and after it, a swing low the same way. Swings closer than 0.8 × ATR(14) to the previous swing are ignored. A swing is confirmed Swing length bars after it.
- Wave size: the distance from one swing to the next. The ratio compares a rise with the previous rise and a drop with the previous drop, not with the wave just before it. 1.00× = the same size.
- N wave: a rise A to B, a pullback B to C that stays above A, and C confirmed as a swing low (the reverse for a fall). Converging (P) and widening (Y) swings are not N waves.
- Targets:
V = B + (B − C)
N = C + (B − A)
E = B + (B − A)
NT = C + (C − A)
- Main target: N when the pullback B to C is less than half of A to B, V otherwise.
- Reached: price touched the target. C broken: a bar closed beyond C, so the targets no longer apply.
- The targets stay while the third wave is in progress, until the next swing is confirmed.
On the chart
- Wave lines from swing to swing, green for rises and red for drops. A to B and B to C are thicker, with the letters A, B and C.
- Sizes and ratios on the last two confirmed waves and the forming wave. Earlier waves are lines only. Hover a size to see which wave it is compared with.
- The forming wave: a dashed line from the last swing to the highest high or lowest low since, marked "(forming)".
- Targets as lines to the right: the main target solid with a filled label, the others dashed, for example "V target". Prices are on the price scale.
- When C breaks, the target lines are removed and a gray line at C is marked "C broken".
- Timeframe: shows the waves and targets of a higher timeframe on this chart, from its closed bars only. Its labels start with the timeframe, for example "4h Main target (N)".
- Past N waves to show keeps earlier N waves and the targets they reached.
- Distance unit: Auto (pips on forex and metals, percent on other markets), Pips, Absolute or Percent.
- Show bar counts adds how many bars each wave took, counted Ichimoku style (the start bar is bar 1).
- Every part can be turned off.
Alerts
Create one alert with "Any alert() function call" and check the events in the settings:
- Swing confirmed: HH, LH, HL or LL with the previous swing, for example "Higher low (HL) confirmed at 64566 (previous low 64555)". Swings to alert picks the kinds.
- N wave formed: A, B and C with the main target.
- Target approaching: price came within Approach distance (a percentage of A to B) of a target, for example "Downside N target 64617 approaching: 0.06% away".
- Target reached: price touched a target.
- C broken.
- Forming wave reached the ratio: the forming wave grew to a set ratio of the previous wave in the same direction (1.00 by default), for example "Forming drop reached 0.50× the prior drop (0.25%)".
Targets to alert picks the main target, all four, or one of them. Directions to alert picks Up, Down or Both.
Swing confirmed, N wave formed and C broken are sent right after the bar closes. Target approaching, Target reached and the ratio are sent the moment price gets there. Each event is also in the Condition list as its own alert, for example "Main target reached". Text, or JSON for webhooks. Alerts do not depend on what is drawn on the chart.
Notes
- Confirmed waves and their targets do not move. The last swing can still move to a higher high (lower low) until a swing in the other direction is confirmed, and the forming wave moves with price.
- Target lines are price levels. Their length does not forecast a time.
- The swings and targets match Ichimoku Cloud with the same Swing length.
How to add it
- 1Open the script page on TradingView with the button above (or here).
- 2Click “Add to favorites” on that page.
- 3On any chart, open Indicators, go to Favorites and click Hosoda Waves with Price Targets [Saikix].
First steps on the chart
- Start with the labels: the last two waves and the forming wave show their size and how many times the previous wave in the same direction they are, for example "C · 59.2 pips" and "0.97×". Hover a size to see which wave it is compared with.
- When an N wave forms, the V, N, E and NT targets are drawn to the right. The main target is the solid line with a filled label, for example "Main target (V)": N when the pullback B to C is less than half of A to B, V otherwise.
- In a TradingView alert, use the "Any alert() function call" condition and check the events in the settings: swing confirmed (HH, LH, HL or LL), N wave formed, target approaching, target reached, C broken and forming wave reached the ratio. Target approaching, Target reached and the ratio are sent the moment price gets there.
- To see the waves and targets of a higher timeframe, set Timeframe. It uses that timeframe's closed bars only, and its labels start with the timeframe, for example "4h Main target (N)".