Capture condition on open of candle only

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #201944 quote
    robdavrobdav
    Participant
    Veteran

    I’m trying to create an indicator that should look at a condition only on the open of the candle and not subsequently.

    I thought I could do something like this:

    if opentime and condition1 then
       drawcandle(open,high,low,close)
    endif
    

    But I’m not sure if this is the correct way to use OpenTime?

    Any help appreciated as always.

    Thanks

    Rob

    #201945 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    You have to compare OPENTIME to some value retaining a valid time:

    if opentime = 100000 and condition1 then
    robdav 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

Capture condition on open of candle only


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
robdav @robdav Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
3 years, 12 months ago.

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