Define variables – candle

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #204218 quote
    Ranjit79Ranjit79
    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
    NicolasNicolas
    Keymaster
    Legend

    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.
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

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 NicolasNicolas
3 years, 10 months ago.

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