How can i reset var at midnight? I mean if no ticks is coming in for at minute or so then the var will not be reset.
I know this is not the right to do but this is the only way my brain can think of right now. There must be a easier way to do this?
Could it be made without relying on ticks?
I know this is not the right to do but this is the only way my brain can think of right now. There must be a easier way to do this?
Inserted Code
double DayHigh = 0;
double Day2ndHigh = 0;
double DayLow = 0;
double Day2ndLow = 0;
string time_hours = TimeHour(TimeCurrent());
string time_minutes = TimeMinute(TimeCurrent());
string time_seconds = TimeSeconds(TimeCurrent());
if ((time_hours == 00) && (time_minutes == 00) && (time_seconds == 00))
{
//Reset Highs/Lows
double DayHigh = 0;
double Day2ndHigh = 0;
double DayLow = 0;
double Day2ndLow = 0;
} Could it be made without relying on ticks?
Blindly following others will make you blind!