TradingView
MalsenInvest
11 אוק׳ 2020 10:59

Ratio Between Two Symbols 

Gold/U.S. DollarFXCM

תיאור

This scripts displays the ratio of any two symbols. The ratio is shown on a second chart.
A multiplier may be added to the ratio, and moving average is calculated.

תגובות
ccbill
Hi Malsenlnvest, thanks for sharing this simply but very useful tool. Just want to ask a question. We commonly have many watchlists of stocks. If I have a watchlist of, say 30 stocks, and want to compare them with price of a pre-determined asset, say SPY, is there a script that can do this function? For the one “Ratio Between Two Symbols”, we need to manually input two symbols each time. Is it possible to set the 1st symbol automatically to be the symbol whatever I choose on the watchlist, and the 2nd symbol be the pre-determined symbol, like SPY. If possible, it would be very convenient to just choose up and down in the long long watchlist of stocks and see their price ratio trend with a benchmark asset like SPY quickly. Many thanks.
arteki
@ccbill, Hi, I am looking for the same solution, did you have any luck finding a way to do this?
aglick
@ccbill, any luck finding a solution to this?
SantoDix2023
@ccbill, Dear @ccbill , Could you post if you have figured out how to do this?
onwards_and_upwards
Thanks for sharing the script. it is very useful. Can I please check how did you get the Moving average labels (50, 18, 100, 200) next to their respective lines? Sometimes it is hard to remember which line color represents which moving average so labels come in very handy.

Cheers.
nj1411
i need the ratio between banknifty and nifty and need the macd of that ratio where i can trade according to overbought and oversold ratio.. kindly help accordingly and thanks in advance to experts..
DaddyJones
Hi I'm looking for the ability to average 5 stock symbols and then displaying the result. No time factor just average the value of 5 stocks a a moment in time and graph that.. Does anyone have a way to do that? Thank you very much for you time..
maj
@DaddyJones, only thing close I have seen is S&P 5 by onegreencandle
jema8
thank you so much!!!! you saved my life~!!!!! really nice script!
kstationery
Good job and very useful tool. Is it possible to add Bollinger Bands onto the ratio chart?
עוד