int start(){ //################################################################# //################################################################# double BarOpenTime; BarOpenTime=TimeCurrent(); Alert(BarOpenTime); //################################################################# //################################################################# return(0);} //################################################################# //################################################################# // Alert OutPut: 2010.08.27 12:50:17 BarTime_2Double EURUSD,M30: Alert: 1282942217 //################################################################# //#################################################################
Speaking more generally, you can cast data types implicitly. For example:
int MyInteger;
double MyDouble = MyInteger;
CB
Why would you want to. TimeCurrent() is a datetime not an int.
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
Good morning,
I need help in
turning BarOpenTime into double value for
next tests.
Can somebody please help me.
Thanks a lot.