Opening Range EUR with Close and Open. Timeframedetection for configuration with 1-5-10-15-30min charts.

Opening Range EUR with Close and Open. Timeframedetection for configuration with 1-5-10-15-30min ...

Original basis was Pre-Market EUR/USA (Opening Range) | Graph Indicator Ver. 1.0 from Swapping, here and here .

Added some changes and features.

– segment for opening price;

– segment for yesterday’s closing price;

– Automatic detection of the timeframe;

– Automatic configuration for 1-5-10-15-30min charts.

Attached a version for EUR and USA.



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. swapping • 06/18/2019 #

    Hello Thomas, good modification that improves the initial program 😉

    • Thomas • 06/18/2019 #

      Thanks swapping. That´s Teamwork 😉

  2. Jesper • 06/18/2019 #

    This looks very interesting. I’m getting an error though when trying to launch it – A positive integer field is expected with HIGHEST.

    I’m thinking it would be the variable Frame you define prior. Not sure why it does that.

    Any thoughts?

  3. Razz • 06/18/2019 #

    Hello Thomas the indicator is very good! Can you tell me how I can add 2 lines in the distance of the range to the high and low?
    Have the currently solved so is not very nice.


    return STL as “STL”,STS as “STS”


  4. eva.g.forsgren • 06/18/2019 #

    Går det att få en för dax också?

  5. ed65 • 06/18/2019 #

    hi great indicator how can i adjust time frame for opening rge ie to first 5 min , thanks in advance

    • Thomas • 06/18/2019 #

      The you must use the timeframe 1min and change the code from endtime = 090000 // 09h00 to endtime = 090500 // 09h05

Register or


avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
khashayar Hi Can you please upload the TMA channel code? Thank you
Luciole I aslo got this error message with EU version : "A positive integer parameter is expected wi...
Suzu Yuk So Does anyone knows how to fix the error "“A positive integer parameter is expected with HI...
Thomas I haven't solved it yet. I suspect it has to do with the data cache. The problem has never o...
Dari when I put the indicator does not put it on the price, sn in a new box like many indicators....
Nicolas by adding it on price instead. Use the wrench on the left upper side of your price chart.
Vonasi Yes that was the issue. I have posted an updated ITF file here:
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 ...
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...
Kris75 Hi, This is great !! anyone ever developped a strategy about it ???
swapping hello Kris75, not that I know but it is possible to make a scenario ;)
digitation Hi swapping, Thanks for sharing this useful tool. I was wondering how difficult it would be...
AlexWoe89 Hi, thanks for the code. Do you have an idea, if you can also draw pre-market data on char...
Thomas Hello swapping. Very good idea. Can I use and modify the code? I would like to add a few mor...
Razz Hello swapping the indicator is very good! Can you tell me how I can add 2 lines in the dist...
swapping Hello wanjpt, I do not see how to do it because the calculation is for 12 candles of 5mn onl...
wanjpt Thanks swapping.
Thomas @wanjpt
Mirko Vaglio Interesting idea to bypass the limit of PRT about multiple timeframe, and I am just trying t...
Mirko Vaglio Looking a little bit more, now I understand what had to be absolutely obvious from the first...
Seb nice code! I'm trying to use your method to do a higher timeframe EMA, without success yet. ...