Question about day of the week

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #73205 quote
    jebus89
    Participant
    Master

    Hi all, i want to try something, and i need help coding in this:

    c1 = monday + tuesday have both been green days

    I cant seem to find the codes for it, but i have seen it before.. something like “day of the week = 1” is monday?

    Just wanna make sure i get the correct codes 🙂  Thanks

    edit: bonus question, when PRT is calculating “yesterdays high” does it calculate highest point between 00.01-23.59?

    #73206 quote
    Vonasi
    Moderator
    Master

    I would recommend using opendayofweek. Try this as an indicator and it will tell you all you need to know:

    Return opendayofweek

    I can’t answer your bonus question though!

    Edit: actually I have answered it – put the indicator on a minute chart and see when the number changes.

    #73209 quote
    Nicolas
    Keymaster
    Master

    I changed the topic title, sorry but “Need help with coding, should be easy..” is not an appropriate title… 😐

    #73213 quote
    Vonasi
    Moderator
    Master

    ….oops didn’t even spot that. What a rubbish moderator I am! 🙂

    #73214 quote
    robertogozzi
    Moderator
    Master

    add:

    graph DayOfWeek
    graph OpenDayOfWeek

    to your strategy, so you can check what they return at each bar.

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

Question about day of the week


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
jebus89 @jebus89 Participant
Summary

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

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 06/14/2018
Status: Active
Attachments: No files
Logo Logo
Loading...