Script Purpose This indicator draws a colored background during the New York trading session. It's useful for traders who want to have a visual overview of when the American (NY) trading session is active. Main Features NY Session Visualization - draws a gray bar in the background of the chart during NY trading hours (15:00-19:00 CET) Customization - allows users to: Set custom session time range Adjust background color and transparency Limit display to only the last 24 hours Input Parameters sessionRange - session time range (default 15:00-19:00 CET) sessionColour - background color (default gray with 90% transparency) onlyLast24Hours - toggle for showing only the last 24 hours (default false) Technical Details Script is written in Pine Script version 5 Uses UNIX timestamp for time period calculations Runs as an overlay indicator (overlay=true), meaning it displays directly on the price chart Uses the bgcolor() function for background rendering Contains logic to check if current time is within defined session Usage This indicator is useful for: Monitoring active NY trading session hours Planning trades during the most liquid hours of the US market Visual orientation in the chart during different trading sessions
진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.