One Cancels the Other

 

I know nothing about writing code, but I piece mealed my way through writing my EA. I have one problem, my broker allows hedging, My system needs to open 1 stop order Buy above and one sell stop below the market but only seems to place one side. I think the error is here:

-----> if(Ticket > 0) {

Does this line stop another order from opening?

By the way the

Order = SIGNAL_BUY;

and

Order = SIGNAL_SELL;

Have the same criteria

Any help would help.

Jim

 

Hello Jim

by using button SRC and pasting all your code their or Attach file: you most likely will get meaningful help

Best