Text on candle stick

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #94581 quote
    segie
    Participant
    Senior

    Good day,

    Please can you help me.  If a candle stick  for example on Dax opens and closes with a value greater than 10pt  how can I add a text above that candle?

    For example 5min open 11400 then close 11412

    Regards,

    Segie

    #94592 quote
    Nicolas
    Keymaster
    Master

    There are multiple examples here: https://www.prorealcode.com/documentation/drawtext/

    The Y coordinate is in price, the top of a candlestick is the High, obviously 🙂

    segie thanked this post
    #94597 quote
    robertogozzi
    Moderator
    Master

    There you go:

    DEFPARAM CalculateOnLastBars = 1000
    IF abs(close - open) > 10 * pipsize THEN
       drawtext("I'm higher",barindex,high + 10 * pipsize) coloured(0,128,0,255)
    ENDIF
    RETURN
    segie thanked this post
    #94746 quote
    segie
    Participant
    Senior

    Many thanks!

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

Text on candle stick


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
segie @segie Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by segie
6 years, 10 months ago.

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