balance limit to open operations
-
hello, i want to set negative profit limit to open more trades. My idea is that if the negative profit "Profit (Equity-Balance)" is higher than 5% of the "Balance", do not open more operations

In "Adjust" I write "++" because the value of this variable is negative and to make the comparison I need it positive, I don't know if it is correct to put a double sign ++ to convert the negative value into positive
Also, I would like to take this data and write it on the graph in a comment, how can I do it? the truth is that I'm not good at working with variables
-
@ajmd97fx
Hey i think I think this is what you need to do

-
@seb-0 thanks, I have achieved it by multiplying by -1
*(-1)
this returns any negative value in positive, because my problem was that being the negative value it will always be smaller than a percentage of an integer value

-
@ajmd97fx
Sorry i should have done this configuration
In yours you should reverse the "<" sign if you want the difference to be higher than X% of the Balance -
@seb-0 the reading is as follows: if the current profit is less than 5% -> keep trading
-
@ajmd97fx
This is in the case of a (positive)profit inferior to 5% of the balance
