TraderLeibniz

SPX Fair Value Bands V2

TraderLeibniz Cập nhật   
An updated version of the SPX Fair Value Bands script from dharmatech and based on the net liquidity concept by MaxJAnderson.

Now with full customization of parameters through the settings (Dialog Box) and allowing the options to the use of
1) Standard Bands based on Offsets of the Fair Value
2) Bollinger Bands
3) Keltner Channels
to better capture buy/sell areas rather than relying on noisy unreliably (and unevenly) updated data from the Treasury/Fed.

==================================

Net Liquidity's importance in the new post-COVID QE to QT regime as described MaxJAnderson

----------------

" In past cycles, size of Fed's balance sheet changed a lot, while TGA and RRP changed relatively little. So size of balance sheet roughly equated Net Liquidity.

(The Treasury General Account) TGA and (Reverse Repo) RRP didn't matter. They were rounding errors by comparison.
But starting in 2020, relative changes in TGA and RRP have been THREE TIMES LARGER than the change in size of the Fed's balance sheet. As result, changes in TGA and RRP have taken over as the primary drivers Net Liquidity.

This is new, and changes the game significantly. Again - the size of the Fed's balance sheet doesn't matter.
What matters is the portion of it that's available to circulate in the economy (Net Liquidity).

And ever since 2020, the Treasury and Reverse Repo have become what controls that. Not the size of Fed's balance sheet.

----------------

The idea that follows is simple,short when $SPX reaches extreme levels of overvaluation, and close out when SPX returns to being undervalued. Here's the formulas I currently use to determine fair value:

Fair Value = (Fed Bal Sheet - TGA - RRP)/1.1 - 1625
And here's the trading rules I currently follow:

Short when diff of $SPX - Fair Value > 350
Close when diff of $SPX - Fair Value < 150

When one of these rules is triggered upon market close on a given day, trades are entered at open of the following day "
Phát hành các Ghi chú:
Fixed Two Bugs:
  • "netliq_expr" user input string for the "Net Liquidity Expression" configuration was not being used in "request.security(...)" statements.
    "reg_offset" "input.float(...)" title='Regression Slope' was mislabeled.

Improvements:
  • User Configuration Organization with "groups"
  • Multi-timeframe Configurability of the bands under the "Band Timeframe Settings" grouping.
Phát hành các Ghi chú:
Adding band colour controls for each type: Standard (Std) (as defined by Max J. Anderson), Bollinger Band (BB), and Keltner Channel (KC).

The colour can also be configured based on the close of the current bar (or another configurable TradingView allowable bar source arg---including another indicator). The four colours are chosen as follows:
  • if close BELOW Band
  • else close ABOVE Band
  • else close BELOW Fair Value (FV)
  • else close ABOVE Fair Value (FV)
Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?