채팅을 사용하려면 로그인하십시오.

Calculate true percentage profit

Feb 08, 2023 at 08:39
426 개의 뷰
3 Replies
Jun 21, 2019 부터 멤버   게시물8
Feb 08, 2023 at 08:39
Hello,

Is there a way to calculate the true daily percentage profit by excluding the new deposits/withdraw on the account ?

Actually the API return the daily gain in dollars, not in percentage.

I can calculate it using balance amount.

But balance amount is falsified by new deposit/witdrawals made in the day.

Do you have a solution ?

Thanks
Sep 20, 2022 부터 멤버   게시물21
Feb 20, 2023 at 11:10
Yes, there is a way to calculate the true daily percentage profit by excluding new deposits/withdrawals on the account. Here is a simple formula you can use:

True Daily Percentage Profit = (Net Profit / (Previous Day's Equity - Deposits + Withdrawals)) * 100

In this formula, 'Net Profit' is the amount of profit made on the account during the day, 'Previous Day's Equity' is the equity of the account at the end of the previous day, 'Deposits' is the amount of new deposits made to the account during the day, and 'Withdrawals' is the amount of withdrawals made from the account during the day.

Note that this formula assumes that the only changes to the account balance during the day were due to trading activity, and that any other changes (such as fees or interest payments) are negligible. If there were significant other changes to the account balance during the day, you may need to adjust the formula accordingly.
Empower your trading potential with RoboFxLearning - where knowledge meets success.
Jun 21, 2019 부터 멤버   게시물8
Feb 21, 2023 at 13:33
Thanks a lot for your answer,

The problem is MyFxBook API don't seems to send me the deposit and withdrawals of a specific day ...
Sep 20, 2022 부터 멤버   게시물21
Feb 22, 2023 at 07:43
You should be able to get the orders from MT4 or MT5. Write an MQL script or EA that exports the data you need and compute the report. If you are using MT5, you can actually use python api directly to grab the history and compute a report.
Empower your trading potential with RoboFxLearning - where knowledge meets success.
로그인 / 가입하기 to comment
You must be connected to Myfxbook in order to leave a comment
*상업적 사용 및 스팸은 허용되지 않으며 계정이 해지될 수 있습니다.
팁: 이미지/유튜브 URL을 게시하면 게시물에 자동으로 삽입됩니다!
팁: @기호를 입력하여 이 토론에 참여하는 사용자 이름을 자동으로 완성합니다.