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.