Five Bar Trend Dashboard

v10.3
Five Bar Trend Dashboard

This indicator creates a dashboard of dots to show the trend in five time frames.

So for example on a 5 minute time frame it calculates what a 5 minute, 10 minute, 15 minute, 20 minute and 25 minute candle would be and on a daily chart it would calculate what 1 day, 2 day, 3 day, 4 day and 5 day candles would be. It then compares the current price to those candles. It can the compare closing price to the open, median price, typical price, total price and weighted close price. It then draws five dots to show whether the comparison is down or up for each time frame. The upper of the five dots represents the fastest time frame candle comparison (so 5 minutes on a 5 minute chart) and the lowest dot is the slowest comparison (so 25 minutes on a 5 minute chart).

The separate upper row shows a red dot if all the time frame dots below are red and a green dot is all the time frame dots below are green. If they are mixed then an empty blue circle is drawn. If a set of 5 red or 5 green dots is followed by a mixed row of dots then an up arrow or down arrow is shown to highlight a possible market reversal after a strong trend. The number above this arrow highlights how long the previous run of five same colour dots has gone on for. This number can help analyse how strong the run was and can be used for position sizing or just to assist in deciding how likely a reversal is to be.

Change the price that you compare to by changing the ‘customclose’ value in the indicator window. If you select open,close,high or low then the comparison is always open to close. The others are close to typical price or close to median price etc.

By ticking or unticking ‘All’ you can remove the dots representing the five time frames. This allows the indicator to be reduced down in size so as to take up less chart space.

I suggest downloading and importing the ITF file to get full functionality.

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. marcosamo • 08/22/2019 #

    hello, thank you that seems very useful. I will try it.

  2. HStrader • 08/22/2019 #

    Hello Vonasi Its seem a nice job again thanks

  3. soulintact • 08/22/2019 #

    Dear Vonasi, thanks for a truly great indicator! Forgive me, but I tried to edit your flawless code so I could implement it in Autotrading, but I obviously failed. Anyone care to elaborate what I am doing wrong?

    I tried to use “Add PRT code”, but failed why I paste the code directly.

    //————————————————————————-
    defparam cumulateorders=false
    Defparam preloadbars=10000

    //————————————————————————-

    //Settings of orders
    amount = 100 //quantity of shares/contracts to open for each new order

    //————————————————————————-
    //Indicators
    //Indicator type: Candle trend in 5 different time frames
    //Edited code originates from: Five Bar Trend
    //Author: Vonasi
    //Date: 20190822
    //Source: https://www.prorealcode.com/prorealtime-indicators/five-bar-trend-dashboard/

    m5 = customclose

    //m5=typicalprice
    //m5=medianprice
    //m5=totalprice
    //m5=weightedclose
    //m5=(close or customclose = open or customclose = high or customclose = low)

    m10h = highest[2](high)
    m10l = lowest[2](low)
    m10o = open[1]

    m15h = highest[3](high)
    m15l = lowest[3](low)
    m15o = open[2]

    m20h = highest[4](high)
    m20l = lowest[4](low)
    m20o = open[3]

    m25h = highest[5](high)
    m25l = lowest[5](low)
    m25o = open[4]

    if customclose = typicalprice then
    m10 = (m10h + m10l + close)/3
    m15 = (m15h + m15l + close)/3
    m20 = (m20h + m20l + close)/3
    m25 = (m25h + m25l + close)/3
    endif

    if customclose = medianprice then
    m10 = (m10h + m10l)/2
    m15 = (m15h + m15l)/2
    m20 = (m20h + m20l)/2
    m25 = (m25h + m25l)/2
    endif

    if customclose = totalprice then
    m10 = (m10h + m10l + m10o + close)/4
    m15 = (m15h + m15l + m15o + close)/4
    m20 = (m20h + m20l + m20o + close)/4
    m25 = (m25h + m25l + m25o + close)/4
    endif

    if customclose = weightedclose then
    m10 = (m10h + m10l + (2 * close))/4
    m15 = (m15h + m15l + (2 * close))/4
    m20 = (m20h + m20l + (2 * close))/4
    m25 = (m25h + m25l + (2 * close))/4
    endif

    if customclose = close or customclose = open or customclose = high or customclose = low then
    m5 = open
    m10 = m10o
    m15 = m15o
    m20 = m20o
    m25 = m25o
    endif

    //Line 1, First time frame
    //Red dot
    if close m5 then
    L1=1
    up = up + 1
    endif

    //Line 2, Second time frame
    //Red dot
    if close m10 then
    L2=1
    up = up + 1
    endif

    //Line 3, Third time frame
    //Red dot
    if close m15 then
    L3=1
    up = up + 1
    endif

    //Line 4, Fourth time frame
    //Red dot
    if close m20 then
    L4=1
    up = up + 1
    endif

    //Line 5, Fifth time frame
    //Red dot
    if close m25 then
    L5=1
    up = up + 1
    endif

    //Market reversal
    //Down
    if up[1] = 5 and down 5 and up 5 then
    reda = ucount[1]
    ucount = 0
    Arrow=-1
    endif

    //Up
    if down[1] = 5 and down 5 and up 5 then
    greena = dcount[1]
    dcount = 0
    Arrow=1
    endif

    BullCandle5=((L1=1)and(L2=1)and(L3=1)and(L4=1)and(L5=1)) or ((Arrow=1) and (greena>=3))
    BearCandle5=((L1=-1)and(L2=-1)and(L3=-1)and(L4=-1)and(L5=-1)) or ((Arrow=-1) and (reda>=3))

    //Conditions when to act
    if (not longonmarket and BullCandle5) then
    buy amount shares at market
    endif

    if (longonmarket and BearCandle5 and positionperf>0) then
    sell at market
    endif

  4. Vonasi • 08/22/2019 #

    soulintact – this is probably not the best place to discuss a strategy version of the indicator. I would suggest starting a topic in the ProOrder forum so that we can all discuss the idea.

  5. soulintact • 08/22/2019 #

    Of course Vonasi. Done! https://www.prorealcode.com/topic/rewriting-an-idicator-to-pro-order/

  6. Alai-n • 08/22/2019 #

    Hello, where can I get a list of possible objects and their formulations to insert in the Dashboard (Square, Circle, Triangle etc …) Thank you

  7. Vonasi • 08/22/2019 #

    I use the Windows10 ‘Character Map’. Type it in your windows search box.

  8. Alai-n • 08/22/2019 #

    @Vonasi Thanks

  9. jiddan78 • 08/22/2019 #

    how to convert to afl amibroker ?

    • Nicolas • 08/22/2019 #

      We do not supply free coding assistance for AFL Amibroker on the website. You can ask for paid programming at: https://www.prorealcode.com/trading-programming-services/

  10. Ngomsi • 08/22/2019 #

    @ Vonasi,

    how to use timeframe , 13 minutes ,21 minutes, 34 minutes,et 55 minutes with this program?
    Thanks,

avatar
Register or

Likes

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

+3 more likes

Related users ' posts
pyhrus P.S : IG , que j'ai contacté ,m'indique que la version V11 , ne sera pas disponible avant un...
Hasardeur Dear Nicolas, is there someting at the arry to modify in order to run the trend at the actu...
MALIMALO Dear Nicolas, just try touse your indicator with backtest but it's not working. is anybody...
Vonasi There are actually two ways to calculate standard deviations and I seem to have used the ver...
segie Can something similar be done with Supertrends?
Vonasi Not sure I fully understand what you are asking for. Are you asking for MTF Supertrend level...
Kris75 very interesting; thanks !
ribes65 Bonjour Nicolas, Merci pour votre travail. Est-il envisageable de créer un screener pour ...
Nicolas Bien sûr, merci de formuler une demande dans le forum des screeners pour prorealtime. En res...
ipbvba Est il possible de le transformer en indicateur (pour ne plus avoir les lignes mais uniqueme...
supertiti Bonjour Nicolas, Je ne comprend pas bien , le trend change de couleur quand les prix sont a...
Nicolas Oui ce serait possible, cependant l'indicateur est bien prévu pour conserver la couleur de l...
supertiti Quand tu pourras si tu peux nous coder la troisième couleur cela améliorerait les trades cou...
Nicolas How to import file page: in the help section of the website explains howto
kenssa import through the indicator page/window in the Proreal time
chicoteca Buenas, no consigo que se me muestre en el chart de DAX. ¿Cómo procedo? Gracias.-
frenqle Hi There.. It seems the TSL stop loss is not working.. it does not respond is that correct?
Ciccarelli Franco Per lasciare che la strategia venga eseguita (dopo aver importato il file): Basta eliminare...
JADINVEST Hello Jan, hello everyone, Thanks Jan for this strategy! Since 2020, have any of you found a...
kal Buenos días TACBOLSA. Estoy muy interesado en ver tu blog para ver la explicación con detall...
1Randy I would be interested an invite to your blog. I am still learning about the VSA and it looks...
repropel Buenos días TACBOLSA. Yo también estoy interesado en visitar tu blog. Podrías enviarme una i...
Stockastiss Can this code be simply transferred into Backtestingcode so one doesnt need to use call ? (i...
Vonasi Sorry for the late reply. Add the code to your strategy and remove line 5 and line 39. Chang...
viktorthunss Hi! How many averages are there? Can I see the somewhere?
FXmike hey my friends, thank you for this great code. my problem is he make no trade open. backtest...
FXmike Can i put a Action that my start contract is smaller than 1 ? 0.3 or 0.5 ? In wich Position...
phoentzs I wrote the code for M15 back then and also variants in H1 and M1. Everything works so far....
leofi https://www.prorealcode.com/topic/simple-average-with-visual-color/
leofi Go visit www.prorealcode.com/topic/simple-average-with-visual-color/ and watch 2em post
Dritan Hi,I am new on Prorealtime and coding.I downloaded the indi but I have it on a separate wind...
Balmora74 thanks for this code Philippo ! So if i understand well a Positive (+) EntryOK x ROC means a...
Dritan Hi Philippo,thanks for sharing this code.Can You add please Volume more than 250.00?Thanks
Nicolas Just add it on the price series.
yomisadiku Hello Nicolas, Can I use high and low price at lines hh=max(hh,close) and ll=min(ll,close) ...
Nicolas Yes you can do that, the impact will be that the trailing stop line will be much close to th...
Byggtrader Hi Nicolas! How do I get the indicator in the price chart? It only stays under i new chart.
Nicolas Just add it on the price chart by using the wrench on the left upper side of the chart (pric...
Dom Hello, hello....je commence le trading et découvre par la même occasion le codage....et ce n...
Nicolas Merci, ça fait plaisir !
Be-n Bonjour tout le monde ! Dans l'indicateur de tendance, j'ai du mal à saisir la nuance entre ...
Globalmarkets79 Thank you Vonasi for the answer. I have an other question. When i tried to run the indicator...
Vonasi Lines is either 0 or 1 to turn on or off the drawing of them. Once again if you download and...
Globalmarkets79 Thank you Vonasi, this indicator is very helpful!!!
Nicolas
5 years ago
Bateson Merci pour la réponse Nicolas. C'est bien ce que j'ai fait mais ça ne fonctionne toujours pa...
Enzo Paliotti Veramente ottimo, era quello che cercavo, si potrebbe modificare inserendo come variazione a...
Nicolas Perché no, chiedetelo con una descrizione dettagliata nel forum degli indicatori, per favore!
YvesRobert @robertogozzi. It's done. Thank you
YvesRobert Hello Roberto, some questions about your strategy. 1 - Do the 2 lines SET TARGET pPROFIT T...
robertogozzi 1. The 2 lines SET TARGET pPROFIT TP and SET STOP pLOSS SL are always executed, each bar. Bu...
manchokcity can we have it in mql4 platform? or how or which platform do we use it?
camporan I don't use MetaTrader so I won't be able to do the translation myself. Sorry!
Alexander9 This can for amibroker ? . Thanks
riz001 thnk u
geroniman bonjour Nicolas, j ai un indicateur le Tiger . J aiemrai placer des fleches buy et sell dire...
Nicolas Merci de formuler les demandes sur le forum. ça n'est pas le bon endroit et hors sujet ici ! ;)

Top