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
luxrun A question: what are the initial (or default) values ​​of maximum and minimum in the executi...
jacquesgermain Bonjour non pas de soucis car src=customclose donc dans le menu configuration/propriété me...
geroniman Merci Jacques , indic tres utile. J'ai un indic à programmer avec du price action. es tu dis...
jacquesgermain ok pour regarder ...
Bateson
6 months ago
Bateson
6 months ago
Quino
6 months ago
Bateson
6 months ago
MACD Reloaded
MACD Reloaded
2
Indicators
NEOMKEY Nada nuevo
Carlose I love your version of the MACD, if you use it you can get a lot of use out of it, for me ma...
Bateson
6 months ago
TSI 3.0
TSI 3.0
6
Indicators
Fgats a = (Average[l1,m1](Average[l2,m2](ROC[mfvalue](close)))) b = (Average[l3,m3](Average[l4,m4...
Bateson Fgats, Un grand merci. Cela fonctionne parfaitement. J'ai bien compris la partie à rajouter ...
Fgats
7 months ago
bousalahane hello, thank you for sharing, I’m not top strong in the programation part, there is a way to...
Fgats Hi, With this indicator I just wanted to show the interest that can exist to synthesize th...
davidguerreir how to adapt nbStdSig values ?
lkiklkik thanks a lot. description of the indicator seems wrong ...
robertogozzi Sorry, you're right. The correct description, from https://www.tradingview.com/script/omlpq...
carlvan Hi Nicolas, thank you for this very interesting code. There is something I don't get though ...
Atemi19 probleme code : message veuillez definir alpha futur nbO X X1Y y1
Xtian Bjr Nicolas , pour exemple cet indicateur est extrêmement bien développé chez trading view ...
Actaru5 Hi, I couldn't see the candles well. Changing the code solves the problem. from line 164 to...
LucasBest Thank you
Alai-n @LucasBest Hello, do you think it is possible to isolate moving averages? I would like to us...
Alai-n I really like it when you develop ideas around price movement! I am much less a fan of all t...
finplus Bonjour, une petite demande concernant cet indicateur : comment faire pour que lorsque la bo...
LucasBest Bonjour, la coloration des bandes se fait ligne 111 et 112 à l'aide des instructions colorbe...
Matriciel Very nice job ! Is it possible to do the opposite because what interests me is to have the ...
YvesRobert Hi Matriciel, how can we do this, because stochastic is limited between 0 and 100 but price ...
Traderfox06 Dear zeiiermantrading, I really like your approach combining adaptive averages with MACD in...

Top