Integrate optimization code in EA

MQL4 전문가 스크립트

작업 종료됨

실행 시간 21 일

명시

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….

 

응답함

1
개발자 1
등급
(2)
프로젝트
2
0%
중재
13
8% / 92%
기한 초과
1
50%
무료
2
개발자 2
등급
(25)
프로젝트
36
17%
중재
14
14% / 57%
기한 초과
3
8%
무료
3
개발자 3
등급
(1)
프로젝트
1
0%
중재
1
0% / 100%
기한 초과
0
무료
4
개발자 4
등급
(258)
프로젝트
396
28%
중재
69
19% / 49%
기한 초과
121
31%
무료

프로젝트 정보

예산
10 - 50 USD
기한
에서 1  5 일