'Having issues whilst converting from version 4, Syntax error = end of line continuation

I am getting a syntax error whilst trying to copy over and update version 4 pine strategy, however I'm struggling to see what the actual mistake is. I have copied the code below, it gets returned at the below piece of code :The first line is where the error seems to be: Could someone help me to identify the error? Thanks

//calculate position size
    getPositionSize(stopLossSizePoints) =>
       riskAmount = (accountBalance * riskPerTrade / 100)) * (accountSameAsBaseCurrency or accountNeitherCurrency ? conversionCurrencyRate : 1.0)
       riskPerPoint = (stopLossSizePoints * syminfo.pointvalue)
       positionSize = syminfo.type == "Forex" ? ((riskAmount / riskPerPoint) / syminfo.mintick) : 0
       math.round(positionSize)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source