DayOfWeek

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4752 quote
    JerryJerry
    Participant
    New

    I just can’t get my head around this very simple problem: How do I buy something on a specific day of the week, i.e. monday?

    I found this bad boy: “DayOfWeek[N] “, but I can’t figure it out how to use it…

    Something like

    IF close>open AND DayOfWeek is monday THEN
    
    BUY AT MARKET
    
    ENDIF
    #4754 quote
    NicolasNicolas
    Keymaster
    Legend

    DayOfWeek return a number.

    Try to make a simple indicator like this, and you’ll find yourself what I am meaning :

    RETURN DayOfWeek
    #4871 quote
    JerryJerry
    Participant
    New

    Great, thanks!

Viewing 3 posts - 1 through 3 (of 3 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

DayOfWeek


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Jerry @noren Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by JerryJerry
10 years, 5 months ago.

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