Daily candlestick on any timeframe chart

v10.3
Daily candlestick on any timeframe chart

This indicator draw the actual daily candlestick on any timeframe. You can change the visibility of the candlestick with the “alpha” variable set from 0 to 255 which change the transparency of it. It is not possible to draw objects on the right of the chart, so the candle is displayed overlayed of the price.

The candlestick is made of rectangles drawn with the new graphical objects of the 10.3 version of the platform.

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

  1. supertiti • 05/25/2016 #

    Bonjour Nicolas
    J’ai mis alpha en variable pour jouer sur la transparence car je ne vois pas comment on peut faire? pour autant la transparence ne bouge pas entre 0 et 255 ! j’ai loupé quelque chose ?
    merci
    bonne journée à tous
     

  2. supertiti • 05/25/2016 #

    désolé , j’ai compris ! alpha dans le code ou en variable !!

  3. Pere • 05/25/2016 #

    This is the code changed to draw the last 2 days:
    defparam drawonlastbaronly = true

    alpha = 255 //from 0 to 255 to change alpha transparency

    dop = dopen(0)
    dhi = dhigh(0)
    dlo = dlow(0)
    dcl = dclose(0)
    //Candle yesterday
    dopy = dopen(1)
    dhiy = dhigh(1)
    dloy = dlow(1)
    dcly = dclose(1)

    //candlestick color
    if dop>dcl then
    direction = -1
    else
    direction = 1
    endif

    if dopy>dcly then
    directiony = -1
    else
    directiony = 1
    endif

    //bullish candle
    if direction = 1 then
    //candlestick body
    DRAWRECTANGLE(barindex-7,dop,barindex-2,dcl) COLOURED(10,205,10,alpha)//Originalmente verde 10,255,10
    //candlestick high and low
    DRAWRECTANGLE(barindex-5,dcl,barindex-4,dhi) COLOURED(10,205,10,alpha)
    DRAWRECTANGLE(barindex-5,dop,barindex-4,dlo) COLOURED(10,205,10,alpha)
    endif

    //bearish candle
    if direction = -1 then
    //candlestick body
    DRAWRECTANGLE(barindex-7,dcl,barindex-2,dop) COLOURED(255,10,10,alpha)
    //candlestick high and low
    DRAWRECTANGLE(barindex-5,dop,barindex-4,dhi) COLOURED(255,10,10,alpha)
    DRAWRECTANGLE(barindex-5,dcl,barindex-4,dlo) COLOURED(255,10,10,alpha)
    endif
    //bullish candle yesterday
    if directiony = 1 then
    //candlestick body
    DRAWRECTANGLE(barindex-15,dopy,barindex-10,dcly) COLOURED(10,205,10,alpha)
    //candlestick high and low
    DRAWRECTANGLE(barindex-13,dcly,barindex-12,dhiy) COLOURED(10,205,10,alpha)
    DRAWRECTANGLE(barindex-13,dopy,barindex-12,dloy) COLOURED(10,205,10,alpha)
    endif

    //bearish candle yesterday
    if directiony = -1 then
    //candlestick body
    DRAWRECTANGLE(barindex-15,dcly,barindex-10,dopy) COLOURED(255,10,10,alpha)
    //candlestick high and low
    DRAWRECTANGLE(barindex-13,dopy,barindex-12,dhiy) COLOURED(255,10,10,alpha)
    DRAWRECTANGLE(barindex-13,dcly,barindex-12,dloy) COLOURED(255,10,10,alpha)
    endif

    RETURN

  4. M.Nicolas 81 • 05/25/2016 #

    Hola Nicolas.
    ¿Existe la posibilidad de que este indicador se muestre también en el histórico anterior ?

    • Nicolas • 05/25/2016 #

      That would be possible to be coded using MTF indicator in PRT v11.

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar

+2 more likes

Related users ' posts
Gio56 Super idée. j'ai juste un souci. j'ai pas de barre verte mais plusieurs lignes de couleurs.....
DeathMetal change line in histgram, (click on indicator name, click on tool (
Gio56 Super merci.
Ciccarelli Franco Sembra molto interessante e volevo dei chiarimenti se possibile :Le righe commentate vanno l...
KumoNoJuzza Thank you @philippe59139 !! We finally have the VAL / VAH to play with. Could you attach th...
MaoRai54 Thanks, now it's OK. in your first code at line 15-16 it's missing.
Madrosat Hello Ivan Did you try a strategy with this indicator
Iván Hi. No I didn't. This is a code translation requested by an user a few days ago.
Fgats https://www.prorealcode.com/topic/indicateur-3-sigma-documentation/ lien pour la documentat...
DELBERT Bonjour , merci pour le partage et la traduction , je vais essayer d'assimiler ce nouvelle i...
Iván
3 months ago
cjr30 Simplemente modifica las lineas 19 y 21 por las siguientes: drawtext("▲",barindex,low-0.1*a...
groelandes Gracias!!
WhyAskOZ i copied the code into strategy and it gives error on line 21 and 23. it says " Line 1: ...
Iván
3 months ago
Madrosat Hello Ivan You have interesting topics on indicators , smart supertrend, optimised trend t...
Iván Hi! thanks. All of these codes are translations requested in the forum. I've on mind to back...
Raspete01 Buenos días Iván, estoy intentando llevar el código eliminando los colores y pasando un Back...
jacquesgermain sì da aggiungere
Maik2404 auf welchen Wert muss ich die Kompresionsperiode stellen?
jacquesgermain — Période de compression : ce paramètre détermine la période de rétrospection utilisée pour ...
Iván
3 months ago
ARLEQUIN49 Hello Ivan, Would it be possible to convert the code of this QQE MOD indicator which accomp...
ARLEQUIN49 here is the code: //@version=4 //By Glaz, Modified // study("QQE MOD") RSI_Period = i...
Iván Hi, Yes I can translate it but please, create a new topic for it.
philippe59139 Bravo super travail
gidien
3 months ago
gidien Thanks for the hint. I think i know now, why this happen. The "settings" block was added by ...
LucasBest Thank you for sharing your work, both original and very disconcerting. When I went through t...
gidien Hello LucasBest, thanks for your comment. Point 1: Yes your are right. The Zigzag ve...
gidien
4 months ago
Cram13 Bonjour, qu'elles sont les valeurs des variables ? Avec mes remerciements Marc
gidien This indicator will not return any value. You can change the last line to : return ao...
gidien SMA1 = MovingAverage Length applied to the source candles (high , low, op...
Fgats quelques explications en Français ici : Some explanations in French here : https://www.p...
Nicolas Merci pour cette contribution, j'apprécie ! :)
Fgats Merci Nicolas pour ces encouragements et merci aussi pour le commentaire en Anglais accompa...
Msport71 Thank You very much
luxrun A question: what are the initial (or default) values ​​of maximum and minimum in the executi...

Top