Jump to content

time and date indicator for screen capture


Guest dave_rimmer

Recommended Posts

Guest dave_rimmer

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

Link to comment
Share on other sites

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);

}

Link to comment
Share on other sites

  • 8 years later...
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...