Yearly Quarterly Monthly Weekly Daily H4 H1 OHLC Lines – Last Bar Only Version

v10.3
Yearly Quarterly Monthly Weekly Daily H4 H1 OHLC Lines – Last Bar Only Version

This is an alternative version of the ‘Yearly Quarterly Monthly Weekly Daily H4 H1 OHLC Lines’ indicator that can be found here:

https://www.prorealcode.com/prorealtime-indicators/candlesticks-ohlc-yearly-quarterly-monthly-weekly-daily-h4-h1/

This version only draws the latest open, high, low and close lines and labels them so that you know which period they are drawn from and what price they are at.

As with the first version you can turn off any periods that you don’t want to see. You can also select whether you see just open and close lines or just high and low lines or all of them. You can also turn off the displayed price by using the ‘Values’ setting.

As with the first version you can set a look back period so that you can see the OHLC from any period. So you can plot lines from 2 months ago or 2 days ago or 3 weeks ago etc. By applying the indicator multiple times to a chart with different look back settings you can have for example the OHLC values from the last three months on the chart.

All lines are labelled with price first followed by the period in [ ] and then the look back period. The lines are colour coded as follows:

  • Open = light blue
  • High =  green
  • Low = red
  • Close = dark blue

So for example:

  • 1029.5 [D] 2 in green = the high from 2 days ago which was at a price of 1029.5
  • 1054.2 [H1] 1 in red = the low from the last hour which was at a price of 1054.2

This indicator can be used to recognize possible support and resistance levels and for breakout trading.

I recommend using this indicator alongside my ‘Last Two Highest High and Lowest Low as Horizontal Lines – Yearly Quarterly, Monthly, Weekly, Daily, 4 Hour and 1 Hour’ indicator. This will give you lines representing the extension of connecting the last two highs and last two lows of each period. The two indicators plotted on the same chart can show you levels that others may be looking at.  The labels in this indicator are not in [ ] so you can know whether you are looking at a horizontal OHLC line or the extension of a line connecting highs or lows when both indicators are on the same chart. That indicator can be found here:

https://www.prorealcode.com/prorealtime-indicators/last-two-highest-high-and-lowest-low-as-horizontal-lines-yearly-quarterly-monthly-weekly-daily-4-hour-and-1-hour/

I advise 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. Vonasi • 04/15/2019 #

    Change line 76 to if opendayofweek opendayofweek[1] and opendayofweek 0 then if you want Sunday data to be included with Friday data. This avoids Monday the lines being based on the normally small Sunday candle OHLC.

  2. Vonasi • 04/15/2019 #

    I just noticed that the above post makes no sense as the symbols have been removed. Here in English is what the conditions should be: IF opendayofweek is different to opendayofweek[1] AND opendayofweek is different to 0 THEN

  3. crolakstrading • 04/15/2019 #

    Hi Vonasi,
    Hope you are well.
    Above coding all works fine but on 4hr chart, 4hr lines don’t work.. this is only the 4hr chart.. any reason for that??

    • Vonasi • 04/15/2019 #

      It is a long time since I coded this. You may have found a coding error. At a glance I think the OPENHOUR settings might be wrong in line 48. Try changing OPENHOUR to HOUR and if that does not work I will check it tomorrow.

    • Vonasi • 04/15/2019 #

      Yes that was the issue. I have posted an updated ITF file here: https://www.prorealcode.com/topic/ohlc-y-m-w-d-h4-h1-last-bar-indicator-minor-fix/

  4. crolakstrading • 04/15/2019 #

    @vonasi Thank you for fixing the issue! This is a great indicator.

  5. gregoire • 04/15/2019 #

    good evening vonasi , I had made the request to create this indicator a few years ago and I gave up because I did not have the level nevertheless I use it since and I would like to take advantage of it. j would like to change the top preceding above higherhigh[1] and precede low by preceding lower lowerlow[1] on all ut !…it’s much more efficient… I do not use the 4H and 1H but instead I would like the 15MN and in the end we added little yh-yl,qh-ql,th-tl,mh-ml,dh-dl,15h-15l, it is better on the graph for colors if you could set them without entering the code as everyone does what he wants, I have an option to trace fibo that I little activated or not , I personally do not use it, on the other hand can we added a signal like an arrow when the candle closes above or below the set up 15 minutes?, and finally if you want to complete this indicator a scrrenner on the same basis having the choice of research C would be very effective.you do great work I would like to have your level for code that I like , I continue to learn every day thanks to the forum member… Thank you…

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
fredfilm Hi Nicolas, how could we add a price screen to this? eg stock prices between $1 to $3 etc
Gianluca ok i fixed it i hope is ok like this: //TAC trader zone 10.2 | indicator //01.01.2018 //R...
TAC Bolsa Hello try this new version or view the blog with the new indicators .. https://www.t...
TAC Bolsa Sorry, TAC Trader Zone V2 https://www.tiburonesdealetacorta.com/2018/11/indicador-tac-tr...
Simba Greetings from germany! :) Can you told me your EXIT-strategy for this, please? :) Would ...
GraHal Wow! Thank you Vonasi, great idea!
Vonasi No Problem GraHal. Please share anything interesting that you find using it.
Vonasi I've made a small improvement by adding a Buy and Hold line for comparison. This line can be...
Eric If you have a high percentage winners and the trades are closed with take profit the spread ...
Casenova I Agree with you JaunJ, and Yes Eric, what you say makes sense too. Optimizing the Stop Loss...
ET Thanks for the system Casenova. In determining the high of the past 4 bars, is there a reaso...
ak5hay2 Works like crazy on bitcoin. Use different timeframes. Thanks a lot Doc!!!
richyowen Hi, great code thanks. Very new to this forum. Is there a way to add a 100point target on an...
lisamitch50 Morning all, Just backtested on quite a few instruments, worked well on backtesting, but tel...
FULVIO09 Attualmente non c'è sufficiente volatilità : la condizione "C0 = AverageTrueRange[1500](Clos...
vlongobardo67 Ma io intendevo in backtest ! Scusa non l’ho menzionato.
ciniselloftse salve fulvio .il trading sistem e sempre profittevole?
reb Hello have you used this strat since last year ? live or Back test ? What are the results ?
beeb Yes last Year. But only back test
drysheep Hi all, did anyone test this strategy recently? As i dont get a single trade in the backt...
Nicolas
6 years ago
Nicolas Merci, faire une demande dans le forum approprié.
Pere Thanks for this good indicator Nicolas. I would like to make the upper and lower limits mor...
Nicolas because fractals are known 2 bars later! that's why I used rectangle to plot them in the past.
cervantes2 Buenas tardes y gracias por este magnifico indicador. Queria saber si tienes un proscreener ...
cervantes2 Que busque los valores que la linea verde acaba de cruzar al alza o a la baja
AngelPujalt Tenéis algún screener de este indicador?
Alai-n Merci pour ce travail...
patmaba merci Alai-n. C'est ma première participation sur prorealcode, merci pour à toi pour ton co...
longtrade Can this be converted to a screener?
Yannick Hello There is a mistake in trailing stop code, I think that this should fix the problem s...
Paul About the trailing-stop the way it's coded. That works for backtesting only, just look at th...
Jonny sorry paul, but system says that is not possible to put many stop order combined...what have...
s00071609 I am using this indicator but it keep crashing as i change the timeframe. For example, chang...
Nicolas in the mean time you can try this one: https://www.prorealcode.com/prorealtime-indicators/ho...
Gianluca Is it possible to have an indicator where those value are as instogram ? and separated? in o...
Nicolas Oui pourquoi pas? :)
claudiofred Bonjour Nicolas, merci encore pour ce super indicateur. se demander s'il est possible d'écr...
Nicolas Screener déjà présent sur le forum ici: https://www.prorealcode.com/topic/indicador-lastmans...
bazilou pouvez expliquer donchian bias merci
rb-72 Thank you, area of twist by dilatacion of the price, missing part of the code that is not pu...
Thomas007 after reading your blog now I understand why there is only a part of your code here. I'm try...
Juanjo Hola¡¡ la estrategia se podria aplicar sobre acciones con marco temporal diario?? gracias.
TempusFugit Masala, thanks for your contribution. I don´t like the offmarket spreads neither ;) I unders...
Uveus Tempus, me da un error al validar el codigo, sobre la variable N. Al crear el indicador me ...
TempusFugit Hi Uveus, I am guessing you inserted the code of the indicator into the system code, is ...

Top