First In Last Out

Would like to see an option to set my account on a first in last out basis. My strategy relies on averaging down and whenever there is a partial sell, the current system of First In First Out skews the average price of my position in a way I don’t want. It would be better if it sold the most recently acquired amounts.

@balefuleidolon The current default is to calculate a position’s average_entry_price and cost_basis by using FIFO. If you would like to calculate those values based upon soe other calculation such as FILO you would need to calculate that yourself.

There is a project underway to improve the cost basis calcs and that may allow the choice of different methods, but no ETA on when that will be available.