Thank you figmentofmyass! This is very helpful!
Do you know by chance, if can I use wighted average instead of FIFO to calculate basis for 2017?
it is hard for me to comprehend how FIFO works because I have 50 or 60 buy/sell transactions...
or is there any simple way to calculate FIFI in case of multiple SELL and BUY transactions?