Hello,
How can I get Time of Week?
Thanks!
How can I get Time of Week?
Thanks!
Anywhere I can get free stock charts where I can quickly flick 7 replies
Does anyone know this Indi and where can I can get it? 0 replies
How to get local time (computer time) on MT4? 4 replies
Does anyone know where I can get a real-time Dow Jones avg chart? 10 replies
PeriodSeconds( PERIOD_W1 )
// int _this_Day = TimeDay( Time[0] );
DislikedHuge thanks for your comment @Romiros I highly appreciate that, man. Best luck to you I can get it like below code. PeriodSeconds( PERIOD_W1 ) sorry for the confusion, I meant how can I get Week of Month, or Year? Also I can get Time Day with below code, but I need to get 'Monday, Friday'. // int _this_Day = TimeDay( Time[0] ); If I get code that would be better, big thanks.Ignored
Disliked{quote} MaxEnrik- If you are doing any amount of coding you need to bookmark the MQL4 docs. Its all there complete w/examples. https://docs.mql4.comIgnored
DislikedCyber is correct, you need to check help and then apply a little thought. Anyway this, although not elegant, will do it for you.... string Days[7] = {"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"}; Comment(Days[TimeDayOfWeek(TimeCurrent())]); J.Ignored
DislikedMax... Tried to help you but you are making life difficult! What EXACTLY do you want? I showed you how to get day names. If you want to exclude particular days then just add..... if(TimeDayOfWeek(Time[x]) != 0 && TimeDayOfWeek(Time[x]) != 6) to remove Sat and Sun. Now you re mentioning vLines ... not sure what you are wanting/meaning? J.Ignored
DislikedYes you could but it is more indiscriminate. My way just deletes the objects created by this indi and not those possibly created by others. J.Ignored
int _nameString = StringLen( _prefix ); if(StringSubstr(Obj, 0, _nameString) == _prefix) ObjectDelete(Obj);