Problem Calculate Profits in Open Price (METATRADER 5), Image+code
-
Hello everyone, I have the following problem, when you send orders to buy or sell metatrader 5 and I use the strategy viewer, I execute step by step, sail by candle to check the profits of those orders and their total. These do not correspond. I do not know exactly what is happening. Since if I made a Close of orders when reaching a profit this does not match.

-
-
up thnks! @FXDREEMA
-
?????????
-
I have no idea how those trade buckets work. Maybe trading costs makes the difference.
I would just use a variable and a loop to calculate any information. It's easier to troubleshoot:
https://fxdreema.com/shared/eOts10xOc -
@roar I thought the same. But the profit shown in the graph always has a late candle. This only happens in Metatrader 5. I have tried the order loop and it keeps giving the same error. Thanks for trying to help.