OPEN-SOURCE SCRIPT

SPY to ES or QQQ to NQ

By kfatkin
Updated
This indicator is used to automatically map SPY VWAP and 10 levels of your choice to ES/MES or map QQQ VWAP and 10 levels of your choice to NQ/MNQ. Since SPY and QQQ have the same price action as their futures iteration, there seems to a direct correlation between their levels and VWAP. This indicator is made to easily map the key levels of your choice to the appropriate futures instrument.
Release Notes
Added in input groupings, adding in standard futures VWAP so a separate indicator isn't needed and changed default colors.
Release Notes
Modified the script to only require the opening price of SPY or QQQ, rounded to the nearest whole number, to be input (default value is 370). The script will now calculate the 10 closest strikes/levels above and below the specified price and automatically plot them on ES or NQ based on the ETF chosen. Also, reduced the default line sizes.
Release Notes
Fix input groups, change level titles.
ESGEXMESmnqNQPivot points and levelsQQQSPDR S&P 500 ETF (SPY)

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer