Proper way of closing out positions at the end of the day
![ns553697](https://secure.gravatar.com/avatar.php?gravatar_id=fdff9c8f5dd9c3d6f1d341e5c1154a53&size=50&default=https%3A%2F%2Fvanillicon.com%2Ffdff9c8f5dd9c3d6f1d341e5c1154a53.png)
I recently realized that I was not properly closing out of my positions, and that this should be done based on market positions rather than internal variables.
I posted a description of the better way and revised my breakout strategy: https://github.com/cloudquantai/closingout_script
Tagged: