How to see current profit?
-
Hi Radoslav, i cannot find a way to print on chart the current profit (or loss) of the current pair. I only get the total current profit on overall account, so if I have open more than one chart of different pairs, I cannot individualize the profit on each chart of these pair. Any idea how to get this and print on chart as comment?
-
Depending on what you mean by "on each chart". I can suggest to try this thing: https://fxdreema.com/demo/mt4-bucket-trades
-
you are a genius.
-
Hi - Thanks for the example. For each of the comments like Profit and total lots how do i restrict the value shown to 2 decimal places ?
-
Hi - Thanks for the example. How do i normalise the values shown as a comment please ?.
-
You can use a "Custom MQL" block with the mql function NormalizeDouble to get the number of decimals you want to show in the variable at "Comment" block
-
@josecortesllobat Thanks for the reply im not sure where this would go in the sequence. Would the custom block go here i am wanting to normalise the the total profit for the bucket of trades ?

-
The NormalizeDouble function needs to be used with a variable that can be normalized. Like this
Variable1 = LotsCount
Variable1 = NormalizeDouble(Variable1,2)That syntax will normalize the variable "Variable1" with 2 decimals. Then you can show the value of "Variable1" in the "Comment" block.
You can get a similar example from here
-
thanks for your help i have managed to get that working..0_1545858873413_1c1f03b6-dc9a-4ef5-99f4-b99447cc9a15-image.png .
-
@hadees Nice!!!
-
Hi there,
I cannot make the print the trades status coments on my MT4. Copied the logic as in the main example, and it does not do anything. Not a single letter. Do I need to enable special permision?