Text on candle stick for points and volume

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

    Good day,

    Can volume movement be added to this code? So two conditions being met and then the text appears.

    1. Example 1. on 5min if the price greater than 10 points and the corresponding volume is greater than 500. If these two conditions are met then a text appears on that candle.

    2. Example 2. Same as above. But instead of the text on the candle, the candle changes to a ‘gold’ colour

    I also attached a code

    Regards,

    Segie

    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
    #94764 quote
    Nicolas
    Keymaster
    Master

    Example 1: (with text)

    DEFPARAM CalculateOnLastBars = 1000
    IF abs(close - open) > 10 * pipsize and volume>500 THEN
       drawtext("***",barindex,high + 10 * pipsize) coloured(0,128,0,255)
    ENDIF
    RETURN

    Example 2: (no text but candlestick in gold color)

    DEFPARAM CalculateOnLastBars = 1000
    IF abs(close - open) > 10 * pipsize and volume>500 THEN
       drawcandle(open,high,low,close)coloured(255,215,0)
    ENDIF
    RETURN
    robertogozzi and segie thanked this post
    #94813 quote
    segie
    Participant
    Senior

    Thank you

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

Text on candle stick for points and volume


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
segie @segie Participant
Summary

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

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