I would appreciate any help with an unexpected problem with my ridiculously simple EA. Here it is:
https://fxdreema.com/shared/TtMS131tc
This is what it does:
- I select a single trade buy pending/ sell pending. I manually specifiy price level.
- I manually select size.
- I manually select pips distance for SL and a partial close.
- Once price reaches the partial close level, the SL is moved to break even and the EA automatically terminates.
- I manually close the remaning trade.
Well, believe it or not, from time to time (and I can't simply understand why) some orders are programmed up to 700 pips away from the manually inserted price!!!
. It works smoothly most of the time, but today i tried a sell pending order at price 6845.3 and the order was programmed at 6155.0!!!
I've checked and rechecked.
Any help will be MUCH appreciated. 




Now an additional difficulty is added and I know I'm close, but not enough. This is my project now (only buy section included):
