Current Candle Percentage Change

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #28683 quote
    deletedaccount14122020deletedaccount14122020
    Participant
    New

    Hello,

    I’ve been trying to code the difference between the high and low of the current candle expressed as a percentage of the opening price of the candle

    Example: Open = 69.04, High = 70.52, Low = 68.99 Difference = 1.53

    Difference (1.53) as percentage of Open (69.04) = 2.22%

    Would be very grateful of any help

    Thanks

    #28685 quote
    NicolasNicolas
    Keymaster
    Legend

    Must be something like:

    result = (range/open)*100
    
    return result
    #28686 quote
    deletedaccount14122020deletedaccount14122020
    Participant
    New

    Thanks Nicolas, easy when you know how

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

Current Candle Percentage Change


ProBuilder: Indicators & Custom Tools

New Reply
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by deletedaccount14122020deletedaccount14122020
9 years, 6 months ago.

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