TradingView
NativeD
2021年6月27日午後9時44分

Another symbol MA 

SPDR S&P 500 ETF TRUSTArca

詳細

Compare the MA of another symbol with the MA of the current symbol.
It is good to compare symbols with high correlation.
For example ...
・ Government bond price and government bond interest rate (US10Y)
・ Gold price and US dollar (DXY)

リリースノート

The main changes are as follows.
-Plots can also be displayed for prices.
-Added [Reversal (Another <=> Current)] option.
-Added [Offset] option.
-The current correlation rate and deviation rate can now be displayed in ToolTip.
In addition, color changes, etc.
コメント
theodorewakefield
Hi, this is a great indicator, is it possible to see the source code?
NativeD
@theodorewakefield, Hi :)
I have deleted the source code for this script.
I can't support you anymore.
What do you want to know?
kentangperak
@NativeD, Hello how do you plot another MA into current MA? Can you share that pls?
NativeD
@kentangperak, Hello ^^
This script does not plot the exact MA.
Therefore, the source code has been removed.
However, TradingView is not able to make publicly available scripts private.
We recommend that you do not use it.
kentangperak
@NativeD, Thank you for your reply. Can you share how you convert the price of another symbol? Or a bit of hint if you would?
NativeD
@kentangperak, Some excerpts from the source...

sym = security(<symbol>, "", close)
symRate = mom(sym, 15) / sym[15]
price = (symRate + 1) * close[15]

15 is the length of MA.
詳細