OPEN-SOURCE SCRIPT
Aggiornato

Time Anchored FX Level

115
FX-Anchored Price Level

This indicator anchors a historical price at a specific date and time, and optionally links that anchor to a secondary FX rate to create a dynamic, currency-aware price level.

Thus, e.g. one visualize a past BTCEUR price on a BTCUSD chart now.

At the selected timestamp, the script captures the chart price using the chosen timeframe and price source.
If a secondary ticker is provided (for example, an FX rate), the anchored value is fixed in that secondary currency and then converted back to the chart currency on every bar. The result is a moving level that reflects changes in the exchange rate over time.

If no secondary ticker is set, the indicator behaves as a classic time-anchored price level and plots a constant historical price.

Key features

* Anchor a price to an exact date and time (string input with optional hour offset)

* Optional secondary ticker for FX or cross-rate conversion

* Dynamic level plotted as a series (updates like a moving average)

* User-selectable calculation timeframe and price source (Open, Close, etc.)

* Visual anchor marker at the original timestamp

* Last-bar price label for clear readability

Typical use cases

* FX buyback or re-entry levels after converting proceeds into another currency

* Evaluating historical prices in constant-currency terms

* Comparing past executions to current market conditions

* Anchoring risk or valuation levels across time and exchange rates

This tool is designed for traders who need precise, time-anchored reference levels that remain meaningful as currencies and markets evolve.
Note di rilascio
FX-Anchored Price Level

This indicator anchors a historical price at a specific date and time, and optionally links that anchor to a secondary FX rate to create a dynamic, currency-aware price level.

Thus, e.g. a past BTCEUR price can be viewed on chart in BTCUSD now.

At the selected timestamp, the script captures the chart price using the chosen timeframe and price source. If a secondary ticker is provided (for example, an FX rate), the anchored value is fixed in that secondary currency and then converted back to the chart currency on every bar. The result is a moving level that reflects changes in the exchange rate over time.

If no secondary ticker is set, the indicator behaves as a classic time-anchored price level and plots a constant historical price.

Key features

* Anchor a price to an exact date and time (string input with optional hour offset)

* Optional secondary ticker for FX or cross-rate conversion

* Dynamic level plotted as a series (updates like a moving average)

* User-selectable calculation timeframe and price source (Open, Close, etc.)

* Visual anchor marker at the original timestamp

* Last-bar price label for clear readability

Typical use cases

* FX buyback or re-entry levels after converting proceeds into another currency

* Evaluating historical prices in constant-currency terms

* Comparing past executions to current market conditions

* Anchoring risk or valuation levels across time and exchange rates

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.