Hello again...
I am really stuck...I'm trying to code an EA that will close a certain percent of a total number of lots. Example: I have positions as follows:
I've tried putting this loop in before and after the exit loop but it doesn't seem to make any difference.
Again I want it to continue closing until it reaches a user defined percent of open lots...then stop and close nothing else. Any Ideas?
I am really stuck...I'm trying to code an EA that will close a certain percent of a total number of lots. Example: I have positions as follows:
- Position 1 = 0.3 lots
- Position 2 = 1.2 lots
- Position 3 = 0.5 lots
- Total = 2.0 lots
I've tried putting this loop in before and after the exit loop but it doesn't seem to make any difference.
Again I want it to continue closing until it reaches a user defined percent of open lots...then stop and close nothing else. Any Ideas?
