After you file

You should amend the 2017 return before carrying your loss to 2018.  There could be factors in your 2017 return that affect the amount of your carryover to 2018.