[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 602

 
Roll:

Test it on a demo, not in a tester.

i.e., run the EA on a demo? and then test it after 1 -2 days? am i correct?
 
Ivn:

i.e., run the Expert Advisor on demo and then check it after 1 -2 days?


There is a one-minute chart.

A script to test the function:

//+------------------------------------------------------------------+
//| script program start function                                    |
//+------------------------------------------------------------------+
int start()
  {TakeScreenShot("проверка"); return(0); }
//+------------------------------------------------------------------+
void TakeScreenShot(string type)
{Print("вызов функции скриншот");int count=1;
if(!GlobalVariableCheck("ssc")){GlobalVariableSet("ssc",1);count = 1;}
else{count=GlobalVariableGet("ssc")+1;
GlobalVariableSet("ssc",count);}
string filename = "MyEA\\" + "MyEA_" + Symbol() + "_" + type + "_" + DoubleToStr(count,0) + ".gif";
WindowScreenShot(filename,640,480);
Print(" скриншотсделан ");} 
 
evillive:

How about this? And for take profit in about the same way...

You can not modify the stop loss order at all in this cycle, and close the order when it reaches the stop level, for DC the order will look like without a stop loss, but is closed by the EA clearly when the stop loss level is passed (sl variable):


evillive, thank you very, very much!!! )))) the first option you gave me has worked),

thank you thank you)))))

 
Please advise please, I want to test me to automatically appear on the screen indicator, in my case the fractals, then how do I prescribe it in the expert? (ie, that I myself when you start a team activated this indicator, rather than I manually connect it every time a new chart), well, or you can link where it is explained, because I have not found something( (Thanks in advance)
 

Thanks evillive for the previous answer, such a small thing and it ruins everything, and most importantly the editor shows the error in another place.

I have a new question:
When testing strategies Simulation Quality is always 25%. And in "Results" Tip first buy, sell, and then one "close at stop" although my EA has no stop at all.
Symbol: EURUSD
pattern:all ticks
period: M1
date 2011.08.01 - 2012.02.29
211282 bars in history
Modelled ticks 9619848

There are 4639110 records in the archive of quotes, minute quotes start from 1999.01.04 10:22
How to improve simulation quality?

 
Why isn't the file attached to the commentary, no spaces or russian letters?
 
griha:

I have a new question:
when testing strategies Simulation Quality is consistently 25%.
Symbol:EURUSD
pattern:all ticks
period: M1

How do I raise the quality of my modelling?

On M1, modelling quality above 25% will not do a tester.
 
Roll:


The minute chart is there...

A script to check the function:


won't work

stands

f-i if (NewBar() == true) //was there a new bar?

//+----------------------------------------------------------------------------+
//| new bar |
//| |
//+----------------------------------------------------------------------------+

bool NewBar()
{
static datetime lastbar = 0;
datetime curbar = Time[0];
if(lastbar!=curbar)
{
lastbar=curbar;
return (true);
}
else
{
return(false);
}
}

and the calculation is based on

PERIOD_M30

 
Ivn:


it won't work

is

f-i if (NewBar() == true) //was there a new bar?

//+----------------------------------------------------------------------------+
//| new bar |
//| |
//+----------------------------------------------------------------------------+

and the calculation is based on

PERIOD_M30


Let the calculation be based on PERIOD_M1.
 
Roll:

Let the calculation be based on PERIOD_M1.

then there will be many unnecessary trades within 30 minutes
Files:
adx.mq4  8 kb