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

Discussion in 'Strategy Development' started by travis, Jun 23, 2003.

  1. travis


    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"?
  2. DayOfWeek
    Returns the day of week (0 for Sun., 1 for Mon., ..., 6 for Sat.) for a calendar date.

    if DayOfWeek(Date)<>1 then ;
  3. {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...
  4. dbphoenix


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

    Dooonnn't traaaade oooonnn Mmmoooonnndaaaayssss.
  5. travis


    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.
  6. 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:
  7. LOL

  8. My best days are on Sundays and Saturdays...

    I'm very consistant...