Experts: EMA Cross Contest Hedged - page 2

 

Apparently only the EUR/USD can be traded with this EA...or not more than one symbol at a time. 


m

 
Hello Vladimir,

I'm thinking of adding the "Time control" function to this EA.

But I have some doubts about the logic of this function, since the EA works with pending orders.

For example, suppose the parameters are:

"Expiration pending orders (seconds)"= 9000 (second)

"Time control=true"
"Start hour=08"
"end hour=21"

In this scenario, which of the following situations should the "time control" function manage?

A- Checking the time of placing pending orders.

B- Checking if any triggered pending order is within the time frame specified in "time control". (If any triggered pending order is outside the time range specified in the time control, the order is not allowed.)




 
Edviao # :
Hello Vladimir,

I'm thinking of adding the "Time control" function to this EA.

But I have some doubts about the logic of this function, since the EA works with pending orders.

For example, suppose the parameters are:

"Expiration pending orders (seconds)"= 9000 (second) 

"Time control=true"
"Start hour=08"
"End hour=21"


In this scenario, which of the following situations should the "time control" function manage?

A- Checking the time of placing pending orders.

B- Checking if any triggered pending order is within the time frame specified in "time control". (If any triggered pending order is outside the time range specified in the time control, the order is not allowed.)

Option "A" - if we are inside the time range - then you can look for a signal to place a pending order.

 
Vladimir Karputov #:

Вариант "А" - если находимся внутри временного диапазона - значит можно искать сигнал для выставления отложенного ордера.

Спасибо, Владимир, ты снова просветил мой разум!
 
Vladimir Karputov #:

No. This Expert Advisor does not work with pending orders.

Hi Vladimir,
I think there was a mistake in your explanation.
This EA works with pending orders;

"InpExpiration     = 
65535;    // Expiration pending orders (seconds)"
 

Hi Vladimir,
I have a question about the "buffers for the iMA" code block at Ema Cross EA.
Which of the following code blocks is correct/fixed for the Ema Cross EA?



Reason: