Morteza Khorasani: How to calculate the minute elapsed since opening a position
if(TimeMinute(TimeCurrent())-TimeMinute(opentime)>60) { .... } |
That won't work because minutes rolls over at 60. Perhaps you should read the manual. Datetime is seconds. Subtract two you get elapsed time in seconds. if( (TimeCurrent() - opentime)/60 >60) // Open more than 60 minutes
{ .... } |
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
How to calculate the minute elapsed since opening a position
Can this be true:
{
....
}