OPEN-SOURCE SCRIPT

Custom spread

575
This indictor allows you to plot the spread over an arbitrary period, which can be especially useful for futures and other instruments.
Inputs:
Expression : symbols for calculation and arithmetic operation
Period: from to period and timeframe
The output will show bars for the given period
Particularly useful for comparing two selected contracts on two futures

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.