EA -- OrderSend issue

 

Hi All,

I'm in the beginning stages of writing my EA. The problem I can't seem to resolve is that this EA (as written) only places 1 buy order and 1 sell order and then the OrderSend seems to shut down even though the tick loop continues (evident by the comment and print functions). As written, so far, is a simple MA cross and should place continual orders as the crosses occur.

Any Help would be appreciated, Thanks

Files:
 

It is working for me.

I see that you are using one of my older EAs as a template so it was real easy for me to take a look.

Download another copy of MT4 and test it again.

 

Thanks Maji for the reply. I'm using MT4 build 2.02. It's dated Feb 6, 2007. Is this the latest version and if so, may I ask what broker you are using? It maybe an issue with my broker and we'll ask their techs to look at it.

P.S. Thanks for the temp. I'm fairly new to MT programming and I found this bit of code help me to understand a few things.

Thanks,

SaxMan

Reason: