calebsandfort

SPX Fair Value Strategy Ultimate

calebsandfort Обновлено   
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.
Информация о релизе:
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
Скрипт с открытым кодом

В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения. Вы можете добавить этот скрипт в избранное и использовать его на графике.

Отказ от ответственности

Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.

Хотите использовать этот скрипт на графике?