I need that when the system is in maxprofit and an operation fails, the following operations are with half the money, until the system exceeds the maxprofit again
You are not able to partially close an automated trade, it has to be for the total amount, I think it is a broker (IG) restriction rather than a PRT one
Ni partially close operations.
Nexts operations with 50\100 money.
And when the system go to Maxprofit new 100\100 of Money.
if maxprofit>x then
size=2
else
size=1
endif
There you go:
Once MaxProfit = 0
Once InitialSize = 1
MaxProfit = max(MaxProfit,StrategyProfit)
LotSize = InitialSize
If MaxProfit > StrategyProfit Then
LotSize = InitialSize / 2
Endif
Ok Roberto, thanks.
I insert your Code and i say tomorrow.
Much thanks!
Ok boys … a problem.
My system climbs positions, when it gains trades the following trades trades with more, when it loses trades the following trades trades with less.
What I want is that when the system reaches maxprofit, if it loses a trade, it trades with half the money used IN THE LAST TRADE.
And that it operates with half the money that again manages to place itself above the maxprofit.
See if I can explain it.
My system starts trading at € 1 pip.
When you win a trade, the next trade is at € 2 pip, and so on.
But, as in any system, some operations fail.
What I want is that if an operation fails, and for example, that operation was at € 10 pip, the following operations are with half, at € 5 pip in this example, until the system exceeds the drawdown.
Once the drawdown is over, I want it to continue operating where it left off, at € 10 pip in this example.
I think the graphic in the previous post is well specified.
Thanks!
Why not just use some kind of MM that increases and decreases positionsize according to strategyprofit? Why reduce by 50% if it’s only one loss? Might start winning again the next day. I think better to reduce proportionate to the size of the loss. If you lose again, it will go down further, but also go up more gradually without waiting until it clears the drawdown.
Ideas welcome!
Monitor every few days in Live and re-optimise when performance differs from backtest results.
I ‘weed my portfolio’ at least every weekend … even in Demo! 🙂