Close After % profit
2 replies
Ryan
2 years ago #280300
Hello, I would like to have a simple block for exit to use in the builder that closes all positions after % of account in profit is reached.
Example: Simply close all open positions when 0.5% of balance is reached.
Balance: $10,000 10,000 x 0.0005 = $5
Open P/L = $5 > CLOSE ALL
thank you for your help.
Ryan
2 years ago #280303
To add info, see the picture. I tried to build this very simply in the algo wizard but it does not work. It only takes one trade. I have martingale MM on and figured it should at least take more than one trade. The algo wizard should work with martingale MM and the exit I have right?
James Colton
2 years ago #280646
If Open P/L > Net Account Value * 0.005 then Close All at market;
is a bit similar to the pseudo code you would be looking for, but you will experience slippage as market orders jump the spread to your detriment.
Have you considered looking for a linear regression, or mean reversion, or momentum breakout solution?
Martingale is a process that works pretty well until it bankrupts you in a single run of bad luck. Think Barings Bank… Founded in 1772 and bankrupted 222 years later on 26 February 1995 by Nick Leeson a 28-year-old Martingale trader.
My best guess is Martingale MM is only available to demonstrate how catastrophic the results are in the long run or because users requested it rather than it being recommended.
0.5% of $10,000 is $50.
Viewing 2 replies - 1 through 2 (of 2 total)