Define variables – candle

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #204218 quote
    Ranjit79
    Participant
    New

    Hi,

    I am new to coding, so sorry if this is a silly question…

    I’m looking to set variables for the following, but I can’t figure it out:

    Looking at the first candle of the day (UK, so 8am open) on a 1 hour timeframe chart:

    • Candle open
    • Candle close
    • Candle high
    • Candle low

    Thank you in advance!

    #204222 quote
    Nicolas
    Keymaster
    Master

    Check the time and store the OHLC data into variables:

    if time=080000 then 
     iopen=open
     ihigh=high
     ilow=low
     iclose=close
    endif 
    
    
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Define variables – candle


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Ranjit79 @ranjit79 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
3 years, 2 months ago.

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