The “Mid-Level Day” indicator (for day trading)

The “Mid-Level Day” indicator (for day trading)

Hi all,

Here is an indicator that could be particularly useful for day traders. I found this idea on a website, obviously not well-known because I can not find it anymore.

This indicator works like pivot points, but it is more simple.

As a reminder, the pivot point is calculated as follows : average between the high of the day before, the low of the day before and the close of yesterday.

I have some problems with the calculation of the pivot point : the closing clearly depends on the closing time of your broker, and also the time zone.

Indeed, according to your broker:

– if you trade for example a CFD on France 40, you will have candles from 00H to 00H with some brokers like IG, or from 08H to 22H with some other brokers, etc.

– if you trade forex, candles can go from 23H to 23H, or from 00H to 00H : they will not be quite the same, so the calculation of the pivot points will not be the same.

Here, this indicator will clearly get rid of this problem, since it will only consider the highest and the lowest of the previous days.

Here’s what this indicator shows:

– a GREEN line for the average of the highest and lowest of the previous day

– a BLUE line for the average of the highest and the lowest of the last 3 days

– a RED line for the average of the highest and the lowest of the last 5 days

What is the purpose of this indicator ?

– It allows to have a visualization of the current momentum : as for the pivot points, the position of the prices with respect this set of levels (which can almost be considered as a kind of pivot points) makes it possible to visualize the trend

– It allows to consider entries for « long » trades (break of the highest line), or for « short » trades (break of the lowest line)

You are free to set the rules of your strategy, such as :

– stop loss (eg at the opposite line / precise number of points)

– take profit (number of points / last higher or lower / stop follower)


Personally, I didn’t yet dig the question more than that ; but…

– I think this simple approach must be effective, also limiting the risk of overtrading, and could serve as a basis for an effective day trading strategy.

– I propose you to try to use this strategy, to test different rules, and to communicate to me the results

So, together we could develop an effective day trading strategy, shared by all.

Best regards and Happy trading

Here is the code :

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. Jessar • 10/27/2017 #

    Hallo, wirklich ein sehr guter Indikator!

    Ich bin Programmier technisch leider noch ein Anfänger, könnten sie mir helfen diesen Indikator in einen Code einzubauen.

    Würde in gerne als Trend Filter verwenden, hätte mir sowas gedacht wie IF mid1day > mid5day then c1 = 1 aber wenn ich mid1day verwende findet er es nicht! danke

  2. Jessar • 10/27/2017 #

    Wäre auch super wenn wir dieses Gespräch in das Forum verlegen könnten.

  3. Andyswede • 10/27/2017 #

    Really good, thanks a lot 🙂

  4. Paul • 10/27/2017 #

    Thanks for posting. I was currently searching how to improve day-trading based on support and resistance levels. Definitely will focus next strategy based on this indicator and will post back!

  5. Jessar • 10/27/2017 #

    Könntest du im Forum etwas öffnen und später darüber zu sprechen?

  6. arahussein • 10/27/2017 #

    Hi All,
    I am new to trading and i find this indicator very logicail! Hence my (dumb?) question, has anyone had tried this for swingtrading? If yes, any guidence on how to proceed?
    Many thanks in advance,

Register or


avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar

+4 more likes

Related users ' posts
Nicolas Add it on the price chart by using the wrench at the left upperside of the price chart.
Guibourse Bonjour Nicolas, en dépit de mes efforts, je ne parviens pas à trouver comment ajouter une c...
Nicolas c'est en effet plutôt complexe dans cette version du code qui trace dans le passé depuis la ...
IV Mcm I don't speak English and the translation is not clear. Do you have a different turn of ...
IV Mcm stonk ?
samsampop Thanks very much for sharing, look forward to testing this idea out.
FXTT the choice of period and start and end time is exactly what i was asking for the classic piv...
Noobywan (My apologies for unformatted code, the formatting only works in forum or library posts not ...
Noobywan Hi FXTT, no problem for requests (as long as no one requests me singing), just usually it’s ...
Nicolas Le paramètre showcl doit être en true (égal à 1 )
Lednora Ah oui en effet c’est magique!j’étais resté bloqué sur la ligne 96^^. Merci beaucoup nicolas...
samsampop Merci Nicolas, c'est superb!
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?
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...
mscharstrom Hi @robertogozzi, I really love this indicator. However, I'd like to tinker with it to fit ...
Ahimsa Hi Roberto I cannot thank you enough for writing this code. It could help me more than you ...
Nicolas With PRT v11, you have to click on "price" at the upper left side of the price chart.
Juanjo Hola?. Exactamente cuál es su utilización?.
bolsatrilera Hola Juanjo, su principio esparecido a las bandas de Bollinguer.Las lineas de las bandas son...
anandxsawant Hi Odin, Thanks for this screener based on the popular criteria to trade trends from Marc...
Vonasi The indicator code can easily be adapted for use as a filter in strategies as well. For exam...
AVT Tested today in manual DAX trading (transcripted to MT and changed look into aka oszillator)...
Vonasi I think that short time frame charts will be too noisy for this indicator. One blue bar real...
Vonasi I forgot to mention in the description that Sunday pivot lines are ignored and Monday's pivo...
AVT Like that, simple and clear!
Vonasi Thanks AVT. I like simple - some people would say that I do simple very well! Sometimes you ...
Nicolas Formule de l'indicateur Momentum: Le Momentum se calcule avec une simple soustraction pour ...
Roberto1 Hi, can this code be converted for the Nanotrader Platform or for the MT4 Platform?
Nicolas This website is dedicated for PRT programming, but you can still ask for private coding with...
robbo192 Have you any indicators that might help you trade off round numbers. I look for the break a...
s00071609 I am using this indicator but it keep crashing as i change the timeframe. For example, chang...
Nicolas in the mean time you can try this one:
GraHal Is this the Discussion Topic you need @Gregg
bertrandpinoy bonjour Nicolas y a t il une possibilité de signal sonore dès qu une vente ou un achat serai...
Nicolas Oui cela nécessitera une adaptation du code cependant, merci de formuler une demande sur le ...
Nicolas Please open a new forum topic, and respect the posting rules. Add a precise description of w...
FXTT ok will do, apologies, as I said I am new here. many thanks
Noobywan Version v2 including requested additions:
crolakstrading Hi Nicolas.. I'm really big fan of this indicator! is there any possibility to make this ind...
Nicolas Yes, that's possible. Please open a new topic in the forum.
crolakstrading Just saw your reply thank you!! I will open up a new topic!!