# 50% Retracement From Daily High/Low

#### iselloptions

##### New member
saw a guy using this indicator. It is for intraday charts and only plots during the current session starting from open. it simply plots the midpoint (50% retracement) between the high and low of the current day starting from open.
below is a link where i saw it, go to time around 13 minutes to see it. its the yellow line.

media content blocked. Commercial content is not allowed under the term and guidelines of the forum

thanks for any help!

Last edited by a moderator:
Solution
saw a guy using this indicator. It is for intraday charts and only plots during the current session starting from open. it simply plots the midpoint (50% retracement) between the high and low of the current day starting from open.
below is a link where i saw it, go to time around 13 minutes to see it. its the yellow line.

thanks for any help!

Turn off the plot of the high/low developing lines if you only want the mid/50% retracement line.

Ruby:
``````input ShowTodayOnly = yes;
input ORBegin       = 0930;
input OREnd         = 1600;
input onexpansion   = no;
def ORActive = if SecondsTillTime(OREnd) > 0 and
SecondsFromTime(ORBegin) >= 0
then 1
else if...``````
saw a guy using this indicator. It is for intraday charts and only plots during the current session starting from open. it simply plots the midpoint (50% retracement) between the high and low of the current day starting from open.
below is a link where i saw it, go to time around 13 minutes to see it. its the yellow line.

thanks for any help!

Turn off the plot of the high/low developing lines if you only want the mid/50% retracement line.

Ruby:
``````input ShowTodayOnly = yes;
input ORBegin       = 0930;
input OREnd         = 1600;
input onexpansion   = no;
def ORActive = if SecondsTillTime(OREnd) > 0 and
SecondsFromTime(ORBegin) >= 0
then 1
else if SecondsFromTime(ORBegin)[1] < 0 and
SecondsFromTime(ORBegin) >= 0
then 1
else 0;
def ORHigh   = if ORHigh[1] == 0 or
ORActive[1] == 0 and
ORActive == 1
then high
else if ORActive and
high > ORHigh[1]
then high
else ORHigh[1];
def ORLow    = if ORLow[1] == 0 or
ORActive[1] == 0 and
ORActive == 1
then low
else if ORActive and
low < ORLow[1]
then low
else ORLow[1];

def ORHexp = if isnan(close)
then ORHexp[1]
else ORHigh;
def ORLexp = if isnan(close)
then ORLexp[1]
else ORLow;

plot ORH = if (ShowTodayOnly and
GetDay() != GetLastDay()) or
!ORActive
then Double.NaN
else if onexpansion and isnan(close)
then ORHexp
else if !onexpansion
then ORHigh
else double.nan;
plot ORL = if (ShowTodayOnly and
GetDay() != GetLastDay()) or
!ORActive
then Double.NaN
else if onexpansion and isnan(close)
then ORLexp
else if !onexpansion
then ORLow
else double.nan;
plot MID = if (ShowTodayOnly and
GetDay() != GetLastDay()) or
!ORActive
then Double.NaN
else (ORH + ORL) / 2;

ORH.SetDefaultColor(Color.GREEN);
ORH.SetStyle(Curve.MEDIUM_DASH);
ORH.SetLineWeight(2);
ORL.SetDefaultColor(Color.RED);
ORL.SetStyle(Curve.MEDIUM_DASH);
ORL.SetLineWeight(2);
MID.SetDefaultColor(Color.LIGHT_ORANGE);
MID.SetStyle(Curve.MEDIUM_DASH);
MID.SetLineWeight(2);``````

Turn off the plot of the high/low developing lines if you only want the mid/50% retracement line.
Ruby nice indicator i adjusted the time to show the 1700 es open but only works on market hours can it be made to work from 1700 open ? thankyou

Ruby nice indicator i adjusted the time to show the 1700 es open but only works on market hours can it be made to work from 1700 open ? thankyou
That is not currently available

87k+ Posts
258 Online

## The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
• Exclusive indicators
• Proven strategies & setups
• Private Discord community
• Exclusive members-only content
• 1 full year of unlimited support

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?