Last Two Highest High and Lowest Low Lines – Yearly Quarterly, Monthly, Weekly, Daily, 4 Hour and 1 Hour

v10.3
Last Two Highest High and Lowest Low Lines – Yearly Quarterly, Monthly, Weekly, Daily, 4 H ...

At the start of a new period this indicator draws lines connecting the previous two periods highest highs and previous two lowest lows. It then projects these lines forward throughout the latest period.

It can find the last two yearly, quarterly, monthly, weekly, daily, 4 hourly and 1 hourly highest highs and lowest lows and draw lines connecting them and projected forward until the start of a new year, quarter, month, week, day, 4 hour period, 1 hour period when new lines are drawn.

You can turn on or off the lines connecting the highs and lows and also turn off the projected lines using the settings ‘Lines’ and ProjectedLines’.

The indicator can be used on any time frame chart but if there is not enough data to provide two HH or two LL then it won’t draw any lines for that time period. You can only draw slower time frame lines on a faster time frame chart so for example you obviously cannot draw H1 lines a daily chart

For daily calculations Sunday candles are included in Fridays data so the projected lines on a Monday are from the Thursday daily HH and daily LL and the daily HH and daily LL of Friday and Sunday combined. Weeks start at the open of the Sunday candle.

Each line is labelled at its end. If projected lines are shown then the label is at the end of the projected line if not then it is at the end of the line connecting HH’s and LL’s. Because it is not possible to draw something and then delete it there are no labels on the last  projected lines shown on the chart. To overcome this issue you can add my other ‘Last Two Highest High and Lowest Low as Horizontal Lines – Yearly Quarterly, Monthly, Weekly, Daily, 4 Hour and 1 Hour’ indicator to your price chart and turn off the values and lines in that indicator. This will give you up to date labels.

The projected lines can go a little wobbly on very fast time frames which I assume is due to missing candles messing up the barindex value used in the projection calculations.

Apply only to the price chart

The lines can be used as support and resistance or for breakout trading – however you wish.

It will be slow to draw if you want every line drawn on a lot of historical bars.

I suggest downloading and importing the indicator 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?

New! PRC is also now on YouTube, subscribe to our channel for exclusive content and tutorials

  1. Vonasi • 245 days ago #

    There has been a minor bug fix as lines were drawn incorrectly if both HH or both LL values were identical. The code and ITF file in this library post have been updated. Anyone who has already downloaded or copied the code should now download v1.1 or copy the amended code found here.

  2. Vinks_o_7 • 245 days ago #

    Thanks !

  3. dario ti • 242 days ago #

    Thank you!

  4. Razz • 232 days ago #

    Hello Vonasi super indicator! is it possible to extend the indicator by the time scales M10 and M5?
    Thank you

  5. Razz • 232 days ago #

    Hello Vonasi
    I found out myself how I can change it.
    Thanks again for the indicator

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Vonasi
2 months ago
Maxime Baudin Very interesting for monthly stock market strategies, thank you Vonasi! :)
Sukhdev Golen Hi Nicolas, how to use this on tradingview?
Nicolas You can't. All codes here are made for the ProRealTime trading platform: https://www.proreal...
Matriciel Well done Vonasi ! You have a lot of ideas. Personally, I work with Moving Averages only. ...
Bard Very interesting approach Vonasi! I'm getting a 404 error when trying to download though?
Vonasi I just tested and I was able to download with no error.
luxrun Vonasi, is it possible to have a screenshot of an index chart (eg djia) and below the breako...
Vonasi I can't add any images here now that the library post has been listed. Perhaps you could sta...
Vonasi Thanks for the compliments Maxime Baudin.
JJ Tec Muy interesante ¡¡¡... gracias X el aporte.
HStrader Thank you for your nice indicator
Vonasi Change line 76 to if opendayofweek opendayofweek[1] and opendayofweek 0 then if ...
Vonasi I just noticed that the above post makes no sense as the symbols have been removed. Here in ...
dario ti Excellent, i was looking for something like that, but could be great if you add the option t...
DaxRider Thank U for ur sharing Vonasi
jandehaas Hello Vonasi, I tried it but it does not seem to work,any idea why ? Thanks,Jan defp...
SL Hi, Fer666 Thank you for sharing. If I want to show daily ST on a 10_min intraday chart...
SL correction above... system had remove"not equal" signs Line 19 : change to if WeekNo "Not...
SL OK... I had figured out... need more than that. Thank you anyway.
Balmora74 Thanks for this code but there is 4 different versions and i don't know wich is the good one ?
Vonasi I don't understand. There is only one ITF file here not four. Download and import it. You mi...
Balmora74 Ok i understand now... I make a confusion with a other code... Thanks Vonasi.
Nicolas That's not possible because the code uses ZigZag instruction from the platform which is not ...
MrMUCKIE Thanks Nicolas. Do you have any idea of how I could generate support/resistance figures for ...
Nicolas Try fractals, swing high/low points, donchian channel, ..
sir_i Bonjour à tous, Je suis nouveau sur le forum et sur la plateforme, pourriez-vous me dire com...
Nicolas Il faut simplement l'appliquer sur le prix.
sir_i Merci pour la réponse, je ne suis pas familier avec l'application de cette procédure simple,...
Vonasi There is another version of this indicator that can plot the same lines but onto an indicato...
Martin35 Hello Vonasi, do you think it is possible with PRT to code with the same principle as on thi...
abhay I am getting a shading between the lines, how can I avoid that. I just want to see lines as ...
Vonasi Delete the 'Color Zone' in the indicator settings window.
Nicolas Bene, perché no, trovi che sia affidabile a lungo termine?
Billy Ray Valentine Non saprei, che ne dici di provare?
Steffen Schmauch hello Nicolas, can I change the indicator that I only get the time of 8-9 clock displayed? a...
s00071609 How would it be possible to call the Last Support Price and the Resistance Price from strategy?
robertogozzi Replace RETURN with RETURN SupportPrice,ResistancePrice. When you CALL they will be returne...
s00071609 Great thank you
Vonasi No problem pableitor - I'm glad you like it.
pableitor Hi Vonasi, I was checking a few random weeks with your indicator and sometimes it seems to ...
Vonasi I have not checked your query on a chart but my guess is that you are reading the indicator ...

Top