i wrote this code for get my statement of my signlas. is the calculation correct? the…
- User
i wrote this code for get my statement of my signlas. is the calculation correct? the markets are forex and crypto together:
- Assistant
Your PHP code is designed to process trades and compute a statement of your trading signals for closed Forex and crypto trades. Below are some observations and suggestions regarding the calculations you've implemented, particularly focusing on any areas that require correction or clarification:
- User
i do not have lots per trade. can you give me another way for calculation profits?
- Assistant
If you're not using lots in your trades, you can calculate profits and losses directly based on the percentage change between entry and exit prices, using the entire balance as the basis for your calculations. Here’s a simplified way to compute the profits and losses for each trade: