TraderLeibniz

SPX Fair Value Bands V2

TraderLeibniz تم تحديثه   
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 "
ملاحظات الأخبار:
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.
ملاحظات الأخبار:
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)
نص برمجي مفتوح المصدر

قام مؤلف هذا النص البرمجي بنشره وجعله مفتوح المصدر، بحيث يمكن للمتداولين فهمه والتحقق منه، وهو الأمر الذي يدخل ضمن قيم TradingView. تحياتنا للمؤلف! يمكنك استخدامه مجانًا، ولكن إعادة استخدام هذا الكود في منشور تحكمه قواعد الموقع. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟