PROTECTED SOURCE SCRIPT
Aggiornato N Pattern

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.
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.
Note di rilascio
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.
Note di rilascio
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.
Note di rilascio
- Added labels "OP" "COP" "XOP"
Note di rilascio
- Added P point.
Note di rilascio
Codes refactoringNote di rilascio
- Migrated to pine script v5
- Updated the debug messages.
Note di rilascio
- Added C-P line
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.