strategy to only trade on mondays

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #9325 quote
    HockeytraderHockeytrader
    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
    AdolfoAdolfo
    Participant
    Senior

    Hey! TryĀ this:

    DayofWeek = 1

    Cheers!

    #9331 quote
    grizzlygrizzly
    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
    NicolasNicolas
    Keymaster
    Legend

    Date and time instructions are your friend, please refer to the documentation! šŸ™‚

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

    #9528 quote
    HockeytraderHockeytrader
    Participant
    Junior

    Big thanks.

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

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTimeā„¢ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

strategy to only trade on mondays


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 4 replies,
has 4 voices, and was last updated by HockeytraderHockeytrader
10 years, 3 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 06/13/2016
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...