Get Last Round Time And Date Acc To TF – script MetaTrader 4

Get Last Round Time And Date Acc To TF - script for MetaTrader 4
This Custom Function Will Help To Get Round Time For Any Given Timeframe And Time. Code :- //+——————————————————————+ //|Get Last Round Time And Date Acc To TF                            | //+——————————————————————+ datetime Get_Last_Round_Time_And_Date_Acc_To_TF(datetime From, int TimeFrame) { int Minutes = ((int)From – (int)(datetime)(TimeToString(From,TIME_DATE)+” 00:00:00″))/60; int Min = Minutes-(Minutes%TimeFrame); string Date = “1970.01.01”; string _Hour_ = (string)((Min-Min%60)/60); string _Minutes_ … Read more