Why this program can not work?

 
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.

 
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 ....
 
Because it is not July 2013
 
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.

 
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.