Guest dave_rimmer Posted June 24, 2009 Report Share Posted June 24, 2009 Looking for a time and date indicator to put on charts prev with current price display! I am currently using a screen capture recording program to catch out my broker and i need the time stamp on chart as proof and so i can rewind fast forward to point of interest thanks Quote Link to comment Share on other sites More sharing options...
profdixi Posted June 28, 2009 Report Share Posted June 28, 2009 Re: Req: time and date indicator for screen capture try this compile to indicator, and attach to chart. you will find picture scereen shot at expert>files folder. enjoy #property indicator_chart_window extern string identification = "ScreenShot"; extern int size.x = 640; extern int size.y = 480; int g_datetime_92 = 0; bool gi_96 = FALSE; string fYear() { return (TimeYear(Time[0])); } string fMonth() { int l_month_0 = TimeMonth(Time[0]); if (l_month_0 < 10) return ("0" + l_month_0); return (l_month_0); } string fDay() { int l_day_0 = TimeDay(Time[0]); if (l_day_0 < 10) return ("0" + l_day_0); return (l_day_0); } string fHour() { int l_hour_0 = TimeHour(Time[0]); if (l_hour_0 < 10) return ("0" + l_hour_0); return (l_hour_0); } string fMinute() { int l_minute_0 = TimeMinute(Time[0]); if (l_minute_0 < 10) return ("0" + l_minute_0); return (l_minute_0); } string fSeconds() { int l_second_0 = TimeSeconds(Time[0]); if (l_second_0 < 10) return ("0" + l_second_0); return (l_second_0); } int start() { int l_datetime_0; if (!gi_96) { l_datetime_0 = iTime(NULL, 0, 0); if (g_datetime_92 == l_datetime_0) return (0); g_datetime_92 = l_datetime_0; gi_96 = TRUE; return (0); } gi_96 = FALSE; string l_str_concat_4 = StringConcatenate(identification, "\\", Symbol(), "\\", Period(), "\\", fYear(), fMonth(), fDay(), "\\"); WindowScreenShot(StringConcatenate(l_str_concat_4, identification, ".", Symbol(), ".", Period(), ".", fYear(), fMonth(), fDay(), ".", fHour(), fMinute(), fSeconds(), ".gif"), size.x, size.y); return (0); } Quote Link to comment Share on other sites More sharing options...
janina21 Posted April 19, 2018 Report Share Posted April 19, 2018 try this compile to indicator, and attach to chart. you will find picture scereen shot at expert>files folder. enjoy #property indicator_chart_window extern string identification = "ScreenShot"; extern int size.x = 640; extern int size.y = 480; int g_datetime_92 = 0; bool gi_96 = FALSE; string fYear() { return (TimeYear(Time[0])); } string fMonth() { int l_month_0 = TimeMonth(Time[0]); if (l_month_0 < 10) return ("0" + l_month_0); return (l_month_0); } string fDay() { int l_day_0 = TimeDay(Time[0]); if (l_day_0 < 10) return ("0" + l_day_0); return (l_day_0); } string fHour() { int l_hour_0 = TimeHour(Time[0]); if (l_hour_0 < 10) return ("0" + l_hour_0); return (l_hour_0); } string fMinute() { int l_minute_0 = TimeMinute(Time[0]); if (l_minute_0 < 10) return ("0" + l_minute_0); return (l_minute_0); } string fSeconds() { int l_second_0 = TimeSeconds(Time[0]); if (l_second_0 < 10) return ("0" + l_second_0); return (l_second_0); } int start() { int l_datetime_0; if (!gi_96) { l_datetime_0 = iTime(NULL, 0, 0); if (g_datetime_92 == l_datetime_0) return (0); g_datetime_92 = l_datetime_0; gi_96 = TRUE; return (0); } gi_96 = FALSE; string l_str_concat_4 = StringConcatenate(identification, "\\", Symbol(), "\\", Period(), "\\", fYear(), fMonth(), fDay(), "\\"); WindowScreenShot(StringConcatenate(l_str_concat_4, identification, ".", Symbol(), ".", Period(), ".", fYear(), fMonth(), fDay(), ".", fHour(), fMinute(), fSeconds(), ".gif"), size.x, size.y); return (0); } Thank you .. was searching for something like this. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.