calebsandfort

SPX Fair Value Strategy Ultimate

calebsandfort Telah dikemas kini   
This is a strategy using the SPX Fair Value derived from Net Liquidity.

Net Liquidity function is simply: Fed Balance Sheet - Treasury General Account - Reverse Repo Balance

Formula for calculating the fair value of SPX using Net Liquidity looks like this: net_liquidity/1000000000/1.1 -1625

The SPX Fair Value is then subtracted from the SPX value which creates an oscillating diff value.

When diff is greater than 350, SPX is considered overbought and we go short/sell.

When diff is less than -150, SPX is considered oversold and we cover/buy.

The net liquidity values I calculate outside of TradingView. If you'd like the strategy to work for future dates, you'll need to update them.

Paremeters:

Strategy: Short Only, Long Only, Long/Short

Inverse (bool): check if using an inverse ETF to go long instead of short.

Start After Date: When the strategy should start trading

Close Date: Day to close open trades. I just like it to get complete results rather than the strategy ending with open trades.
Nota Keluaran:
Updating script to use my Net Liquidity Library. Now all you need to do is update the library version when I publish a new version of it
Skrip sumber terbuka

Dalam semangat TradingView yang sebenar, penulis skrip ini telah menerbitkannya dengan menggunakan sumber terbuka supaya pedagang-pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda dapat menggunakannya secara percuma tetapi penggunaan semula kod ini dalam penerbitan adalah dikawalselia oleh Peraturan Dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.

Ingin menggunakan skrip ini pada carta?