Download MetaTrader 5
To add comments, please log in or register
You sell neither signals nor apps? No problem, everyone can make profit!
Bruce
30
Bruce 2014.03.31 09:10 
void OnTick()
{
//---
int TicketYear=TimeYear(TimeCurrent());
int TicketMonth=TimeMonth(TimeCurrent());
int TicketDay=TimeDay(TimeCurrent());
if(TicketYear==2013&&TicketMonth==7)
{
Print("My Year is",TicketYear);

}

PS: There is no print in log.

Tjipke de Vries
6286
Tjipke de Vries 2014.03.31 09:17  
19842008:
void OnTick()
{
//---
int TicketYear=TimeYear(TimeCurrent());
int TicketMonth=TimeMonth(TimeCurrent());
int TicketDay=TimeDay(TimeCurrent());
if(TicketYear==2013&&TicketMonth==7)
{
Print("My Year is",TicketYear);

}

PS: There is no print in log.

void OnTick()
{
//---
int TicketYear=TimeYear(TimeCurrent());
int TicketMonth=TimeMonth(TimeCurrent());
int TicketDay=TimeDay(TimeCurrent());
if(TicketYear==2013&&TicketMonth==7)
{
Print("My Year is",TicketYear);
}
Use SRC button....
Might be your broker is not living in juli 2013 ....
Keith Watford
Moderator
8786
Keith Watford 2014.03.31 09:19  
Because it is not July 2013
SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.03.31 09:19  
void OnTick()
{
//---
int TicketYear=TimeYear(TimeCurrent());
int TicketMonth=TimeMonth(TimeCurrent());
int TicketDay=TimeDay(TimeCurrent());
if(TicketYear==2013&&TicketMonth==7)
{
Print("My Year is",TicketYear);

}

Change that to 2014.

Change ticket month too.

Alain Verleyen
Moderator
29469
Alain Verleyen 2014.04.02 15:07  
19842008:
void OnTick()
{
//---
int TicketYear=TimeYear(TimeCurrent());
int TicketMonth=TimeMonth(TimeCurrent());
int TicketDay=TimeDay(TimeCurrent());
if(TicketYear==2013&&TicketMonth==7)
{
Print("My Year is",TicketYear);

}

PS: There is no print in log.

Please don't double post. I have to remove your other topic.
/
To add comments, please log in or register