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
P. Marlowe Muy bueno. ¿Podría hacerse para señalar extremos por el lado bajista? Lo mismo a la inversa....
Miro Esta es una versión del indicador, para ambos extremos. //-------------------------------...
P. Marlowe Muchas gracias ¡¡
Iván Hi. You could add these lines of code: if intradaybarindex=0 then varhigh=round((dhigh(...
RTR Edit
@toniyecla ¡gracias! más capturas aqui: https://www.prorealcode.com/wp-content/uploads/2024/10/IC...
robert123 I had a go at the 'order block' version- badly done I'm sure....but a start. // Sonarlabs ...
robert123 take ''sens1 = 5'' out and put ''rango'' in as variable
@toniyecla captura: https://www.prorealcode.com/wp-content/uploads/2024/10/sesiones_v3.png
@toniyecla y más opciones: añade una línea también en sesiones EUROPA y USA (configurable) y un texto o...
@toniyecla // Author: toniyecla - contact@rescommunesomnium.com // VARIABLES // EspHorarioVerano (b...
Alai-n Hello, take a look at this formulation made by "Blade106", Topic link attached post #227334....
@toniyecla ¡interesante acercamiento! (no lo conocía, simplemente tuve la necesidad y lo programé) pers...
Iván
4 weeks ago
MaoRai54 dear Ivan, it seems to be very interesting but please clarify what are all the lines I see i...
Iván Hi! you have the answer in the last line of code... MacdMiddle as "histo" style(histogra...
kats Le Top , a utiliser avec le nuage violet et alerte TN pour plus de précision.
roccafragius Hello Ivan, another great Indicator, very useful to trace the trend ( blue line) and the pos...
roccafragius Hello Ivan, very good job! May I ask you to translate teh script from TradingView named Tre...
Iván Hi! yes. You can ask for it here: https://www.prorealcode.com/free-code-conversion/
roccafragius Thank you so much Ivan! I created this request in english Translate from TradingView Indicat...
Regisnew très bel indicateur merci
jordan //---settings MAmode=0 Period=150 NumberOfMA=100 //---end of settings MA2=undefined ...
jordan dites moi si cela correspond à ce que vous cherchez
kats bonjour merci de ta reponse mais non ca fonctionne pas sympa quand même d'avoir essayé cdlt
Jean2139 Bonjour Yvan, Merci pour ton indicateur que je trouve très intéressant. Je suppose que tu ...
Suffi Hier eine kleine Korrektur: //-----Inputs-----------------------------------------// MALengt...
yas hi Ivan is it possible to include FAIR VALUE GAP code in to this indicator
Becleso Bonjour. Il y a une erreur dans le programme "ligne1 : Erreur : commande inconnue" As tu un...
Nicolas Sans doute parce que tu utilises le mauvais éditeur de code, il s'agit d'un indicateur. Je r...
Iván
4 months ago
Javier Goberna Hola Iván muchas gracias por todo tu trabajo y por tus videos. Estoy dado de alta en la plat...
Iván Hola javier gracias! es importante realizar buenos backtest antes de lanzarse al mercado y ...

Top