Capture condition on open of candle only

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #201944 quote
    robdav
    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
    robertogozzi
    Moderator
    Master

    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.

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 robertogozzi
3 years, 4 months ago.

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