What I'm driving at is whether there is an easy way to calculate something like the following...

Lot size = (balance/100)*riskpercent)/stoppips/tickvalue

which is what I have used on mt4 very simply and easily to calculate the position size I need to use in order to risk a set % of my account on each trade of a set stop loss size.