Current Candle Percentage Change

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #28683 quote
    deletedaccount14122020
    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
    Nicolas
    Keymaster
    Master

    Must be something like:

    result = (range/open)*100
    
    return result
    #28686 quote
    deletedaccount14122020
    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.

Current Candle Percentage Change


ProBuilder: Indicators & Custom Tools

New Reply
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by deletedaccount14122020
8 years, 11 months ago.

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