Show quotes in a certain date range

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #162574 quote
    pableitorpableitor
    Participant
    Master

    Let’s say that I open the chart of some instruments but I just want to plot a range of dates, that is, I only want to work with the prices between February 1, 2020 to May 1, 2020. Is there a PRT11 menu for this?  If not, would it be possible to make some indicator to do it?

    #162587 quote
    NicolasNicolas
    Keymaster
    Legend

    Possible to do that with an indicator, the below code plot candlestick between 2 dates. Click “hide” on the price settings to disable the default candlesticks of the price chart too.

    start = 20200201
    end = 20200501
    
    if date>=start and date<=end  then 
    drawcandle(open,high,low,close) 
    endif 
    
    return
    pableitor thanked this post
Viewing 2 posts - 1 through 2 (of 2 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

Show quotes in a certain date range


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
pableitor @pableitor Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by NicolasNicolas
5 years, 7 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 02/25/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...