Thread: Ask!
View Single Post
  #1100 (permalink)  
Old 05-20-2008, 04:57 AM
sonicdeejay's Avatar
sonicdeejay sonicdeejay is offline
Member
 
Join Date: Apr 2008
Posts: 98
sonicdeejay is on a distinguished road
Quote:
Originally Posted by FerruFx View Post
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
Attached Files
File Type: mq4 SonicStriker_EA_v2.0.mq4 (11.8 KB, 13 views)
__________________
~It's not who I am underneath but, what I do that defines me!!

My FOREX Journal

Last edited by sonicdeejay; 05-20-2008 at 05:02 AM.
Reply With Quote