Convert Tradingview indicator

M

Marcel77

New member
VIP
Hello Traders,

I'm looking for some advise. I'm trying to convert two (great) indicators I have on Tradingview so I can use those on my TOS platform. I'm just not a big tradingview fan and it's kind of annoying having two applications open all the time.

Does anyone know if such a conversion is even possible?

Thank you in advance.
 
M

Marcel77

New member
VIP
Thank you very much for your reply. Hope someone can help me out (I really need to get my head around the coding in TOS).

Here is the indicator:

study(title="On Balance Volume X", shorttitle="OBVX")

fastLen = input(7)
slowLen = input(20)

src = close
obv = cum(change(src) > 0 ? volume : change(src) < 0 ? -volume : 0*volume)
plot(obv, color=lime, title="OBV")

fast = sma(obv, fastLen)
slow = sma(obv, slowLen)
plot(fast, color=white)
plot(slow, color=red)

backgroundColour = iff((obv > fast), iff((fast > slow), lime, green), iff((fast > slow), orange, red))

bgcolor(color=backgroundColour, transp=85)
 
horserider

horserider

Well-known member
VIP
@Marcel77 Try ToS standard study OnBalanceVolumeModified
Just looking at TV code this seems similiar.
 
M

Marcel77

New member
VIP
They are very similar but I was hoping to somehow convert my two favorite indicators to have them available on TOS. Here is my setup on on Tradingview:



On top I have the super trend. The lower ares are the OBVX and OBV delta.

Maybe I just need to live with it.
 
P

Parker427

New member
This would be nice to try. On chart indicator and the OBV delta
 
Top