Candle High in Points

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #37739 quote
    Marius
    Participant
    Average

    I am looking for a code that displays the high of a finished candle in points and “writes” that number on top of a finished candle. I searched for a script like that on this page but could not find it. I habe never learned to script, maybe someone can help? It would be great if that script works on all timeframes, so that it hows me the candle lenght in the hourly and also -example- in the daily chart when switching. I would like to have them permanently in my charts, if possible also historic or at least some weeks or months.

    Thank you in advance.

    #37741 quote
    Marius
    Participant
    Average

    To specify: I need the candle lenght (low to high) in points.

    #37748 quote
    Nicolas
    Keymaster
    Master

    Do you want it to also draw the points range of the candlesticks on the whole history or only on the last closed bar? (the previous one from now).

    #37756 quote
    Marius
    Participant
    Average

    The whole history would be great, or at least 100-200 candles. Thank you for your reply, Nicolas.

    #37808 quote
    Pinny
    Participant
    Junior

    This script does it, on any timeframe:

    CandleHight=high-low
    drawtext("#CandleHight#",barindex,1.1*high,Dialog,Standard,10)
    Return

    but it is, in my view, useless since the “candle hight” numbers overlap if you want them to appear on top of every candle. PRT graphical command set does not support slanted text or 90degrees rotated text. There are few ways around this: (1) not display the number on every bar, (2) display the indicator in a separate window as a bar graph below the price graph – no numbers but very visual, (3) print the numbers at different hight so they do not overlap

    Nicolas and Marius thanked this post
    #37812 quote
    Nicolas
    Keymaster
    Master

    Thanks Pinny, that’s why I asked Marius if he wanted the text to be drawn on every candlestick 🙂

    You can use “range” keyword to get the (high-low) value.

    A quick fix would be to alternate the position of the text: draw the range text one time above the candle and the next time below it. etc.

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

Candle High in Points


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Marius @marius Participant
Summary

This topic contains 5 replies,
has 3 voices, and was last updated by Nicolas
8 years, 8 months ago.

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