Pay attention to TimeToStr() function
What is 2-digit time?
From your comment
//Comment( m + " minutes " + s + " seconds left to bar end");
it looks like you are trying to make a bar timer.
Comment("Time Remaining: ", TimeToStr( (Time[0]+60*Period()) - TimeCurrent(), TIME_SECONDS));
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
Hello
what should I change this code to display the time in seconds to 2 digit constantly?
double i;
int m,s,k;
m=Time[0]+Period()*60-CurTime();
i=m/60.00;
s=m%60;
m=(m-m%60)/60;
//Comment( m + " minutes " + s + " seconds left to bar end");
thanks