COMPOUNDING
-
I would like help with my project. 
for the trade manager I set up a way that, based on the balance, invests a percentage and transforms it into lots and the bot starts the trailing stop of open operations at a certain amount of money set with a constant int called Start_Money_profit.
over time the profits increase and this constant remains unchanged therefore trailing is activated at the same amount of money as when the account had hundreds of thousands of usd less.
How can I make this Start_Money_profit constant adaptable to the amount of balance I have available?
or better said, if initially the sizes were 0.01 and the Start_Money_profit started at $50, how can I set my expert so that when the sizes are 0.1 the Start_Money_profit starts at $100?This is the current state of my project.
https://fxdreema.com/shared/PXTjsIBHb
Thanks in advance to anyone who will help me.

-
Try using a Variable instead of a Constant and use the Formula Block to adjust the amount....
Also, unless your trading 0.01 lot on a $100,000 account, Martingale is a death trap waiting to happen....Just saying : D
-
@TradeUnit I agree with morpheus. Just my cent here. Blocks 15 and 24 are not necessary. You can remove them.