[ADD,IMP]stock:add a pivot graph for stock forecast

[IMP] stock: improve cumulative quntity logic