Ok, after some hours of code reading, I can ask my question more precisely:
Is there a way for StrToTime to include seconds as well?
If not, the simple_csv2fxt would rather need the time data in datetime (integer) format...
Btw, a line is missing from the script..
Is there a way for StrToTime to include seconds as well?
If not, the simple_csv2fxt would rather need the time data in datetime (integer) format...
Btw, a line is missing from the script..
workaround is
int start() { string s_time1=TimeToStr(LocalTime(),TIME_DATE|TIME_SECONDS); datetime dt_time=StrToTime(s_time1); int i_seconds=StrToInteger(StringSubstr(s_time1,17,2)); string s_time2=TimeToStr(dt_time+i_seconds,TIME_DATE|TIME_SECONDS); Print(s_time1," ",s_time2); }

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
One more questions regarding fxt files:
As I understand, seconds got lost when converting csv tickdata to fxt, because of the StrToTime and TimeToStr functions...
Is the tester/fxt format capable of managing seconds as well, not only minutes?