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 Grazie Ivàn, è possibile realizzare uno screener con questo indicatore?
NEOMKEY Magnífico !!!. Al menos para mí. Gran trabajo con tus aportes Iván. Mira a ver si le incluye...
Iván jajaja gracias :)
roccafragius Felicitaciones Ivan, este indicador me parece muy útil y mucho más rápido que las zonas de o...
roccafragius Congratulations Ivan, this indicator seems to me to be very useful and much quicker than the...
giumagi Hi Ivan ...GREAT! thank you
Iván Allora crei un nuovo post. Lo aspetterò.
Stenozar Ciao Ivan, ho inserito il post con la richiesta di traduzione. Se puoi vedere, grazie!
Iván perfect!
kats Bonsoir, Pensez vous pouvoir répondre à ma question posée ci dessus? Ce serait vraiment tr...
Iván Bonjour L'ensemble de l'indicateur est alimenté à partir de la ligne 9 avec la définition d...
kats BONSOIR c bon merci j ai trouve ce weekend merci de votre reponse cdlt
kats j ai fait une copie d'ecran mais je ne sais pas comment l'envoyer sur le site
luiskohnen This indicator re-paint?
Iván Hi, Sorry, but what do you mean?
Iván Thanks ;)
kats BONJOUR je lai mis sur du renko , il est complexe car toujours a l'envers??? Peut être ne ...
RTR Great tool again and great job, thank you! So from what I see everytime Z-Score is over 0 m...
Gaspare Ciao Ivan si puo' inserire una strategia su questo indicatore per ottimizzare le variabil...
14starwberryhill Such a wonderful work, thanks Ivan..............
larouedegann TIMEFRAME(15minutes) apparemment ne fonctionne pas
Iván Bonjour Je ne comprends pas bien le problème. L'indicateur fonctionne dans n'importe quelle...
larouedegann OUI je le sais, il fonctionne dans toutes les unités de temps. Mais je souhaite utiliser l'i...
Iván
1 month ago
Iván Si lo descargas e importas en tu PRT verás que se han creado las variables para luego config...
WhyAskOZ Hi, Ivan As always you are doing great coding. The code works on my PRT, however the issu...
Iván You can delete in the last line (return) the configuration for color. Delete coloured(xx,xx,...
Iván
1 month ago
Danger Zones Indicator
Danger Zones Indicator
4
Indicators
Iván Thank you very much!
Claudio Good morning Ivan. I try to use this indicator but I receive the automatic message on line 7...
Iván Hi Claudio The indicator works fine. Maybe you are with PRT11 instead PRT12?
P. Marlowe Quite an impressive work, Iván. Extremely useful and accurate. Congratulations. Keep it up¡
lkiklkik i love it !!! thanks.
Stenozar Hi Ivan, can you translate from tradingviwe the EMA TREND METER INDICATOR? It couid be inte...
Iván Hi Yes I can. Please, create a new topic for that I will translate it.
Stenozar Hi Ivan, I've created a new topic about the indicator: https://www.prorealcode.com/topic/ema...
Iván sería así //------------------Inputs------------------------------ linreglength = 11//i...
Doddge Muchísimas gracias Iván, está genial.
superfalcio holaaa, have you run some statistics?
Doddge Hola Iván, ¿sería posible crear un screener que indique cuándo las velas coloreadas del indi...
RTR Ivan thank you for the pro-screener. I a trying to understand how to write the signals from ...
Iván Hi, Lines 62 and 63. These lines define buy and sell conditions.
el titi Bonjour, merci beaucoup pour ce partage. Je vais regarder avec attention ce script et analys...
Armand2020 Bonjour , super taf!! serait il possible de faire un poc dynamique en timeframe 5 min en mod...
philippe59139 voici ce qu'il faudrait faire ou ajouter: //poc dynamique defparam calculateonlastbars=1...

Top