moved trade simulation code to its own folder
added printing output eq in test mode
fixed a strange bug for an outlier case of empty equity list