Looking for formula to figure out to loose only total gained profit made if your overall trades total goes deep in negative.
example
intial depoist 2000
balance 2400.......
gain 20%
total open trades $-400 EA SHOULD CLOSE THE TRADE
Looking this code that will do this logic. I already have the code to close all trades just need the above piece.
example
intial depoist 2000
balance 2400.......
gain 20%
total open trades $-400 EA SHOULD CLOSE THE TRADE
Looking this code that will do this logic. I already have the code to close all trades just need the above piece.