When one don't have any interest in looking at historical prices and the main interest is having those historical prices only into today's session, one can plot all of them on the right edge of the chart.
Where's an example by plotting today's range as a rectangle and plotting today's open, yesterday's close, high and low as simple lines.
Here's the code of this study
Keep note that the charts bar shift needs to be equal or lower than the RightShift study input because otherwise you'll receive an error.
Code: Select all
CurrentSess = CurrentSession(0) ;
if CurrentSess <> CurrentSess then begin
prevDayOp = DailyOp;
prevDayCl = DailyCl;
DailyOp = Open;
if DailyHi <> -999999 then
prevDayHi = DailyHi;
if DailyLo <> +999999 then
prevDayLo = DailyLo;
DailyHi = -999999;
DailyLo = +999999;
DailyCl = Close;
if High > DailyHi then
DailyHi = High;
if Low < DailyLo then
DailyLo = Low;
for value1 = 0 to RightShift begin
Here's the settings style
Obviously this is way to simplistic and the idea is to build something more complex, mixing different time frames, allowing us to follow different ones in a more easy a simple way, without having lines on top of lines and on top of the price bars, creating that mishmash look.
Here is the initial idea.
Having the monthly, weekly and daily (RTH and ETH) high and low, shown as rectangles and then having simple lines showing previous day, week and month highs and lows.
Here's this past Friday playback of how things look like.
You can see how this Friday ZN made a new week high and also a new week and month low, for me, in a very easy to read way.
Obviously that this would look better if we had transparencies and such but...