Which is CLOSE[0] when candle closes

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #185817 quote
    gfxgfx
    Participant
    Average

    Hi all,

    I am getting confused and can’t get my code to work šŸ™‚

    Let’s say TF is ‘1 minute’. Please look at the attached document šŸ™‚

    When the current one minute candle closes, are we in case1 or case 2 ?

    Imagine I want to place an order at the open of the next candle (not yet displayed on graph … )

    shall I write … If Close[0] < Low[1], i.e Case 2,Ā  or If Close[1] < Low[2]Ā  … i.e. Case 1 ?

    I could have asked … what triggers the candle index shift ? Closing of current candle, or opening of the following ?

     

    thks,

    Cases.jpg Cases.jpg
    #185820 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Case 2.

    Just use BUY or SELLSHORT, the trade will open immediately, there’s Ā no need to use old keyword NEXTBAROPEN.

    The candle identified by [0], or nothing, is the last closed candle, which is the current candle until the next one closes.

    gfx and ZeroCafeine thanked this post
    #185836 quote
    gfxgfx
    Participant
    Average

    Thks !

Viewing 3 posts - 1 through 3 (of 3 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

Which is CLOSE[0] when candle closes


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
gfx @gfx Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by gfxgfx
4 years, 8 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 01/18/2022
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...