My goal is to have 2 variables, where every 2 seconds they switch off to check the signal. So that if the
signal changes the program can calculate the difference between the value of the original signal versus
the new value of the a new signal. So my question is, what library does Quantopian offer us and what is the best way to write this program with Quantopian's API? Thanks in Advance