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?

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

  1. Vonasi • 04/11/2019 #

    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 • 04/11/2019 #

    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 • 04/11/2019 #

    Thank U for ur sharing Vonasi

  4. jandehaas • 04/11/2019 #

    Hello Vonasi, I tried it but it does not seem to work,any idea why ? Thanks,Jan

    defparam drawonlastbaronly = true

    //Y = 0
    //Q = 0
    //M = 1
    //W = 0
    //D = 0
    //H4 = 0
    //H1 = 0
    //Lines = 1
    //Values = 1

  5. matthieuatd • 04/11/2019 #

    Hello is it possible to add the m15? Thank you

    • Vonasi • 04/11/2019 #

      It is possible but I will need to reread the code and remind myself how it works as I coded it a log time ago! I’ll add it to my list.

  6. Giogio • 04/11/2019 #

    hello dear Vonasi, thank you for your indicator, can I ask you for some help in order to let your indicator work on my platform?thank you in advance GIoia i am an italian trader who lives in Italy

  7. Pottar24 • 04/11/2019 #

    HI Vonasi I would like to know how can this algorithm give me the value of the last max e min over a period of time.
    THank you very much

  8. parthapersonal • 04/11/2019 #

    Hello Vonasi,
    Great work. Is it possible to replicate this to get values of “Price Line” (1 hour, 4 hour and Daily high and low) so that we can develop signals on these lines for long/ short please?
    Many thanks.

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
YvesRobert Hello David, can you explain to me this strategy ? You calculate the difference between t...
davidelaferla The strategy calculates the variation between the body and the previous body (however in pro...
KumoNoJuzza Thanks David it looks great. I am playing with it to get familiar. Do you think it would b...
BaderBader Good day davidelaferla, Thank you for making your strategy available to the community, I do...
Iván Hi You should delete from the indicator code all drawing functions and all variables not us...
Iván I've created a screener to show [longcondition or shortcondition]
Chrisinobi Hallo Ivan, Danke das ist Perfekt !! Kannst du bitte in der Screener-Bibliothek die itf. hoc...
elcortijoverde Muy buen trabajo.Intuitivo y claro.Gracias por tu dedicación y aportación.
Ciccarelli Franco Hai ragione, mi dava valori alti perchè usavo questo loss "SET STP LOSS 1xAverageTrueRange{1...
YvesRobert Hello davidelaferla, how do you put a stop loss and where exactly ? the moment you enter on ...
Hypersimo Buongiorno Davide a quale distanza inserire stop loss e tp nella strategia? grazie
Paris On est bien d accord que l indicateur repeint ....
Nicolas naturellement si la bougie du timeframe supérieur n'est pas terminé
ThePenntChemist Does this show 5min time frame?
Guibourse Hi, I'd like to increase the thickness of support and resistance lines. I do not think that ...
JJ Tec Hello. Thanks for the great contribution of the indicator. At the moment, I have modified i...
Khaled Hi Vonasi, I tried to embed your PP Fractals code in a Strategy and it seems to be a good fi...
IV Mcm I don't speak English and the translation is not clear. Do you have a different turn of ...
IV Mcm stonk ?
avatar
Anonymous Thanks very much for sharing, look forward to testing this idea out.
fazel53 How do i attach this indicator to my mt5 platform?
Nicolas You can't! All indicators here are for ProRealTime trading platform: https://www.prorealtime...
mistersylv What parameter should we change to make another channel appear in the higher or lower time u...
carpentier Joffrey Bonjour à tous, Avant tout merci pour ce travail, cependant je suis bloqué quand je l'insta...
carpentier Joffrey Re, C'est ok, j'ai trouvé mon erreur... Cependant sur quel base peut on calculer son CALC...
Aragorna Hi Nicolas, How is it possible to use it in a higher timeframe plotted on a lower timeframe?...
Bhanu Pratap Great Work Sir, Hats Off.
bolsatonimora2 Hi Roberto, It is possible to modify this indicator which it marks the supports and resist...
robertogozzi What do you mean by "very high volume"? What do you want to be printed exactly?
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...
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.
Psari Hi Vonasi, I am a newbie and was wondering whether you could possibly help me with this pro...
Vonasi Yes that was the issue. I have posted an updated ITF file here: https://www.prorealcode.com/...
crolakstrading @vonasi Thank you for fixing the issue! This is a great indicator.
gregoire good evening vonasi , I had made the request to create this indicator a few years ago and I ...
tobytarczy Hi Vonasi, Sounds lovely, I race yachts around europe myself. Most regattas cancelled unfor...
mlouys Hello Vonasi thank for your work ! A question how can we do it for minutes ( or 15 min or x ...
Vonasi I think that would be possible but probably in a whole new indicator as detecting when a new...
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.
Vonasi That should be possible - I'll add it to my list to work on!
thierrybl Thanks a lot
B-ling1 Hi Vonasi, I love this indicator - good job! Just one question: If I want the monthly OHLC L...
datageek How do I change the thickness of the line or change it too dashed lines? Kind regards
lkiklkik NE fonctionne pas ( ou plus ... )
Nicolas il faut modifier toutes les références à top par itop et bottom par ibottom. Ces mots étant ...

Top