OPEN-SOURCE SCRIPT
Mis à jour Time Anchored FX Level

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.
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.
Notes de version
FX-Anchored Price LevelThis 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
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.