Jump to content

⤴️-Paid Ad- Check advertising disclaimer here. Add your banner here.🔥

time and date indicator for screen capture


Recommended Posts

Guest dave_rimmer
Posted

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

Posted

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

}

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

⤴️-Paid Ad- Check advertising disclaimer here. Add your banner here.🔥

×
×
  • Create New...