logic for stock saving and prediction

logic for stock saving and prediction