franzb0

Hosoda N Wave and TPs {fmz}

franzb0 Updated   
This script allows you to establish in a graphic and interactive way which are the N, NT, V and E targets for a Hosoda N wave.

Apply the indicator to the chart.

The interactive tool of Pine script version 5 will ask you to identify three points of "minimum-maximum-higher minimum" that form a bullish N wave of Hosoda (refer to the specific documentation for Hosoda N wave), or on the contrary three points "maximum-minimum-lower maximum" for a bearish N wave.

Once drawn, the price points can be moved.

When changing the market instrument, the indicator must be removed because it remains linked to the prices where it was first drawn.
Release Notes:
Thank to all guys that asked me to improve this script adding the time part of the theory.

This new version allows from the moment in which the selected points ABC of the N wave are plotted to estimate where the objectives will be reached according to the Hosoda theory both in price and in time.
For the details of the calculation, see the references relating to the Nosoda N wave.
To use it you need to add it to the chart, the chart will ask you to choose three points (minimum-maximum minimum greater for a bullish trend, or maximum-minimum-maximum lower for a bearish trend) from which it will derive the possible targets for Hosoda.
Please check if it works well and report me in the comments if there are any problems, describing in detail the environment in which you are trying it in case you want to make reports.
Release Notes:
Restored lines on target with boolean to hide and show them
Release Notes:
Conditional hide of Tp E date-time if BC>AC, the time target will be before point C. I'm curious about timing rule for choosing ABC point in Hosoda books, Anyone knows? Maybe we ave a AB time smaller than BC? So E target timing will be before C?
Release Notes:
Allows to create a grid on time and price targets. Allows to trim horizontal lines to limit chart cluttering.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?