Quote:
|
You're welcome. btw, the original code should have worked, I just re-did it to exclude the use of multiple 'return's (which bugs me!) - are you sure it isn't an OrdersHistoryTotal() problem as described above?
|
Omelette,
I do not understand what you mean by "OrdersHistoryTotal() problem as described above". The problem I have experienced is that the EA would open the wrong position size after a loss.
EX:
1st trade = .1 lot resulting in a loss
then it would open
2nd trade = .3 lots
It should have been .2 lots