TradingView
boitoki
30. Okt. 2021 16:37

N Pattern 

USD/JPYOANDA

Beschreibung

This indicator looks for N patterns on the chart and illustrates them.
It predicts the future point D from the most recent point C and the past points A and B.

Settings:
Pivot Right bar / Pivot Left bar
Pivot settings.

Lookback
Go back a specified number of bars to find point A.
When point A is found, the opposite vertex in between is point B.

Nearest Bars Count
If the most recent C point and the previous C point are too close, the previous C point will be hidden.
Specify the number of bars to determine if they are too close.

Objectives
There are three types of D points, which are future prices.
Each can be shown or hidden.

Support/Resistance
Draw a line extending horizontally from point B as a support line or resistance line.

Versionshinweise

Changed the option "nearest_count"
0: All lines will be visible.
1: Lines with point A in common will be hidden.
2~: Lines with point C in the specified period will be hidden.

Versionshinweise

Changed the calculation of line lengths for support and resistance lines.
It is calculated from the longer of the A-B and B-C periods.

Versionshinweise

  • Added labels "OP" "COP" "XOP"

Versionshinweise

  • Added P point.

Versionshinweise

Codes refactoring

Versionshinweise

  • Migrated to pine script v5
  • Updated the debug messages.

Versionshinweise

  • Added C-P line
Kommentare
Karlozfx7
Hey, bro really awesome script & nice idea. Would want to ask for a permission to work with the code to tweak some stuff for my trading if that would be possible.
Ghebre
Thanks for sharing with the global community. What is the best time frame to trade with.
LDJP
LOVE IT.

And would love if it was possible to edit the FIB levels.
Would happily do it myself if pos.
Any chance to add that feature or make the script public please?
jack-tamara
Big Thanks for sharing this indi bro.
rashiratna1234
Awesome
makerup
Nice one, thumbs up
hungfx
Tôi có thể thử được không?
dos32101
Podría probarlo. Saludos. Gracias
boitoki
If you want to display more lines.
1. Decrease the number of "Nearest bars count".
2.Increase the number of "Valid BC Volume".
branz
@boitoki, just wondering do you know how to set alert in tradingview as to when the point C appear ?
Mehr