I try to create equation from stock price daily here is my code
your can skip to last # paragraph which I think it is problem