You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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);
}