Quote:
Originally Posted by FerruFx
Here's for the comment.
FerruFx
|
FerruFx & guru,,
pls refer to t attached....
TIme Filter setting is working well
Quote:
start_time = StrToTime(TimeToStr(TimeCurrent(), TIME_DATE) + " " + Server.Time.To.Start); //---- Date and time to start
end_time = StrToTime(TimeToStr(TimeCurrent(), TIME_DATE) + " " + Server.Time.To.Stop); //---- Date and time to stop
if(Use.Time.Filter)
{
if(TimeHour(TimeCurrent())>=Server.Time.To.Start || TimeHour(TimeCurrent())<=Server.Time.To.Stop)
{
HourT = 1;
}
else
{
HourT = 0;// If the time is not within the set peroid, EA will change to mode 2,which only manage t trade
EA_Mode = 2;
}
}
|
but, the diplay of the status is not...
Quote:
if(!Use.Time.Filter) com = "Off";
if(Use.Time.Filter&&HourT==1)com = "Active";
if(Use.Time.Filter&&HourT==0)com = "Standby";
|
thx
sonic