Which is CLOSE[0] when candle closes

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

    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
    gfx
    Participant
    Average

    Thks !

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

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 gfx
4 years ago.

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