TradingView script to print dark pool levels using data from Quant Data.
- Support for two configurable tickers
- Volume threshold for levels
- Varying degrees of opacity depending on volume relative to other levels
- Consolidate close by levels and highlight their range
- Access the QD DP Levels script on TradingView and add it to your favorites.
- Add the indicator to your desired chart.
- Create a custom page on Quant Data two
Dark Pool Levels
tools. - Select the desired tickers (usually
SPY
andQQQ
) and an appropriate date range of about 2-3 months. - Add the following bookmark to your browser: Capture QD DP Levels
- Edit the bookmark and replace the URL with the following string, turning it into a bookmarklet:
javascript:(()=>{const{fetch:a}=window;window.fetch=async(...b)=>{const c=await a(...b);return c.clone().json().then(a=>{const b=a?.response?.priceInCentsToDarkPoolLevelDataSumModelMap;if(!b)return;let c=Object.entries(b).map(([a,{sizeSum:b}])=>({priceInCents:parseInt(a),volume:b}));c.sort((c,a)=>a.volume-c.volume),c=c.slice(0,80),c.sort((c,a)=>a.priceInCents-c.priceInCents),window.prompt("QD JSON",JSON.stringify(c))}).catch(a=>console.error(a)),c}})();
- Open the QD DP Levels script settings in TradingView.
- Open Quant Data.
- Click on the bookmarklet you've previously added. This must be done before the next step.
- Access your custom dark pool levels page on Quant Data.
- Two native browser prompts should appear sequentially. Copy the data presented to you and paste it to the according TradingView script settings.
Hide the script on higher time frames by configuring its visibility - daily, weekly and monthly time frames get really busy otherwise.
Please consider boosting the script on TradingView 🚀.