JeroenHouttuin

Cumulative Force, Weighted OBV

Cumulative Force Indicator. Can also be seen as an OBV indicator that takes the price differences into account. In a regular OBV, a high volume bar can make a huge difference, even if the price went up only 0.01, and it it goes down 0.01 instead, that volume makes the OBV go down big time, even though in both cases hardly anything really happened. cForce is a more realistic view on where the money is flowing.

This is my first published script, so feel free to let me know if you see room for improvements.
نص برمجي مفتوح المصدر

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

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

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

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟
////////////////////////////////////////////////////////////
//  Copyright by Playak v1.0 29/01/2015
// Cumulative Force Indicator. Can also be seen as an OBV
// indicator that takes the price differences into account.
// In a regular OBV, a high volume bar can make a huge difference,
// even if the price went up only 0.01, and it it goes down 0.01
// instead, that huge volume makes the OBV go down, even though
// hardly anything really happened.
////////////////////////////////////////////////////////////
study(title="Cumulative Force / Weighted OBV", shorttitle="cForce")
b = input(title="Close relative to open (default is relative to previous close)", type=bool, defval=false)
force = volume * (close - (b ? open: nz(close[1])))
xforce = cum(force)
plot(xforce)