OPEN-SOURCE SCRIPT
SPY vs VIX SMA Slope Alignment (Adjustable Days)

Use this on VIX Chart only.
This indicator compares the SLOPE of the daily SMA of SPY, to the SLOPE of the Daily SMA to VIX
When SPY and VIX are trending UP for the length of time that you define, you will get a GREEN ARROW on the VIX chart showing that the condition has been met.
EXAMPLE:
Set 3 day SMA for VIX and SPY
THEN
Set Look back time to 2 days
---IF SPY 3day SMA AND VIX 3day SMA are both ASCENDING during any 3 day lookback period, a green indicator arrow will be showing on the VIX Chart
DO NOT Use this indicator on SPY Chart
(SPY and VIX have different daily open/close times. This indicator DOES NOT work propertly on SPY Chart. But it DOES work properly on VIX chart. )
This indicator compares the SLOPE of the daily SMA of SPY, to the SLOPE of the Daily SMA to VIX
When SPY and VIX are trending UP for the length of time that you define, you will get a GREEN ARROW on the VIX chart showing that the condition has been met.
EXAMPLE:
Set 3 day SMA for VIX and SPY
THEN
Set Look back time to 2 days
---IF SPY 3day SMA AND VIX 3day SMA are both ASCENDING during any 3 day lookback period, a green indicator arrow will be showing on the VIX Chart
DO NOT Use this indicator on SPY Chart
(SPY and VIX have different daily open/close times. This indicator DOES NOT work propertly on SPY Chart. But it DOES work properly on VIX chart. )
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.