DRAW A MARK ON FRIDAYS

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

    Hi I would like to receive some basic help. How can I draw the candle of fridays using a diferrent colour ( on daily TF)

    I don’t mind using a mark a line or whatever, some sign that shows me in a daily tf that the candle plotted represents the close of friday session.

    I do know It´s something ridiculous but don’t know how to do it.

    Thnaks you so much in advance. Luigi

    #242804 quote
    JC_Bywan
    Moderator
    Master

    An example of code if wanting just a simple vertical black line:

    IF opendayofweek=5 THEN
     DRAWVLINE(barindex)
    ENDIF
    
    RETURN

     

    Or, another example if wanting to draw a candle highlighted by its color, let’s say blue if close at least equal to open, and yellow if close below open (assuming these 2 colors are not the main ones on your chart, like green&red, or white&black…)

    IF opendayofweek=5 THEN
     if close>=open THEN
      DRAWCANDLE(open, high, low, close) coloured("blue")
     ELSE
      DRAWCANDLE(open, high, low, close) coloured("yellow")
     ENDIF
    ENDIF
    
    RETURN

     

    Other things can be done such as drawing arrows above or below or both, etc…

    Iván González thanked this post
    #242830 quote
    daxvader70
    Participant
    New

    Thank you so much JC , that’s what I was expecting….. very visual.

    Kind regards, Guille

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

DRAW A MARK ON FRIDAYS


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
daxvader70 @daxvader70 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by daxvader70
1 year ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 01/18/2025
Status: Active
Attachments: No files
Logo Logo
Loading...