stockmax.cpp