Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JdU #674

Closed
2 of 7 tasks
Jesus16625 opened this issue Sep 4, 2024 · 1 comment
Closed
2 of 7 tasks

JdU #674

Jesus16625 opened this issue Sep 4, 2024 · 1 comment

Comments

@Jesus16625
Copy link

Jesus16625 commented Sep 4, 2024

  • Are you running the latest version?
  • Have you included sample input, output, error, and expected output?
  • Have you checked if you are using correct configuration?
  • Did you try online tool?
  • Have you checked the docs for helpful APIs and examples?

Description

Input

Code

Include the code being used for parsing

Output

expected data

Would you like to work on this issue?

  • Yes
  • No

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

@Jesus16625
Copy link
Author

// 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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant