This simple script is meant to allow the user to select another symbol to add onto their chart and plot the candlesticks for that symbol at the selected resolution requested.
Please see the tooltip provided by the 'Secondary Symbol' input for more details with regards to properly using this script on symbols that have vastly different valuations, it will help with getting the symbol requested to scale properly with the primary symbol on the chart.
The user may also input which colors are used for bullish/bearish candles as well as the symbol itself and its resolution.
IMPORTANT NOTE: THIS SCRIPT DOES NOT ACCOUNT FOR SYMBOLS THAT ARE NOT CONTINUOUS (The defval for the symbol is TVC:DXY which closes on weekends whereas a cryptocurrency like Bitcoin does not stop trading ever; candles on these kinds of markets will be repeated when overlaid onto markets that do not have this property.)