A few questions about this script. How should it be changed so it can be used for intraday pairs trading and is it possible to use tick data or are 1 minute bars the lowest timeframe possible? How can a different exit threshold be added? For example, exiting when the spread touches the mean? And lastly, is it possible to use a time constraint so that the pair is exited by 3:30pm? I would be very grateful for any input on this topic.
Size:
Color:
Size:
Color: