OPEN-SOURCE SCRIPT
SMA Close/High/Low with Input Length

Custom SMA Indicator on TradingView: Close, High, and Low
This TradingView Pine Script indicator plots three Simple Moving Averages (SMAs) on the main price chart using the closing, high, and low prices of the asset. Unlike a standard SMA that considers only the closing price, this indicator gives you insights into the average price behavior from three different perspectives simultaneously.
What It Does
The SMA length is adjustable by the user via an input box, making the indicator versatile for different trading timeframes and strategies.
This TradingView Pine Script indicator plots three Simple Moving Averages (SMAs) on the main price chart using the closing, high, and low prices of the asset. Unlike a standard SMA that considers only the closing price, this indicator gives you insights into the average price behavior from three different perspectives simultaneously.
What It Does
- Calculates a 20-period (default) SMA of the Closing price to show the average trend of closing prices.
- Calculates a 20-period SMA of the High price to track the average upper price movement.
- Calculates a 20-period SMA of the Low price to track the average lower price movement.
- All three lines are overlaid on the price chart for easy comparison.
The SMA length is adjustable by the user via an input box, making the indicator versatile for different trading timeframes and strategies.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
CA Ghansham Joshi,
SEBI Registered Research Analyst - Reg. No. INH000016375.
SEBI Registered Research Analyst - Reg. No. INH000016375.
إخلاء المسؤولية
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
CA Ghansham Joshi,
SEBI Registered Research Analyst - Reg. No. INH000016375.
SEBI Registered Research Analyst - Reg. No. INH000016375.
إخلاء المسؤولية
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.