Size every trade by risk, project how an account compounds, and test whether your edge holds up.
Long or short is detected from your stop: a stop below entry is a long, above is a short. Fees are added to the risk, so the position is sized to lose your chosen amount including costs.
Each trade risks a percentage of the current balance, so position size grows and shrinks with the account. Average mode applies your expected edge to every trade; random run plays out actual wins and losses, which shows how bumpy the path can be. Trade cost is your fees and slippage per trade, in R (1R = the amount you risk). A cost of 0.05R on a 1% risk takes 0.05% of the balance off every trade, win or lose.