Integrate optimization code in EA

MQL4 Experts Scripts

Trabalho concluído

Tempo de execução 21 dias

Termos de Referência

Integrate Script (optimization code) into attached SpecialSignal_EA 

****Please see attached SpeicalSignal_EA
****Addiitonal files will be given to the selected freelancer 

  • Add EA wait code when optimization is running
    • This code will stop EA from trading when optimization code is running
  • Add code to run optimization code
    • This code will run optimization code only one time at the start of new bar
  • Add code to set marker on the next optimization
    • If Monthly, set next bar
    • If Quarterly, set next 3 bars
    • If Half_Year, set next 6 bars
    • If Yearly, set next 12 bars
  • Add code to get the following:

If (maxp ≥ maxps)  this code is inside optimization script

{Opt_Result == true}

else     {Opt_Result == false}

  • Add code to set Opt_Result in Smoothed_Profit (EA input parameter)
Smoothed_Profit = Opt_Result

 

New input parameter

ScheduleOptmizer          => Monthly                   = mark next bar; Timeframe = PERIOD_MN1

                                          Quarterly                = mark next 3 bar; Timeframe = PERIOD_MN1

                                          Half_Year               = mark next 6 bar; Timeframe = PERIOD_MN1

                                          Yearly                      = mark next 12 bar; Timeframe = PERIOD_MN1

Start_Year                     = 2013 (default)

 

 

***** Forward testing

Attached EA on chart

EA will be in no trade code

EA run optimization code, then EA set next optimization

EA get optimization result

EA set input for Smoothed_Profit = true/false

EA start trading….

 

Next month….

If ScheduleOptimizer = Monthly

EA will check for open trades

            If there is open trade, EA wait until trade is close

            If no trade, EA run optimization code

EA set next optimization marker

EA get optimization result

EA set input for Smoothed_Profit = true/false

EA start trading….

 

Arquivos anexados:

Respondido

1
Desenvolvedor 1
Classificação
(2)
Projetos
2
0%
Arbitragem
13
8% / 92%
Expirado
1
50%
Livre
2
Desenvolvedor 2
Classificação
(25)
Projetos
36
17%
Arbitragem
14
14% / 57%
Expirado
3
8%
Livre
3
Desenvolvedor 3
Classificação
(1)
Projetos
1
0%
Arbitragem
1
0% / 100%
Expirado
0
Livre
4
Desenvolvedor 4
Classificação
(258)
Projetos
395
28%
Arbitragem
69
19% / 49%
Expirado
120
30%
Livre

Informações sobre o projeto

Orçamento
10 - 50 USD
Desenvolvedor
9 - 45 USD
Prazo
de 1 para 5 dias