i wrote in my test stratege like below:
int start()
{
Alert(TimeToStr(TimeCurrent()));
return(0);
}
in 5min-10min, stratery test gave not any infomrtion,no lert,no message .
The journal showed me the message "Testgenerator:no ticks generated"
What's wrong?
Your Start() will run only when a tick is generate (when your program receive information) so if you have no tick => no run. See with the parameters you are using to run the tester.
Well Jacques366, that's half the story. But ticks won't help here.
Alert() is one of the functions which is ignored by the strategy tester.
CB
thanks to you 2.
i have change my code like this.
int start()
{
//----
int FOpen;
FOpen=FileOpen("EURUSD5_Open_Test.csv",FILE_CSV|FILE_WRITE|FILE_READ,';');
if (FOpen>0)
{
Alert("Success");
FileWrite(FOpen,Open[0],TimeToStr(TimeCurrent()));
FileClose(FOpen);
}
else
{
Alert("ERR");
}
//----
return(0);
}
still, nothing happened .no alert in realtime,no file created and no data.What's wrong?
when the price changed,a tick will generated,doesn't it???
I don't trigger the expert advisor button.
That's all OK!
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
i wrote in my test stratege like below:
int start()
{
Alert(TimeToStr(TimeCurrent()));
return(0);
}
in 5min-10min, stratery test gave not any infomrtion,no lert,no message .
The journal showed me the message "Testgenerator:no ticks generated"
What's wrong?