File Write txt - page 2

 
You don't like answering questions - do you.
Keith Watford:

Are you saying that the trades are being placed manually or by another EA ?

 
Keith Watford:
You don't like answering questions - do you.
Keith, the orders are placed by the same EA 
Why you asking me that ?
 
Sanbach21:
Keith, the orders are placed by the same EA 
Why you asking me that ?

Then why don't you simply write the details to the file immediately after the order is placed?

The same question that I asked you in #3 and again in #6. Another question that you did not answer.

Keith Watford:

Why don't you just write to the file after the order is opened?

 
Keith Watford:

Then why don't you simply write the details to the file immediately after the order is placed?

The same question that I asked you in #3 and again in #6. Another question that you did not answer.

Hi Keith , sorry for not answer your old question,
is what I do the function does not write until the order is open, the problem is that it writes every tick until the order is closed
 
Sanbach21:
Hi Keith , sorry for not answer your old question,
is what I do the function does not write until the order is open, the problem is that it writes every tick until the order is closed

It writes every tick because of the illogical way that you have coded it.

An order is sent and completed only once.

So when the order is sent and is succesfull, in the same block of code, write to the file.

That order will only be written to the file once.

Simple and logical.

 
Keith Watford:

It writes every tick because of the illogical way that you have coded it.

An order is sent and completed only once.

So when the order is sent and is succesfull, in the same block of code, write to the file.

That order will only be written to the file once.

Simple and logical.

Ok Keith 

Sooo bad the error I don't know how I don't noticed that …. Hahahaha

if(OrdersTotal()<1)

Now works Perfectly


Thank you very Much !!!

Reason: