Account Balance Protection

 

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.

 

Always looking to just break even? or are you wanting it to close after your last watermark>? sounds like a good thought but will you ever profit long term? sometimes you need to let the market run a little negative to eventually get it back into profits

 
fab4x:
Looking for formula to figure out to loose only total gained profit made if your overall trades total goes deep in negative. exampleintial depoist 2000balance 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.

... and what will you do after this first $400 loss. If you trade only with your profits, the very first trade will stop out with the spread at the same second you enter the trade!

FerruFx

Reason: