Here's how it works:
The script creates horizontal lines on your chart to represent the previous day's high, low, close, and VWAP (Volume Weighted Average Price) levels. Each level is color-coded for easy identification – red for the high, green for the low, blue for the close, and yellow for the VWAP. The lines extend to the right edge of the chart, allowing you to gauge where the current price stands in relation to these crucial levels.
But what makes this script unique is its ability to update dynamically with each new trading day. At the start of a new day, the script clears the lines from the previous day and draws new ones based on the latest data. It uses the request.security function to fetch the previous day's data for the current symbol, so you can rest assured that your information is always up-to-date.
There's also an added layer of customization built into this script. We understand that different traders might want to focus on different things, which is why we've included toggle options for each value. You can choose whether to display the previous day's high, low, close, or VWAP values, or any combination thereof. Just head to the settings and switch on/off the values you want to see.
The labels for these lines are placed further to the right of the screen for easy reading, without cluttering your chart. And if you're worried about distinguishing between them, don't be! Each label is color-matched to its corresponding line, so you'll know at a glance which is which.
In summary, the Previous Day Values Indicator is a versatile tool that can help you keep track of key price levels from the past trading day. Whether you're a seasoned trader or a beginner, this script is sure to be a valuable addition to your toolkit. Happy Trading!
Dans le véritable esprit de TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par le règlement. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.