Weekly high / weekly low and monthly high / monthly low of the past period?

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

    Hello, if I want to trade the breakout of the range of the past week or the past month … how do I define the high and the low of the past week or the past month?

    #177182 quote
    NicolasNicolas
    Keymaster
    Legend

    Use TIMEFRAME instruction to get the last closed candlestick High and Low, example with weekly timeframe:

    TIMEFRAME(weekly, updateonclose)
    weekhigh = high
    weeklow = low
    Bel thanked this post
    #177183 quote
    phoentzsphoentzs
    Participant
    Master

    Oh, timeframe weekly works? And then weekhigh (1) is the past week?

    #177236 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Yes, TIMEFRAME(Weekly) works finely.

    weekhigh is the high price of the last closed weekly bar. That value will be valid Sunday through Friday next week.

    #177242 quote
    phoentzsphoentzs
    Participant
    Master

    Very good thank you.

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

Weekly high / weekly low and monthly high / monthly low of the past period?


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
phoentzs @phoentzs Participant
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by phoentzsphoentzs
5 years ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 09/10/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...