mark pending orders wth "p" in the history chart view,
make it more robust during resize, don't crash if calculated window size negative or position off sreen