Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2016.02.01 09:01
Calc Profit Loss on LinePrice

Calc Profit Loss on LinePrice - expert for MetaTrader 4

| English Español Русский Deutsch 日本語 Português

Published by:
Mikhail Maloyarov
votes: 17

Real author:

Based on the code by Igor V. Kim aka KimIV. Improved the code at the request of many traders.


This Expert Advisor calculates the profit or loss in the deposit currency of all the market orders opened on the current chart, at the desired price of the symbol. The calculations are performed using the horizontal line placed by the trader, with the "LP" name specified in the parameters.

Create a line and rename it to "LP". When the line is moved, the profit/loss is recalculated, the profit/loss is shown for the price where the line is placed.

If MagicNumber is specified, then only the orders with this magic will be considered in the calculation. At MagicNumber -1 any orders of the current symbol will be used for the calculation.


Translated from Russian by MetaQuotes Software Corp.
Original code:

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

LinesProfitLoss LinesProfitLoss

Calculates profit (loss) of the current orders on the symbol.

FFC - Forex Factory Calendar FFC - Forex Factory Calendar

Modified version of FF Calendar Indicator with new features.