periods: Number of bars used for calculating the moving average and standard deviation. yloc: Chooses the display location (above or below the bars). Moving Average and Standard Deviation:
ma: Moving average of the close price for the specified period. std: Standard deviation, used to set the range for the Sri Yantra triangle points. Triangle Points:
p1, p2, and p3 are the points for constructing the triangle, with p1 and p2 set at two standard deviations above and below the moving average, and p3 at the moving average itself. Sri Yantra Triangle Drawing:
Three lines form a triangle, with the moving average line serving as the midpoint anchor. The triangle pattern shifts across bars as new moving average values are calculated. Moving Average Plot:
The moving average is plotted in red for visual reference against the triangle pattern. This basic script emulates the Sri Yantra pattern using price data, creating a spiritual and aesthetic overlay on price charts, ideal for users looking to incorporate sacred geometry into their technical analysis.
قام مؤلف هذا النص البرمجي بنشره وجعله مفتوح المصدر، بحيث يمكن للمتداولين فهمه والتحقق منه، وهو الأمر الذي يدخل ضمن قيم TradingView. تحياتنا للمؤلف! يمكنك استخدامه مجانًا، ولكن إعادة استخدام هذا الرمز في المنشور يخضع لقواعدقوانين الموقع. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني.
هل تريد استخدام هذا النص البرمجي على الرسم البياني؟
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.