blazko wrote:Hi TCO,
first of all, thanks for this EA. It's been doing miracles so far

I filter signals using CSS and fire it up with STO settings. Works perfect.
Here is one question- Ive tried to do it by myself but failed - would it be possible to add an option for trading hours? Id like to start trading at frankfurt open to NY close only and it would be great to not have switch the whole thing by hand.
Thanks a lot,
Hi blazko & company,
I have been thinking of the same trading time settings ability you mentioned. I run a live account since 25th July and i only use this EA. It is the best EA i have ever handled. I specifically
like trading between London Open and New York close. I have noticed this EA
does particularly well during this times as compared to entries in the Asian sessions
which means have LONDON & NY as ENTRY and Asian purely as Continuation of whatever entries done during LO & NY sessions.
I am not a coder but i stumbled on code snippets by examining another EA. Maybe with TCOs nod
it can be added.
TCO went all quiet but he doesn’t know what he unleashed. Am indebted to him and i thank him
from the bottom of my heart.I hope he resurfaces on stevehopwoods forum coz the kind of nonsense he suffered on other forums where he shared this EA aren’t here.
HERE ARE THE CODE SNIPPETS I CAME ACROSS WITH REGARD TO TRADING TIME SETTINGS and i will be thankful if you share it as i am not a coder just a trader making a sorry attempt at being a conceptualiser.
Under the “//External variables” you can add this ;
extern string Trade.Enable="00:00"; // Enable trading after this time
extern string Trade.Disable="23:59"; // Disable trading after this time
Under the “expert initialization function” you can then add this;
Trade.Enable=ValidateTime(Trade.Enable);
Trade.Disable=ValidateTime(Trade.Disable);
Under the “expert start function” you can then add this;
datetime tEnableTime;
datetime tDisableTime;
still under the “expert start function” you can then add this;
// Check Session time
tEnableTime=StrToTime(TimeToStr(Time[0],TIME_DATE )+" "+Trade.Enable);
tDisableTime=StrToTime(TimeToStr(Time[0],TIME_DATE )+" "+Trade.Disable);
if (giStatus==STAT_IDLE && (Time[0]<tEnableTime || Time[0]>tDisableTime))
return(0);
Maybe one need will also need to declare “giStatus” at “int giStatus” under
the external variables section?
After this maybe also declare “giStatus=STAT_IDLE;” under the
“expert initialization function”?
As for “STAT_IDLE” maybe declare it under “External Variables” too as “(hashtag)define STAT_IDLE 0 “? (this would allude to an idle state and the EA is waiting for a setup bar)
CHeeers!