Plot an indicator at a specific time on the chart

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #81831 quote
    GrantxGrantx
    Participant
    Average

    Good day,

    I have been reading the coding documentation and looking at examples on here but canot find how to plot something at a specific time value. How would I achieve the following pseudo code:

    ————————

    At 08:00 GMT plot a vertical line on the chart.

    At 14:30 GMT plot a vertical line on the chart.

    Plot a horizontal line depicting yesterday High of day

    Plot a horizontal line depicting yesterday Low of day

    —————————–

    I would like the vertical lines to be plotted for yesterdays session, and also new ones projected into todays session. So for example, if I am looking at the chart early morning prior to session open I would like to see the vertical lines already plotted for todays session.

    I can post a picture if this is not clear.

    MAny thanks.

    Grantx

    #81896 quote
    NicolasNicolas
    Keymaster
    Legend

    Ok, let’s do it again 🙂

    All graphical objects instructions are compiled there: Graphical instructions

    To plot a vertical line:

    if time=080000 then 
     drawvline(barindex)
    endif

    To plot an horizontal line at yesterday’s high value:

    drawhline(dhigh(1))
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

Plot an indicator at a specific time on the chart


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Grantx @grantx Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 10/03/2018
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...