Candlestick reference

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #30185 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Screener can be run while a bar is being built, so when I refer to CLOSE[0] it is the current price (the one that would be considered CLOSE at execution time) or is ALWAYS a reference to the previous BAR closed BEFORE the current one?

    Example:

    x = 0
    IF close[0] > close[1] THEN
       x = 1
    ENDIF
    RETURN x
    

    is either:

    a)  the previous closed BAR compared to the second previous closed BAR;

    or

    b)  the current (not yet closed) BAR compared to the previous closed BAR?

    Thank you.

    #30186 quote
    GraHalGraHal
    Participant
    Master

    Hi Robert

    It’s b), but at any instant of a bar the price is Close(0) so if the instantaneous / current price > Close(1) (previous bar Close) then the Screener will pull as meeting criteria.

    Good question, glad you asked!

    Btw you need below (in place of return x) to make a Screener.

    Screener  [x] 

    Cheers
    GraHal

    robertogozzi and Nicolas 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

Candlestick reference


ProScreener: Market Scanners & Detection

New Reply
Author
Summary

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

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 03/28/2017
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...