OPEN-SOURCE SCRIPT

MM Day Trader Levels

Telah dikemas kini
As an intraday trader, there are certain key levels that I care about for short-term price action on every single chart. When I first began day trading, each morning I would painstakingly mark those key levels off on the charts I planned to trade each day. Depending on the number of charts I was watching, this would take up quite a bit of my time that I felt would have been much better spent doing other things. It also meant that those levels would often be left behind, and on later days I might be trading a symbol and get confused when a line appeared and I'd be paying attention to it only to later discover that it wasn't from prior day, but from some other day in the past when I had marked it off.

I looked all over TradingView to find indicators that did this automatically for me, and I found a lot of them. One by one I tried them, and inevitably I would always find that something was wrong with them. Often they didn't have all of the levels I wanted (so I would have to combine multiple indicators), but more often I found that the levels would be incorrect, or they would be buggy and not appear consistently, or they would not appear at the right time, or they would not work on futures! The list of problems went on and on. And the biggest issue I found was that nobody knew how to get session volume profile in an indicator.

So, over the course of a few years I figured out how to solve all of those problems and now I'm thrilled to present this free indicator for everyone like me who trades intraday and wants a clean consistent way to see the prior day levels that they care about automatically on every single chart (even futures). The levels the indicator provides are:

  • Yesterday High & Low
  • Value Area High & Low & Point of Control
  • Today's Open
  • Yesterday's Close (aka "Settlement" on futures)
  • Premarket High & Low (non-futures only)
  • Overnight High & Low (futures only)


These levels are extremely important, and I expect price to be reactive to them, so each level has a shaded background behind it so that the levels stand out against other lines you may have on your chart. I try to keep configuration as simple as possible, but there are configuration options that allow you to:

  • Hide any of the levels
  • Change the color for the levels
  • Shade the value area (or not)
  • Change the label text, size, type (basic label or plain text) and location (how far to the right of last candle to place the label
  • Adjust session volume profile value area volume & number of rows


The biggest advantage to this indicator over others on TradingView is how it handles session volume profile. When it comes to futures, TradingView does differentiate between regular trading hours and "electronic" trading hours on the charts, but their timeframes for those sessions are unusual, and they do not provide any programmatic way to differentiate between them. So, I created a whole new library for dealing with futures sessions that is fully integrated into both my Session Volume Profile library and this indicator, allowing me to bring you the best and only custom indicator available on TradingView that provides you with true regular session volume profile information across every type of symbol, including futures.

I'm incredibly proud of everything I've been able to provide with this indicator, and even more thrilled to say that I'm proud of how the indicator has been implemented. Once again releasing this indicator and all associated code for free and open source. I encourage you to take a look at the source code to see how it all works, take advantage of the free underlying libraries I created to make all of this possible: Session Library and Session Volume Profile Library.
Nota Keluaran
Some charts were not printing session.islastbar's, causing a bug where the levels from prior day would not switch over. Introduced a failsafe where it forces the day levels to switch if the day switches over.
Nota Keluaran
TradingView recently introduced a change that caused bugs with lines and labels, making them disappear and reappear randomly. This release is a workaround for that bug so the lines and labels should remain in place consistently.
Nota Keluaran
Fixed a bug that caused the opening print from prior day to show during premarket of the current day.
Nota Keluaran
Updated indicator to include a fix in the SessionVolumeProfile library that caused incorrect levels to appear on low volume symbols.
Nota Keluaran
Added alerts for breaks of prior day's range (high or low) and overnight high/low.
Nota Keluaran
  • Fixed a bug where the prior day high/low values were incorrect when on the hourly timeframe.
  • Introduced a new level: "Half". The half-way point between yesterday's high & low.
Nota Keluaran
Fixes a bug where the levels don't show up when the chart has extended hours off.
Nota Keluaran
Added options to remove the shading behind the level lines. Kept the shade present for the most important daily levels: yesterday high/low and yesterday point of control.
daytraderlevelsintradayPivot points and levelspointofcontrolsessionvolumeprofilevalueareaVolume Profileyesterdayyesterdayhighyesterdaylow

Skrip sumber terbuka

Dalam semangat sebenar TradingView, penulis telah menerbitkan kod Pine ini sebagai sumber terbuka supaya pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara percuma, tetapi penggunaan semula kod dalam penerbitan ini adalah dikawal oleh Peraturan dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Ingin menggunakan skrip ini pada carta?


I release TradingView indicators and libraries designed to make you a better trader. For detailed info about them, head over to improve.trading
Juga pada:

Penafian