Isolating the official close not the midnight price

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #219309 quote
    Rufus
    Participant
    Junior

    Hi,

    Is there a simple way to get daily charts to refer to the 16h30 close, say for FTSE?  or the 2100h close for SPX?

    Just asking before I delve into (probably – hopefully!) unnecessarily complicated coding to isolate official closes…

     

    Many thanks for any clues!

     

    Rufus

    #219314 quote
    JS
    Participant
    Senior

    Hi Rufus,

    If you only want to show a price at a certain time, you can use the following as an example…

    DefParam DrawOnLastBarOnly=true
    If OpenTime=163000 then
    x16h30Close=Close
    x16h30Low=Low
    x16h30BarIndex=BarIndex
    EndIf
    
    DrawText("#x16h30Close#", x16h30BarIndex,x16h30Low,SansSerif,Bold,20)
    Return
    
    Rufus thanked this post
    #219319 quote
    Rufus
    Participant
    Junior
    Thanks.. tried adding that by creating a new indicator, but nothing happens! Almost certainly user incompetence… My goal is simply to be able to isolate the daily price at a certain time – say 16h30 – on any time frame and use that price to make projections. The price from IG that DClose(0) refers to is not the real or official close, but the close at 23h59 (as far as I know).
    #219320 quote
    JS
    Participant
    Senior

    Hi,

    You have to add the indicator to the price, click on the price at the top left of the chart and then “add indicator”…

    As for the time frames, the time frame should be able to display your chosen time…

    For example, if your time is 235900 (23h59) then you MUST use a time frame which can display this time so maximum time frame 1 minute…

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

Isolating the official close not the midnight price


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Rufus @rufus-round Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by JS
2 years, 5 months ago.

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