I am trying to save images of close prices(PX_LAST) for every 50 days, with an increment of 1 day (eg- chart 1 is from 0-50, chart 2 is from 1-51). Below is my code which ke