SPY to ES / MES

This indicator is helpful when you have price targets for SPY but trade ES or MES futures instead of SPY. It coverts the SPY price targets to ES / MES futures, and draws the SPY VWAP line on your ES / MES chart.
It supports the following lines
- Bullish Above
- Bearish Below
- Long PT1
- Long PT2
- Long PT3
- Short PT1
- Short PT2
- Short PT3
It also converts the SPY VWAP to it's current ES / MES value.
Note: The conversion do not work during pre and after market and the lines are only correct during market hours.
Added a table in upper right corner that shows current price of SPY
Added option to smooth VWAP line.
Added option to select where to place the table on the chart.
Optimized and cleaned up the code a bit.
Increased bullish and bearish price targets to 5
Changed default line size and colors
- Added option to select extended or regular hours. This impacts how VWAP is calculated.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.
Penafian
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.