Chidera Anakpe:
By using "break" you're automatically terminating the function once a deal records profit. You should use "continue" instead so the code goes on to calculate the remaining deals.
By using "break" you're automatically terminating the function once a deal records profit. You should use "continue" instead so the code goes on to calculate the remaining deals.
Hi Friend, Yeah that was this little break;, now it's working great ! problem solved,
Thanks a lot, have a nice day.(y)
Mars Arès:
You're welcome
Hi Friend, Yeah that was this little break;, now it's working great ! problem solved,
Thanks a lot, have a nice day.(y)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi everybody,
I try to create a little money management logic but big in complexity, i searched everywhere, tested couple of things, but nothing now i'm empty.
Maybe i don't found the logic behind it, i explain:
i want to say that,
if it's profit and history consecutivelosses was > 1
then nextlot = all consecutivelosses * multiplier.
i created a function, and a little pat of the MM code: they are here:
And the MM that goes with the function: it's not over i was testing but
In this way, when the condition is true, it double my lot but i want it to double my lot when a profit is recorded.
it's not over, i was testing it but i realise that if i put like this (for example):
In this way nothing happened.
Thanks to everyone, by advance. I wish to all a great day.
Kind Regards.