pivot for date - page 2

 

this code working but dosnt give me past data

i try this one

if (CurTime() >= dDate)

working to expire in future working but dosnt expire in the same day

i need the program to expire for today but working in the past only

 

I keep guessing what you want, show your code please to repair.

 

//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()

{


//------------------------------------------

string expire_date = "2007.11.30";

datetime dDate = StrToTime(expire_date);

if (CurTime() <= dDate)

{
Alert ("You Can check past data only");
return(0);
}

Reason: