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
jobswaps vaya eres increible
jobswaps sigue subiendo mas contenido
Brisvegas If it seems to good to be true it is . Any long only system started at multi year lows will...
Nicolas https://www.prorealcode.com/topic/ayuda-screener-indicador-perfect-trend-line/#post-51291
Manu L. Bonjour Nicolas, suite a une de mes precedentes demande dans le forum indicateur, j'ai touv...
AntoGH C'est selon moi le meilleur indicateur, que j'ai vu, si vous trouvez mieux dîtes moi car dif...
Jiacky mma = average[per,1](close) should be mma = average[per,1](close * 1000). Otherwise TDF will...
Trading_En_El_Ibex35 El screener no busca acciones que estén en máximos absolutos , busca acciones en las que el...
Andraxx lo de volumen aceptable, lo dices en relación al Ibex 35 supongo. Porque se margen de volume...
Juanjo Hola Queria preguntarte si la idea de maximos anuales es tuya, o bien está basada en el sis...
juanj And the point of violation is the close of the candle that violates the line by generating a...
juanj For the latest version of the strategy or to follow updates and developments see the thread ...
phanz i backtested it with 10K units of EURUSD 1 hour i get an equity curve that is going one way ...
Wing Not yet but I plan to.
Leo Have a look in this Forum, I got something interesting for you... https://www.prorealcode.co...
Dávid Gyalus Dear Wing, As I am a daytrader, and one of my best friend is a programmer we think your a...
rejo007 hello david, i'll try it could you tell me wich strategy do you use in real? thanks
David Somogyi Hello, I have a couple of DAX strategies of breakout and mean reversion. I'll try to post...
Roberto Blázquez Hi David, I just saw your strategy and it's good!!! I'm going to try it from today in real a...
Nicolas Questo indicatore è stato progettato solo per i dati intraday, ma potrebbe essere adattato a...
MrCrous //FR Bonjour, Dans le code ci dessus, je ne comprends pas ce que fait la ligne : linea...
Nicolas J'ai déjà répondu à cette question quelque part sur le forum. Il faudrait chercher un topic ...
juanj To follow new developments or get the latest version of this strategy please visit the forum...
tahar Hello Juan, I wanted to test Universal Strategy via a demo account on PRT but nothing happen...
BravoDelta @juanj wondering if you may help me please. I am looking for a simply strategy to use on the...
Wing There's a few threads on the forum about backtest and live trades being different at times. ...
ET I agree with verdi55. As it is now, the code will only test for a breakout on the upside (li...
Philipjonasson are u still active Wing?
poonsl2828 Hi! Francesco I have test it on GBP/USD but it only have a trade on 9 Jun which i backtes...
ullle73 why not use 1h chart? has 95% hitrate
ullle73 i see most of positions are only 1 pip before exit?
imokdesign Hi Everybody, when I look at the strategy I felt the need to implement a Moneymanagement-Sy...
Inertia newlevel then multiplier=multiplier+1 oldlevel=newlevel newlevel=strategyprofit+startequi...
Inertia Hi Bjoern, I was playing around with your code this morning (EUR/USD 5'). Thank you to the...
JanWd Thank you for the coding, it seems promising. FTSE gives for the short term (5 min) promis...
Jan Wind 21.04.2019: I retested the strategy for the DAX 5 minutes , it works fine for 10.000 bars, b...
bertrandpinoy hello Francesco, are you still working on this strategy?
Samitha Prasanna Hi ALE, would you be able to provide the values for the below part of the code (time >=1...
Player Bonjour, J'ai testé cette stratégie sur EurUSD en 1 heures sur 10000 unités et le résultat ...
Player Vue du rapport du Backtest https://ibb.co/8BMrBz6
Nicolas Restart your platform in order to be sure to use the last version, there was a version rollb...
bertrandpinoy bonjour voud pouvez m envoyer le code modifier par vous?
Nicolas Désolé , je ne comprends pas votre question.
Nicolas si il n'y a pas de stoploss définit dans le code, alors c'est normal :)
bertrandpinoy bonjour merci pour la réponse. Oui b sur ... est il possible que le SL soit coder sous une a...
Nicolas ok mais pourquoi poser la question ici ? Pour des questions non spécifique à cette article, ...
Abz  hi , you need to add the indicator from the "price" menu in chart
Francesco Thank you Abz!
phanz Hi Nicolas, this is an interesting strategy. For long position, I assume entry when prices ...
SAM
7 years ago
Elsborgtrading By adding the inside bar breakout failure candle, which is the next bar after the inside bar...
DegoodBoby very nice indicator but pls how can we use the indicator without the text (inside bar/brea...
ShaunG Hi Elsborgtrading thanks for this indicator. I was initially looking for a "IDnr4" which I c...

Top