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.

Capture.jpg
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.

Capture.jpg
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);
 
Solution

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
258 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

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?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top