I will paste the script here below. This is my friend's and he's not too fluent in ThinkScript and neither am I haha. Any pointers here would be much appreciated!
-----------------------------
-----------------------------
-----------------------------
# Load the data for USDJPY, OIL_CRUDE, USDGBP, USDEUR, UVXY, and VIX
input usdjpy = close("USDJPY");
input oil_crude = close("OIL_CRUDE");
input usdgbp = close("USDGBP");
input usdeur = close("USDEUR");
input uvxy = close("UVXY");
input vix = close("VIX");
# Calculate the value of the formula
def value = (usdjpy-1/oil_crude2)/usdgbp/(usdeur0.576)/(uvxy*0.000001)/24000000;
# Create an indicator that shows when there are swaps on interest rates
def swaps_on_interest_rates = if value > 0 then value else 0;
# Alert when there are swaps on interest rates
alert(swaps_on_interest_rates, "Swap alert!", alert.bar, sound.bell);
# Create a signal that shows a buy signal when there are swaps on interest rates
def buy_signal = if swaps_on_interest_rates > 0 then 1 else 0;
# Create a signal that shows a sell signal when there are no swaps on interest rates
def sell_signal = if swaps_on_interest_rates == 0 then 1 else 0;
# Plot the swaps on interest rates indicator
-----------------------------
-----------------------------
-----------------------------
# Load the data for USDJPY, OIL_CRUDE, USDGBP, USDEUR, UVXY, and VIX
input usdjpy = close("USDJPY");
input oil_crude = close("OIL_CRUDE");
input usdgbp = close("USDGBP");
input usdeur = close("USDEUR");
input uvxy = close("UVXY");
input vix = close("VIX");
# Calculate the value of the formula
def value = (usdjpy-1/oil_crude2)/usdgbp/(usdeur0.576)/(uvxy*0.000001)/24000000;
# Create an indicator that shows when there are swaps on interest rates
def swaps_on_interest_rates = if value > 0 then value else 0;
# Alert when there are swaps on interest rates
alert(swaps_on_interest_rates, "Swap alert!", alert.bar, sound.bell);
# Create a signal that shows a buy signal when there are swaps on interest rates
def buy_signal = if swaps_on_interest_rates > 0 then 1 else 0;
# Create a signal that shows a sell signal when there are no swaps on interest rates
def sell_signal = if swaps_on_interest_rates == 0 then 1 else 0;
# Plot the swaps on interest rates indicator