View Single Post
  #21 (permalink)  
Old 08-13-2008, 12:04 AM
lcfxtrader lcfxtrader is offline
Senior Member
 
Join Date: Feb 2007
Posts: 176
lcfxtrader is on a distinguished road
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
Reply With Quote