Closed Jesus16625 closed 2 months ago
// Create a new instance of the TradingSimulator class $simulator = new TradingSimulator();
// Set simulation parameters $results = $simulator->initialBalance(1000) ->totalTradesCount(10) ->winRate(50) ->riskRewardRatio(2) ->platformFeeRate(0.1) ->enableCompounding(true) ->simulate() ->getResults();
// Display the results var_dump($results);
Description
### InputCode
Output
expected data
Would you like to work on this issue?
Bookmark this repository for further updates. Visit SoloThought to know about recent features.