Real Author: Based on the code by Igor V. Kim, also known as KimIV, this tool has been enhanced at the request of many traders.
Introducing an Expert Advisor that helps you easily calculate your profit or loss in your account's currency for all market orders currently open on your chart. This tool uses a horizontal line that you, the trader, can place at your desired price point for the symbol you're trading. Make sure to name this line "LP" as specified in the parameters.
Once you've set the line, moving it will automatically recalculate your profit and loss, displaying the figures based on the line's position. It's a straightforward way to keep track of your trades without getting bogged down in complex calculations.
If you specify a MagicNumber, the system will only consider orders associated with that number for its calculations. By setting the MagicNumber to -1, the Expert Advisor will include all orders for the current symbol in its calculations.

Comments 0