How do I make an automatic multiple-choice test? - page 3

 
Hoper23 писал (а) >>

No, it uses the bar history as input, looks for an analogy and outputs a corridor. If the analogy and the corridor match, it opens. If there is a force majeure during support - it closes. At least it shows very good results in my demo with small training time.

Cool!

 

Vinin 07.08.2008 14:06
You're getting a pure fit.
Not worth the effort.

Why so... The history of bars is very good stuff. How do you think all the shapes are built? Take "head and shoulders"? Again with the analogy. What about the 123 method? If point 3 is between 1 and 2 more than 50% of point 2 and the closer to 1 the more reliable forecast.... This is also a fitting. This EA uses such cases as ALARM. Who does not agree with me?

 
The question remains - how do I make an endless test of an EA?
 
Hoper23 писал (а) >>
The question remains - how to make the EA endless test?

It is possible to make infinite optimisation by an unused parameter, which will be a counter.

e.g.

extern int Prohod=0;

This parameter is not used anywhere.

Let's disable genetic optimization.

In the EA properties set the required number of runs and run. Approximately all

 
Vinin писал (а) >>

You can do infinite optimisation on an unused parameter, which will be a counter.

e.g.

extern int Prohod=0;

This parameter is not used anywhere.

Let's disable genetic optimization.

In the EA properties set the required number of runs and run. That is approximately all

Yep, I wrote the same, but in a shorter form :).

If the examiner saves the condition in the log, quite a way out.

 
Vinin писал (а) >>

You can do infinite optimisation on an unused parameter, which will be a counter.

e.g.

extern int Prohod=0;

This parameter is not used anywhere.

Let's disable genetic optimization.

In the EA properties set the required number of runs and run. Approximately all

But here's where it stops. I've never dealt with optimization, so tell me more. We put this extenr int Prohod=0 at the beginning of the EA, and value 0 will be the number of runs?

 

Insert this line into the TestCommander script

case 8 : if(ParameterTest()<0){return(-1);}if(Crazy_Cycle(-1,"","","",NameVar,VolumeVar,1,TstReport)<0){return(-1);} break;

and this code

//==========================================================================================================
//============================================= Бесконечный тест ===========================================
//==========================================================================================================
int Crazy_Cycle(int PeriodTime,string StartDate,string StopDate,string Symb,string NameVar[],double VolumeVar[],bool Report,string TstReport[][2]){
   string PerTXT,RepTest,TecTst;
   int err,TimeStartExp,Endstr,pos1,n,k,kr,HandlFileTst;
   int step;
   double id;
   string Info;
   string STime = TimeToStr(TimeLocal(),TIME_DATE)+"_"+TimeHour(TimeLocal())+"."+TimeMinute(TimeLocal()); 
   string RepFile="Crazy_Cycle_"+STime+".csv";
   bool flag = true;  
   Info=GlobVariable("SetNameMTS")+"_"+GlobVariable("SetPeriod")+"_"+GlobVariable("SetSymb")+"_"+GlobVariable("SetTestFromDate")+"-"+GlobVariable("SetTestToDate");
   if(StrToInteger(GlobVariable("Glob_BgColor"))!=0){col=DarkBlue;}else{col=LightSkyBlue;}
   if(Report){
      TextWrite(3,"Программа \"Crazy_Cycle\" \n "+Info+"\n ,бесконечное тестирование \n Результат записывается в файл отчета \n Crazy_Cycle_"+STime+".csv ",col);            //выведем описание программы
   }
   RepTest=Info;
    while(!IsStopped()){
       if(StrToInteger(GlobVariable("Glob_BgColor"))!=0){col=DarkBlue;}else{col=LightSkyBlue;}
       TextWrite(2,"Проход № "+(step+1),col);
       err = OneTest("",Symb,PeriodTime,-1,-1,StartDate,StopDate,0,NameVar,VolumeVar,TstReport);
       if(err<0){return(-1);}
       if(Report){
          TecTst="Тек. Проход: "+step; 
          WriteReport(RepFile,RepTest,TecTst,TstReport);//Запись файла отчета
          RepTest="";
      }
      step++;
   }
return(0);
}

into AutoMacroProg.mqh


and run program no. 8 accordingly

 
Hoper23 писал (а) >>

But here's where it stops. I've never dealt with optimization, so tell me more. We set extenr int Prohod=0 at the beginning of advisor, and value 0 will be number of runs?

They told you about it, parameter Prohod doesn't participate anywhere in the code, but its step is 1, so with GA switched off, you can run EA as many times as you want...

 
I don't like CrazyCycle variable and many other things. Xeon, could you lay out a ready-made variant, because it's a long time to deal with bindings, since you know how to do it, can we reduce the time for the nuisance?
 
Oh fuck, 100,001 pogoin... Why don't you say it in Russian, like StarBar? Let's see if this optimisation saves the right files in the log...