OPEN-SOURCE SCRIPT
Distance from SMA Display

This indicator shows the percentage distance of the price from a selected SMA (e.g., SMA 20) and uses a red or green emoji to indicate whether the price is above or below that SMA. This makes it easier to spot stocks that are far below the SMA for potential long setups, or far above it for potential short setups. In other words, it provides a quick visual way to identify overextended or underextended price conditions relative to the chosen moving average.
In addition, the indicator can display the percentage distance from the daily SMA 150, which is commonly used to determine the broader trend direction. The main purpose of this is to quickly see whether the higher-timeframe trend is bullish (price above the daily SMA 150) or bearish (price below it), helping traders align short-term opportunities with the overall market trend.
In addition, the indicator can display the percentage distance from the daily SMA 150, which is commonly used to determine the broader trend direction. The main purpose of this is to quickly see whether the higher-timeframe trend is bullish (price above the daily SMA 150) or bearish (price below it), helping traders align short-term opportunities with the overall market trend.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
itamar.e
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
itamar.e
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.