Candlestick/Bar Chart Modification

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

    Hello,

    I would really appreciate some help to change the formula for candlesticks/Barcharts in Prorealtime V10.

    If the close of today’s candlestick is greater than the open the candlestick/bar chart goes green and if it closes lower than the open it goes red. I want it to look at the candlestick of the prior day close. If the current day close is lower than the prior day I want it to show Red and if it is higher than the prior day to show green.

    There seems no way to be able to modify the formula in the settings of the the standard pro-realtime options.
    Many thanks for any support. Unfortunately i am not a programmer.
    kind regards,

    #113425 quote
    Nicolas
    Keymaster
    Master

    Create a new indicator and copy/paste that code into it:

    if close>close[1] then 
    r=0
    g=255
    else
    r=255
    g=0
    endif
    
    drawcandle(open,high,low,close) coloured(r,g,0)
    
    return

    Then apply the new indicator on the price chart. The candlesticks will now be paint in colors according to your conditions.

    #113426 quote
    Hynesjp
    Participant
    New

    Excellent,

    Many thanks Nicolas.

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

Candlestick/Bar Chart Modification


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Hynesjp @hynesjp Participant
Summary

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

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