Symbol lookup
AmiBroker tickers are translated into TradingView symbols using the selected market and the ticker format.
This page documents how gsTradingView resolves symbols, downloads bars, refreshes live quotes, stores cache files, and handles licensing.
Runtime flow
TradingView data inside AmiBroker
1. Symbol resolution
The plugin maps AmiBroker tickers to TradingView symbols using market-aware rules.
2. Historical download
Bars are downloaded through TradingView's websocket feed and stored in a local cache.
3. Live polling
The last quote is refreshed periodically and applied to the chart so the latest bar stays current.
4. License check
The plugin validates the machine-bound license file before enabling full operation.
Architecture
gsTradingView is a Win32 AmiBroker data plugin. It resolves symbols online, downloads bars from TradingView, stores them in a local cache, and refreshes the latest quote on a timer.
AmiBroker tickers are translated into TradingView symbols using the selected market and the ticker format.
Historical bars are downloaded through the TradingView websocket session and written to the local cache.
A polling thread refreshes the most recent quote every few seconds and updates the chart's current bar when needed.
Repeated requests can be served from disk cache to avoid unnecessary downloads.
The plugin checks the machine code, registered name, issue date, expiry date, and signature from a local license file.
AmiBroker receives status messages and, when supported, a color-coded indicator for ready, loading, and error states.
Dialog settings
auto unless a market must be forced.Polling and updates
The plugin polls TradingView on a timer. It is a periodic refresh, not a raw tick stream, and it updates the last known price plus the current chart bar when needed.
When the market is open
The plugin keeps the most recent bar aligned with the latest price. For daily data, it appends a new bar only when the session really rolls forward.
When the market is closed
No phantom daily candle is created. The last historical bar is updated so the chart still reflects the latest close.
Recommended poll interval
Five seconds is the recommended default. Lower values increase request volume and add pressure on TradingView.
What to expect in logs
You should see live quote success messages and the overlay result. Verbose websocket lines stay hidden unless debug logging is enabled.
Failure checks
No quotes appear
Check the ticker format, market routing, license file, internet access, and the database INI used by AmiBroker.
Wrong market symbol
Use the exchange prefix TradingView expects, for example XETR:DB1 instead of a local alias.
History not adjusting for splits
Use the re-download action after clearing cache. The plugin requests split-adjusted history from TradingView.
License file seems ignored
Make sure gsTradingView.lic is in the AmiBroker Plugins folder and that the machine code matches the current PC.
Symbol lookup, historical bars, local cache, and live refresh are the four main layers.
Use auto market routing, five-second polling, and split-adjusted prices unless you have a specific reason not to.
If a chart looks odd, clear cache and re-download. If the license looks wrong, verify the license file and machine code first.
Runtime summary
Use this page when you need to check symbol routing, cache behavior, polling, or license handling.