Weekly close

It turned out not to be that easy to plot the close of the previous week in hourly or daily charts . In my first experiments things went wrong on Friday or intraday if you simply use the security function. So here is the thing with an algorithm that guaranties the correct value.
Remove from Favorite Scripts Add to Favorite Scripts
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Charting Solutions Help Center Feature Request Blog & News FAQ Wiki Twitter
Profile Profile Settings Account and Billing TradingView Coins My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out