Prepare the totals correctly
For a net calculation, subtract costs from each trade first. Then classify each result as positive, negative or flat. Add positive results and take the absolute negative total. Do not deduct costs a second time from results that are already net.
Check the result
USD 530 in positive net results and USD 420 in losses produce 1.262. Their net balance is USD 110. The ratio alone cannot establish trade count or drawdown. Open the complete CSV example to examine those additional measures.
Zero values remain explicit
Without losses there is no finite profit factor. With neither gains nor losses, there is no result basis. A series with only losing results has a profit factor of zero. The calculator distinguishes these cases explicitly.