I am looking to trade a bunch of currencies with an EA.... I wanted to see if I could edit the money management to fit in my way of thinking
Here is what I am looking for:
checks Account Balance amount (10k)... this is easy to get in code
takes all open positions and calculates their biggest possible loss level (7.5k for this example).... so if it would check other EA's trades as well and I suppose take the sl level of all trades open and calculate how much each could lose.... this would involve some sort of calculator (maybe somebody knows a good out there)
thus the level remaining would be (2.5k) if all open trades are failures
so it would check whether it is possible to open up a trade by checking its max potential loss to make sure that if it failed, the level remaining would be above margin call limits.... if not, it would not open up new trades until it met this requirement
Here is what I am looking for:
checks Account Balance amount (10k)... this is easy to get in code
takes all open positions and calculates their biggest possible loss level (7.5k for this example).... so if it would check other EA's trades as well and I suppose take the sl level of all trades open and calculate how much each could lose.... this would involve some sort of calculator (maybe somebody knows a good out there)
thus the level remaining would be (2.5k) if all open trades are failures
so it would check whether it is possible to open up a trade by checking its max potential loss to make sure that if it failed, the level remaining would be above margin call limits.... if not, it would not open up new trades until it met this requirement