Weekly Opening Range for TOS - ThinkOrSwim | futures io social day trading
futures io futures trading


Weekly Opening Range for TOS
Updated: Views / Replies:3,381 / 7
Created: by greg9 Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Weekly Opening Range for TOS

  #1 (permalink)
Elite Member
SLC, UT
 
Futures Experience: Intermediate
Platform: Sierra
Favorite Futures: ES CL
 
greg9's Avatar
 
Posts: 108 since Mar 2013
Thanks: 101 given, 67 received

Weekly Opening Range for TOS

I have a script from thinkscripter that gives the Opening Range on a Daily chart. This script plots the high and low for the morning and shows the lines going forward until the end of the day. One can change the times it records for plotting lines for each day.

What I need is an Opening Range script that plots the opening range for the Week. This would record monday morning's high/low and plot it for the entire week going forward.

Anyone have this script for TOS or know how to make it?

Thanks

Reply With Quote
 
  #2 (permalink)
Elite Member
Portland, OR
 
Futures Experience: None
Platform: tos
Favorite Futures: NQ, SB, 6J, CL, GC
 
Massive l's Avatar
 
Posts: 1,458 since Mar 2011
Thanks: 922 given, 1,822 received

I'll look into it but I bet @rmejia knows.

Psychology > Strategy ≥ Money
Reply With Quote
The following user says Thank You to Massive l for this post:
 
  #3 (permalink)
1.Fibs 2.??? 3.Profit
Puerto Rico
 
Futures Experience: Intermediate
Platform: thinkorswim
Broker/Data: TD Ameritrade
Favorite Futures: ES
 
rmejia's Avatar
 
Posts: 384 since Oct 2010
Thanks: 3,597 given, 421 received


I do it manually drawing a rectangle and inputing the dates.

This code is as far as I got; don't know how to push the start of the lines forward.
 
Code
def TheWeek = getWeek();
def WeekBeg = if TheWeek != TheWeek[1] then 1 else 0;

rec displayedHigh = if IsNan(high > displayedHigh[1]) then 0 else if weekBeg then high else displayedHigh[1];
REC displayedLow = if IsNan(low > displayedLow[1]) then 0 else if WeekBeg == 1 then low else displayedLow[1];


rec ORHigh = if IsNan(ORHigh[1]) then 0 else if WeekBeg == 1 then displayedHigh else ORHigh[1];
rec ORLow = if IsNan(ORLow[1]) then 0 else if WeekBeg == 1 then displayedLow else ORLow[1];


plot Opening_Range_High = ORHIgh;
plot Opening_Range_Low = ORLow;
Perhaps @growex can figure it out!

Reply With Quote
The following 3 users say Thank You to rmejia for this post:
 
  #4 (permalink)
Elite Member
SLC, UT
 
Futures Experience: Intermediate
Platform: Sierra
Favorite Futures: ES CL
 
greg9's Avatar
 
Posts: 108 since Mar 2013
Thanks: 101 given, 67 received


rmejia View Post
I do it manually drawing a rectangle and inputing the dates.

This code is as far as I got; don't know how to push the start of the lines forward.
 
Code
def TheWeek = getWeek();
def WeekBeg = if TheWeek != TheWeek[1] then 1 else 0;

rec displayedHigh = if IsNan(high > displayedHigh[1]) then 0 else if weekBeg then high else displayedHigh[1];
REC displayedLow = if IsNan(low > displayedLow[1]) then 0 else if WeekBeg == 1 then low else displayedLow[1];


rec ORHigh = if IsNan(ORHigh[1]) then 0 else if WeekBeg == 1 then displayedHigh else ORHigh[1];
rec ORLow = if IsNan(ORLow[1]) then 0 else if WeekBeg == 1 then displayedLow else ORLow[1];


plot Opening_Range_High = ORHIgh;
plot Opening_Range_Low = ORLow;
Perhaps @growex can figure it out!

This is a good start! I wish I knew more about coding in tos. This is plotting a range and holding it for the week like I need. Somehow I need the code to plot it from sunday high/low to Monday market open high/low and then hold that going forward for the week.

Thanks for your start on this. I think its a good starting point for what it needs to be. Maybe someone else knows how to complete it.

Thanks for looking into it

Reply With Quote
 
  #5 (permalink)
Elite Member
Trubchevsk
 
Futures Experience: Beginner
Platform: tos
Favorite Futures: stocks
 
Posts: 48 since May 2011
Thanks: 34 given, 64 received

Thats easy

rmejia, thank you.

gsl8r, open the TS_OpeningRange study in thinkscript editor and add these lines to the end of the script.

 
Code
                            
def date GetYYYYMMDD();
def MondayORHigh = if getdayOfWeek(date) == 1 then orHigh else MondayORHigh[1];
def MondayORLow = if getdayOfWeek(date) == 1 then orLow else MondayORLow[1];
plot hline MondayORHigh;
plot lline MondayORLow
It will hold your choosen Monday morning open range levels for entire week until next Monday

Reply With Quote
The following 3 users say Thank You to growex for this post:
 
  #6 (permalink)
Elite Member
SLC, UT
 
Futures Experience: Intermediate
Platform: Sierra
Favorite Futures: ES CL
 
greg9's Avatar
 
Posts: 108 since Mar 2013
Thanks: 101 given, 67 received


growex View Post
rmejia, thank you.

gsl8r, open the TS_OpeningRange study in thinkscript editor and add these lines to the end of the script.

 
Code
                            
def date GetYYYYMMDD();

def MondayORHigh = if getdayOfWeek(date) == 1 then orHigh else MondayORHigh[1];
def MondayORLow = if getdayOfWeek(date) == 1 then orLow else MondayORLow[1];
plot hline MondayORHigh;
plot lline MondayORLow
It will hold your choosen Monday morning open range levels for entire week until next Monday

Awesome! It works!

Thank you for this and everyone else that helped me out.

Reply With Quote
 
  #7 (permalink)
Elite Member
Dallas, Texas
 
Futures Experience: Intermediate
Platform: TOS
Favorite Futures: AAPL, /ES, IWM, SPY Options
 
Posts: 208 since Oct 2012
Thanks: 440 given, 101 received


growex View Post
rmejia, thank you.

gsl8r, open the TS_OpeningRange study in thinkscript editor and add these lines to the end of the script.

 
Code
                            
def date GetYYYYMMDD();

def MondayORHigh = if getdayOfWeek(date) == 1 then orHigh else MondayORHigh[1];
def MondayORLow = if getdayOfWeek(date) == 1 then orLow else MondayORLow[1];
plot hline MondayORHigh;
plot lline MondayORLow
It will hold your choosen Monday morning open range levels for entire week until next Monday

Where do enter in the times (somewhere in the code)? I'm a total noob when comes to code
Thanks

Reply With Quote
 
  #8 (permalink)
Elite Member
SLC, UT
 
Futures Experience: Intermediate
Platform: Sierra
Favorite Futures: ES CL
 
greg9's Avatar
 
Posts: 108 since Mar 2013
Thanks: 101 given, 67 received


blb014 View Post
Where do enter in the times (somewhere in the code)? I'm a total noob when comes to code
Thanks

@blb014 you won't enter in any times into this code. The script automatically plots the weekly opening range for every week on the chart.

One thing you will need is to buy this script: Opening Range | ThinkScripter and then make the addition provided here to it.

I don't feel right about posting it it here since its a paid script and owned by Eric.

Reply With Quote
The following user says Thank You to greg9 for this post:

Reply



futures io > > > > Weekly Opening Range for TOS

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening Range Breakout ptcm EasyLanguage Programming 48 May 4th, 2017 03:15 AM
opening range breakout mhmdfx TradeStation 7 April 29th, 2016 04:04 AM
opening range play squeezed Traders Hideout 7 February 8th, 2013 12:41 AM
Opening Range of 6E supermht Currency Futures 4 April 8th, 2012 08:05 PM
Opening Range Indicator msocks The Elite Circle 0 September 16th, 2009 12:58 AM


All times are GMT -4. The time now is 04:24 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-12-18 in 0.10 seconds with 19 queries on phoenix via your IP 54.221.136.62