OPEN-SOURCE SCRIPT
Advanced OHLC Exporter

This Pine Script indicator provides one-click export of candlestick data (OHLC + Volume) from any TradingView chart. It displays the current candle's values in a clean table while ensuring all visible historical data is available for export in CSV format.
Key Features
📊 Visual Data Display
Real-time OHLC table in the top-right corner.
Color-coded values for quick analysis (green=high, red=low).
Volume shown in standardized formatting.
Data Export Ready
All plotted values appear in TradingView's Data Window.
Right-click → "Export Data" to save:
Open, High, Low, Close (OHLC) prices
Trading volume
Timestamps for each candle
⚙️ Customizable Output
Works on any timeframe (1m to 1M)
Compatible with: Forex, Stocks, Crypto, Futures
How Traders Use This
Technical Analysts - Export clean datasets for external analysis.
Backtesters - Quickly gather historical price data for strategy development.
Researchers - Study candlestick patterns with precise numerical data.
Key Features
📊 Visual Data Display
Real-time OHLC table in the top-right corner.
Color-coded values for quick analysis (green=high, red=low).
Volume shown in standardized formatting.
Data Export Ready
All plotted values appear in TradingView's Data Window.
Right-click → "Export Data" to save:
Open, High, Low, Close (OHLC) prices
Trading volume
Timestamps for each candle
⚙️ Customizable Output
Works on any timeframe (1m to 1M)
Compatible with: Forex, Stocks, Crypto, Futures
How Traders Use This
Technical Analysts - Export clean datasets for external analysis.
Backtesters - Quickly gather historical price data for strategy development.
Researchers - Study candlestick patterns with precise numerical data.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.