Hello all!
I'm looking for a piece of code that calculate the amount of money to put into a trade as a fixed precentage of the account's worst-case balance.
Now, I know the "fx maney management" indicator that was published in the past.
The problem with that code and a lot of other similar indicators, that it is not taking into considaration other open positions.
What I mean is, that if I want to put 1% of my account into a trade, but I already has an open position(s), I want to calculate the amount of money to put into the new trade as a precentage from the account's worst-case-balance ("worst case" = if the existing opened position(s) will hit SL...)
Does anyone know a code to do that (calculating the current worst-case-balance)?
Thanks !
I'm looking for a piece of code that calculate the amount of money to put into a trade as a fixed precentage of the account's worst-case balance.
Now, I know the "fx maney management" indicator that was published in the past.
The problem with that code and a lot of other similar indicators, that it is not taking into considaration other open positions.
What I mean is, that if I want to put 1% of my account into a trade, but I already has an open position(s), I want to calculate the amount of money to put into the new trade as a precentage from the account's worst-case-balance ("worst case" = if the existing opened position(s) will hit SL...)
Does anyone know a code to do that (calculating the current worst-case-balance)?
Thanks !