PipFoundry

Pip Foundry - Simple OBV

My premium indicators are available for monthly lease at www.tradingview.com/...arket/ah-pipfoundry/

On request from SunnyBTC for trading Forex pairs that do not themselves have any volume indication.

The concept: A simple OBV that will display the volume of a security other than what you are charting.

Edit: This script has been updated.
סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יכולים להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אך שימוש חוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.

רוצה להשתמש בסקריפ זה בגרף?
//Pip Foundry - Simple OBV
study(title="Pip Foundry - Simple OBV", shorttitle="Pip Foundry - Simple OBV")
SecInput = input(defval="FX_IDC:EURUSD", title="Security Volume", type=symbol, confirm=true)
VolSrc = security(SecInput, period, volume, false)
src = security(SecInput, period, close, false)
obv = cum(change(src) > 0 ? VolSrc : change(src) < 0 ? -VolSrc : 0*VolSrc)
plot(obv, color=blue, title="OBV")