use iBarShift to transfer datetime to shift
Search for bar by open time. The function returns bar shift with the open time specified.
If the bar having the specified open time is missing, the function will return
-1 or the nearest bar shift depending on the exact.
int iBarShift( | string symbol, int timeframe, datetime time, bool exact=false) |
Thank you sooo much DxdCn!! Exactly what I'm looking for. I come from a C background, does metatrader have a function similar to strcpy(). Since the program requires to check Average true range every day at 1am EST, I need to create a string for variable time = "today's date + 1am EST". Or is there an easier way to do this?
Kind Regards
Andrew
Kind Regards
Andrew
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
Kind Regards
Andrew