XLNX-AMD arb calc
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © pmok3

//@version=5
indicator("XLNX-AMD arb calc")
amd = request.security("AMD", "1D", close)
xlnx = request.security("XLNX", "1D", close)

arb = ( amd * 1.7234 - xlnx ) / xlnx * 100 
plot(arb)
