strategy to only trade on mondays

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #9325 quote
    Hockeytrader
    Participant
    Junior

    Hey guys, simple question here. If i only want a strategy to trade on a specific day of the week, whats the code for that?

    thanks

    #9326 quote
    Adolfo
    Participant
    Senior

    Hey! Try this:

    DayofWeek = 1

    Cheers!

    #9331 quote
    grizzly
    Participant
    Average

    Or, if you want it to only trade mondays from a beginning time (e.g. Market open)  you can use this variable:

    OnlytradeMonday = (currenthour >= 9 and currentdayofweek <= 1)
    #9347 quote
    Nicolas
    Keymaster
    Master

    Date and time instructions are your friend, please refer to the documentation! 🙂

    http://www.prorealcode.com/documentation/category/dateandtime/

    #9528 quote
    Hockeytrader
    Participant
    Junior

    Big thanks.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

strategy to only trade on mondays


ProOrder support

New Reply
Author
Summary

This topic contains 4 replies,
has 4 voices, and was last updated by Hockeytrader
9 years, 7 months ago.

Topic Details
Forum: ProOrder support
Language: English
Started: 06/13/2016
Status: Active
Attachments: No files
Logo Logo
Loading...