Experts: EMA Cross Contest Hedged - page 3

 
Edviao:
Hello, Vladimir,

I am trying to add a time control function to EA.
After adding the following codes to the input parameters, how in EA to change the codes in which line?

Thanks.



The iRVI Crossing zero Full code should have everything you need.

iRVI Crossing zero Full
iRVI Crossing zero Full
  • www.mql5.com
Советник по индикатору iRVI (Relative Vigor Index, RVI) (полная версия)
 
Vladimir Karputov:

The iRVI Crossing zero Full code should have everything you need.

I have already copied the input parameters from this EA :)
However, just having the input parameters will not be enough for the time control function.

I think that in the EA "EMA Cross Contest Hedged" some lines of code should be changed, except for the input parameters, and I asked what those lines should be (?).

 
Edviao:

I have already copied the input parameters from this EA :)
However, just having input parameters for the time control function will not be enough.

I think that in the EA "EMA Cross Contest Hedged" some lines of code need to be changed except for the input parameters, and I asked what those lines should be (?).

Then here is another example: Super Trend Hull EA 2

... And the lines that check the trading time:

//+------------------------------------------------------------------+
//| Search trading signals|
//+------------------------------------------------------------------+
bool SearchTradingSignals(void)
  {
   if(!TimeControlHourMinute())
      return(true);
Super Trend Hull EA 2
Super Trend Hull EA 2
  • www.mql5.com
Торговая стратегия на основе пользовательского индикатора Super Trend Hull. Доработка первой версии
 
Hello, Vladimir.
With the time control feature When optimising an EA, at what stage would you recommend using this functionality?
As this feature increases the number of combinations that need to be optimised by its very nature.

A) "Time Control = false" is set and the EA is optimised for all parameters.
Once the final result has been determined, the last step is to run "Time Control = true" and evaluate the results of the time optimisation.

B) The EA is optimised "approximately" only for the main and important parameters.
Then the time control is optimised by setting " Time Control = true". Then proceed to optimise other more detailed parameters.

Or your suggestion?
 
Edviao:
Hello, Vladimir.
With the time control feature When optimising an EA, at what stage would you recommend using this functionality?
As this feature increases the number of combinations that need to be optimised by its very nature.

A) "Time Control = false" is set and the EA is optimised for all parameters.
Once the final result has been determined, the last step is to run "Time Control = true" and evaluate the results of the time optimisation.

B) The EA is optimised "approximately" only for the main and important parameters.
Then the time control is optimised by setting " Time Control = true". Then proceed to optimise other more detailed parameters.

Or your suggestion?

It's always individual. You have to experiment.

 
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)"
 

Experts: EMA Cross Contest Hedged

Edviao, 2022.01.25 06:52 pm.

Hello Vladimir.

I know that the logic of "CurrentBar" function in EA has the same function as "SignalsBarCurrent" in Trading Engine v4.010.

My question is: is there any difference in the interpretation of these two functions between Trading Engine v4.010 and Ema Cross EA?
So, which approach gives more realistic results? Is there no difference because the basic logic is the same?