I scheduel a job on Monday open, record the open price
open
Then I schedule another job on Friday close, get the highest and lowest price in the last week:
highest = max(data.history(symbol, "high", 5,'1d'))
lowest = min(data.history(symbol, "low", 5,'1d'))
Finally I calculate the ratio highest/open, lowest/open
BUT data.history obviously did not consider stock split or merge, so the highest price change dramatically.
How can I calcualte correctly?? Thanks!