Tendencias FX - Multi-Line with Customizable Offsets
Indicator Description (English)
Name: Tendencias FX - Multi-Line with Customizable Offsets (1x..6x)
This script is a multi-purpose trend-following indicator that calculates a central Moving Average (Mid Line) plus a set of 6 different bands (1x to 6x) above and below that average. Each band is determined by a user-defined ATR length and multiplier. Key features include:
Independent MA Types
Choose different moving average methods for the Mid Line and for the ATR calculation. Available types: SMA, EMA, WMA, RMA, HMA, and ALMA. Separate Lengths
Configure the length of the Mid Line independently from the ATR length. This allows fine-tuning of both the central average and the volatility measure. 6 Customizable Multipliers
Bands are calculated for 1x, 2x, 3x, 4x, 5x, and 6x multiples of the chosen ATR. Each level has its own checkbox in the Inputs tab so you can show or hide them at will. Color Dynamics
The Mid Line automatically changes color to green when its current value is higher than the previous bar’s value, and red otherwise. All upper/lower bands are rendered in a neutral gray (#787b86) for easy distinction. Time Shift (Offset)
An offset parameter allows shifting the entire indicator (Mid Line plus bands) forward (to the right) or backward (to the left) by a certain number of bars. This can help evaluate leads/lags, or compare the past behavior of these lines against future price developments. Check Boxes for Visibility
Checkboxes in the Inputs let you toggle 1x..6x band levels. By default, 1x, 2x, and 3x are visible, while 4x, 5x, and 6x are off. Overlay with Shared Price Scale
The script is set as overlay=true and uses scale=scale.right, so it draws directly on the main chart and shares the same price axis as your candles. This indicator is ideal if you want:
A central MA for trend detection. ATR-based volatility bands (up to 6 multipliers). Full control over the type and length of both the Mid Line MA and the ATR. An optional offset to shift the lines in time for backtesting or forward-projection. Usage Tips
In the Inputs tab, customize: Mid Line length and ATR length independently. MA methods for both Mid Line and ATR (SMA, EMA, WMA, RMA, HMA, ALMA). Band visibility via checkboxes for 1x..6x. Offset for shifting lines in time. In the Style tab, you can further customize colors, line widths, and visibility of each element (Mid line, ±1x..±6x).
In pieno spirito TradingView, l'autore di questo script lo ha pubblicato open-source, in modo che i trader possano comprenderlo e verificarlo. Un saluto all'autore! È possibile utilizzarlo gratuitamente, ma il riutilizzo di questo codice in una pubblicazione è regolato dal nostro Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.
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.