Greetings to all,

1- I'm trying to obtain an EA place a pending order at the beginning of the day daily and receive the EA also delete the pending order if not activated from the end of the same day so I comprised the following code:

//------------------

if(CurTime()==00:00)

//Place the order

//--------------------

if(CurTime()==24:00)

//Combine the order

//---------------------

But my EA is placing the order at 17:00 hour my broker/server time. My broker is FXCM, New York, USA

So is my programming for the time right? Is CurTime() retruns my broker/server time or my PC/local time? And if not right what is the code for it?


2- Anothor query for a different EA that is supposed to put a market order at a specific sign but neglected to do so due to another reason:

Quote:
2009.03.10 15:03:20 '81002849': order sell 0.10 USDJPY opening at 98.404 sl: 98.677 tp: 95.154 neglected [Trade timeout]
2009.03.10 15:00:02 '81002849': petition was accepted by host
2009.03.10 15:00:02 '81002849': instantaneous order market 0.10 USDJPY at 98.404 sl: 98.677 tp: 95.154
Unquote.

Even though I have 3 stage slippage.

Appreciate taking the time to reply.