Drawdown shown as a percentage % on the screen
-
How to make "Drawdown" shown on the screen as a percentage. For example Drawdown: -3%, -10% ...
-
@piotras10000 You can create a variable and the do this calculation:

Then you can visualize the result via 'Comment' block.
-
@l-andorrà You could look at my project the "Formula" block could be so linked ?
-
@piotras10000 I recommnd to use the 'Comment' block on a completely separated tree that should be executed the last on the 'on tick' time. If you use it like that now you will never get the updated value of DD.
On the other hand I see you didn't specify any modification for all variables on blocks 33 and 35. Did you missed them?
-
@l-andorrà Could you explain more about this modification in blocks 33 and 35. Because I don't really understand ???
That's what you meant ?
-
@piotras10000 I have never used math round although I assume it works, I would use DoubleToString(variable,2); although this includes creating a string variable to change into, the comment block already has this function built in, your general logic is wrong, every time you have something making a change (like custom code) the variables need to have a value to start with, if you want a comment to display something from a variable, the variable needs to contain the information.
-
@jstap For me it is also it complicated to get it working properly. Hope someone experienced is here and help.
-
@piotras10000 Put everything in the project how you think it would work, if it still doesn't put the latest shared link here.
-
@piotras10000 Blocks 33 and 35 are not providing any value for those variables. What values are supposed to be there?
-
@l-andorrà In the block 33 and 35, it all works very well.
Besides, I did not ask about these block -
@piotras10000 Block 33 & 35 work well because they do nothing.
-
@jstap Without these blocks, I wouldn't be able to see the data on the screen.
Such as "Balance, Profit, Currency ... Now you understand me? -
@piotras10000 Yes you would because it's other blocks that fill these variables, they display what is created by other blocks and it's just the fact that they are created that allows them to be used.
-
@piotras10000 If they are not necessary, simply remove them. You will still see the results I see your formula block is below the 'comment' block. You should connect it above instead. Otherwise you will never see the updated value of the DD.
-
@l-andorrà Okey thanks
-
@piotras10000 You're welcome.