Text on candle stick

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

    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    segiesegie
    Participant
    Senior

    Many thanks!

Viewing 4 posts - 1 through 4 (of 4 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

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 segiesegie
7 years, 6 months ago.

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