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

v10.3
Last Two Highest High and Lowest Low as Horizontal Lines – Yearly Quarterly, Monthly, Weekly, Da ...

This indicator does the same calculations as my ‘Last Two Highest High and Lowest Low Horizontal Lines – Yearly Quarterly, Monthly, Weekly, Daily, 4 Hour and 1 Hour’ indicator but displays the results only on the last bar as a horizontal line where the latest projection is calculated to be.

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

It can find the last two yearly, quarterly, monthly, weekly, daily, 4 hourly and 1 hourly highest highs and lowest lows and calculates how those lines would project forward At the start of a new year, quarter, month, week, day, 4 hour period, 1 hour period new lines and their projections forward are calculated.

Values for the latest projection are shown. These can be turned off with the ‘Values’ setting.

You can turn on or off the lines using the ‘Lines’ setting.

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.  If you add this indicator to the same chart as my ‘Last Two Highest High and Lowest Low Lines – Yearly Quarterly, Monthly, Weekly, Daily, 4 Hour and 1 Hour’ indicator and turn off the lines and values then it can provide up to date labels for that indicator.

Apply 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 apply it to 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 • 69 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. dario ti • 66 days ago #

    Excellent, i was looking for something like that, but could be great if you add the option to switch from High/Low to Open/Close because they are very sensitive retracement levels for scalping!
    Thank you very much

  3. DaxRider • 14 days ago #

    Thank U for ur sharing Vonasi

avatar
Register or

Likes

avatar avatar avatar avatar
Related users ' posts
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 Thank you!
Razz Hello Vonasi super indicator! is it possible to extend the indicator by the time scales M10 ...
Razz Hello Vonasi I found out myself how I can change it. Thanks again for the indicator
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, ..
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...
rama This is one of best indicator to trade any time frame
Madrosat Is this indicator as it is , useful in strategy automatic
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 ...
Nicolas Add the ZigZag indicator on the chart, and with the same percent setting as this indicator.
Kris75 Hello Nicolas, Il semble que la variable DaysBefore fasse planter la représentation graphiq...
Nicolas Peut-être à cause du manque d'historique. Celle-ci est utile pour limiter la quantité de ret...
Nicolas Thanks a lot for this new valuable addition to our library. I changed line 76 with "barindex...
Horance Thanks. I've noticed this leftover after submission, but it was too late for editing. BTW, I...
Etienne Thanks Horance for porting this code to PRT. I would like to bring some speedup to your cod...
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...
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?
Nicolas Sorry again, doing my best to fix this problem..
Gianluca Sorry but the 2° code that you posted have some problem it doesn't work
Leo I have to check
Wester HI, which values do I need to change before I can use it?
ALE Hello Wester, you can change or not every variables that are in the code. if you need as...
LancerX This catch my attention, tried to load in pro order but not coming through. What variables n...
DaxRider Thank you Supertiti for your contribution best wishes
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
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...

Top