Question about day of the week

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #73205 quote
    jebus89jebus89
    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
    VonasiVonasi
    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
    NicolasNicolas
    Keymaster
    Legend

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

    #73213 quote
    VonasiVonasi
    Moderator
    Master

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

    #73214 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    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.
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

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 robertogozzirobertogozzi
8 years, 3 months ago.

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