how do you say "don't trade on mondays" in easylanguage?

I have already learned that time zones are very effective and I want to see if this concept can be applied to days of the week as well. How do you tell a system in tradestation "don't trade on this day of the week"? Or even better, how do you say "don't trade on such day of the week at such hour"?
 
DayOfWeek
Returns the day of week (0 for Sun., 1 for Mon., ..., 6 for Sat.) for a calendar date.

if DayOfWeek(Date)<>1 then ;
 
{comment: if today is not Monday}

if DayOfWeek(date) <> 1 then


{comment: if the time is greater than 10 am (chart is local or exchange time) and less than the symbol's ending session time}

if Time > 1000 and Time < Sess1EndTime then



You get the idea...
 
Very good, thank you.

I also used

If CurrentBar > 1 AND DayOfWeekFix(Date) = WhichDay And...


To find out, by optimizing, "WhichDay" of the week was the best, and for my system it's wednesdays. The worst day is indeed monday, but not bad enough to take it out. Wednesday instead seems to be so good that I could just trade the system on wednesdays.
 
What's wrong with trading on Mondays?

I just ran a report on my P/L on Mondays over the last year. Yep, a little less than 1/5 of my gains on Mondays.

nitro :confused:
 
Quote from nitro:

What's wrong with trading on Mondays?

I just ran a report on my P/L on Mondays over the last year. Yep, a little less than 1/5 of my gains on Mondays.

nitro :confused:

My best days are on Sundays and Saturdays...

I'm very consistant...
 
Back
Top