To use chat, please login.
Back to contacts

Activating EA

pumpingmonkey
Jan 05 2014 at 06:05
126 posts
-
CrazyTrader posted:
'I have some EA's but I want to activate them on spicific times :

EA A1 on GBPUSD every Monday from 14:00 to 17:00
EA A2 EURUSD every Friday from 14:00 to 17:00 etc ...'



johnnycash posted:

without wanting to interfere, but the pseudo-code was good enough ... better than

if(symbol()=='GBPUSD' && TimeDayOfWeek(TimeCurrent()) == 1 && (hour<14 || hour>17) return(0);

if(symbol()=='EURUSD' && TimeDayOfWeek(TimeCurrent()) == 5 && (hour<14 || hour>17) return(0);



#1) THERE IS A RIGHT PARENTHESIS MISSING IN BOTH OF ABOVE STMTS.

#2) THE BELOW METHOD IS SLIGHTLY MORE GRACEFUL, AND ACTUALLY WORKS PRECISELY AS REQUESTED.


int flag=0;
if(symbol()=='GBPUSD' && TimeDayOfWeek(TimeCurrent()) == 1 && hour>=14 && hour<=17) flag=1;

if(symbol()=='EURUSD' && TimeDayOfWeek(TimeCurrent()) == 5 && hour>=14 && hour<=17) flag=2;


switch(flag)
{
case 1: run(ea1);
break;
case 2: run(ea2);
break;
default: //do something else here...
//either fall thru or break...

}//switch


pumpingmonkey
Jan 05 2014 at 06:14
126 posts
.
.
or, if i wanted to show the code that would be inserted at the top of ea1, it might look like this:

int flag=0;
if(symbol()=='GBPUSD' && TimeDayOfWeek(TimeCurrent()) == 1 && hour>=14 && hour<=17) flag=1;

if(flag==0) return(0);
.
.



pumpingmonkey
Jan 05 2014 at 06:17
126 posts
and, actually, that isnt right either...

tomorrow we fight again.

get up early.

😎

CasholeLTD
Jan 05 2014 at 07:55
24 posts
Pumpingmonkey.. you try too hard...

If you don't have time to trade, let us do it for you!
TheSmokedAce
Jan 05 2014 at 07:56
67 posts
Im so sorry to hear that its hard for you to well get hard...
I know you are a frustrated little man who wants people to only praise him, but not give opinions that stray away from your diluted way of thinking.
You want people to sit on your board of directors, dude your 'company' has made less than 70$, and the reason you dont want to show results, is bc the equity curve is UGLY... I have been reading your thoughts... ur a keyboard bully, who wishes he was a great trader...

Have fun driving your lambo.... I didnt know hotwheels came out with a lambo

Your buddy

pumpingmonkey
Jan 05 2014 at 15:05
126 posts
KEEP PLAYING CHILDISH WORD GAMES.

I WILL KEEP TRADING.

SIT STILL AND WAIT TO SEE WHO WINS FIRST.

BUNCH OF DUMB BUNNY SCRIPT KIDDIES.

TRADING CONTINUES IN EIGHT HOURS.

Z/.
.
.

.
.

pumpingmonkey
Jan 05 2014 at 15:12
126 posts
FYI, THEY BEGAN HATING ON ME AT THE OANDA FORUM WHEN I REFUSED TO SHARE MY SOFTWARE WITH THE OTHERS IN THE FORUM...

CAN WE SEE YOUR WORK, THEY ASKED ME...

I WOULD RATHER NOT, WAS MY RESPONSE.

THEY QUICKLY INFORMED ME THAT IF I HAD NO INTENT TO SHARE MY WORK AND TO BE A PART OF THE CROWD THAT I DID NOT BELONG IN THEIR FORUM.

AND THEN MY ACCOUNT AT THEIR FORUM WOULD BE CANCELLED AND I WOULD JUST KEEP COMING BACK.

PHK THEM.

NOTICE THAT SO MANY THINK THAT THIS TRADING FORUM STUFF IS ALL ABOUT THE SHARING AND SELLING OF EAS.

MY EA IS FOR SHARING WITH NONE OF YOU.

YOU GET NOTHING.

NOTHING FOR YOU.

NO SOUP FOR YOU.

ZERO//.

pumpingmonkey
Jan 05 2014 at 15:16
126 posts
NOTICE HOW I REMAIN FOCUSED ON THE SUCCESS OF MY WORK.

NOTICE ALSO HOW THEY KNIT PICK ABOUT SEMANTICS AND OTHER BULLSHT.

NOTICE HOW THEY BTCH ABOUT ENTIRE BULLSHT.

I FOCUS ON SUCCESS.

I FOCUS ON SUCCESS.

ZERO/.
.
.

pumpingmonkey
Jan 05 2014 at 15:18
126 posts
TheSmokedAce posted:
Im so sorry to hear that its hard for you to well get hard...


MY POINT EXACTLY.

CrazyTraderfx (CrazyTrader)
Jan 05 2014 at 16:36
1718 posts
pumpingmonkey posted:

I WILL KEEP TRADING.

SIT STILL AND WAIT TO SEE WHO WINS FIRST.




Lol... trading is not about winning first...but just last forever.

Why you spam forum if you are here not to share anything with anyone? Just talk to yourself then.

Why do you keep saying 'market will open in x hour' Do you really think we rely on you to know that.

You're getting funy.

Ps:
I will keep trading
So you know, market opens soon : )

Please login to comment .