dime

% Median v1

This indicator shows the percentage amount the price is above or below the moving median value of the period.

This indicator is best used along with the moving median (set to the same period).

Based on the moving median developed with 4x4good

نص برمجي مفتوح المصدر

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

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

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

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟
//  % median v1.0
//  Created by dime &  4X4good - 09/04/2016
//  This indicator shows the % that the price is above or below the moving median value of the period.
//  

study(title="% median", shorttitle="% median")
length1 = input(50, minval=1,title="median length")

median = percentile_nearest_rank (close,length1,50)

PCTmedian = (close - median)/median *100
plot(PCTmedian, color=lime, linewidth=2, title="% median")

hline(0, title="Zero Line")