NaturalIntelligence / fast-xml-parser

Validate XML, Parse XML and Build XML rapidly without C/C++ based libraries and no callback.
https://naturalintelligence.github.io/fast-xml-parser/
MIT License
2.58k stars 309 forks source link

JdU #674

Closed Jesus16625 closed 2 months ago

Jesus16625 commented 2 months ago

Description

### Input

Code

Include the code being used for parsing

Output

expected data

Would you like to work on this issue?

Bookmark this repository for further updates. Visit SoloThought to know about recent features.

Jesus16625 commented 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);