[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 602
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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?
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:
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)))))
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?
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?
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
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.
Let the calculation be based on PERIOD_M1.
then there will be many unnecessary trades within 30 minutes