TraderLeibniz

SPX Fair Value Bands V2

TraderLeibniz Aggiornato   
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 "
Note di rilascio:
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.
Note di rilascio:
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)
Script open-source

Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzarlo gratuitamente, ma il riutilizzo del codice è subordinato al rispetto del Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.

Vuoi usare questo script sui tuoi grafici?