Tell my EA to not trade on NFP day!

 

I've been using an EA (ichimoku5_1) and it was doing GREAT until today. How can I tell an EA to not take positions on the first friday of the month? Is there an easy way to make that an input?

 

pls post ea

then someone will try fix it.

 
GoatT:
I've been using an EA (ichimoku5_1) and it was doing GREAT until today. How can I tell an EA to not take positions on the first friday of the month? Is there an easy way to make that an input?

turn it off??

Well your EA sounds good, mind to share it's performance?

 
GoatT:
I've been using an EA (ichimoku5_1) and it was doing GREAT until today. How can I tell an EA to not take positions on the first friday of the month? Is there an easy way to make that an input?

In the beginning of the code (where the settings of EA) you may write:

extern int NonTradeDay=5;[/CODE]

And after this

int start(){

if(Bars<100){

Print("bars less than 100");

return(0);

}

you may place the following:

[CODE]if (DayOfWeek() == NonTradeDay ) return(0);

I hope that it will work.

 

first friday of month

Great response newdigital.

For the first friday only though I think you will need the following.

if ((DayOfWeek() == NonTradeDay) && (Day()<8)) return(0);

If you are willing to share the ea - it would be appreciated.

 

Time Management

Phoenix has Time management, you can chose the time to trade and step aside..

Reason: