i want to close trade if equity increases. How??
-
-
That condition never will get true unless your Equity is 0. What you want to achieve is to compare equity at a given point in the past with the current equity value. In that case you need to store that euity value in past in a variable and compare it with the current equity.
If there are no other trading actions on the account you may use Account Balance instead as that only changes if profit or loss ir realized.
