Displaying Range of First Bar of Day - ThinkOrSwim Programming | futures io social day trading
futures io futures trading


Displaying Range of First Bar of Day
Updated: Views / Replies:2,987 / 1
Created: by sat1234 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
 

Displaying Range of First Bar of Day

  #1 (permalink)
Trading Apprentice
North Vancouver BC Canada
 
Futures Experience: Intermediate
Platform: Trade Navigator
 
Posts: 1 since Nov 2010
Thanks: 1 given, 0 received

Displaying Range of First Bar of Day

I would like to display the range (High-Low) of the first bar of the trading day
on a 5 minute TOS chart. I would also like to add a user option to display the range
of the first 3 bars of the trading day as an alternative if it's possible. I know how to
display the result, I just need to know what script to use to identify the range for the
first bar or first 3 bars. I appreciate any suggestions.

Reply With Quote
 
  #2 (permalink)
Trading Apprentice
Russia.Kazan.Butlerova str.
 
Futures Experience: Beginner
Platform: Thinkorswim
Favorite Futures: Stocks
 
Posts: 1 since Jul 2012
Thanks: 0 given, 1 received


sat1234 View Post
I would like to display the range (High-Low) of the first bar of the trading day
on a 5 minute TOS chart. I would also like to add a user option to display the range
of the first 3 bars of the trading day as an alternative if it's possible. I know how to
display the result, I just need to know what script to use to identify the range for the
first bar or first 3 bars. I appreciate any suggestions.

def na=double.nan;
input ORBegin = 0930;
input OREnd = 0935;
input ShowTodayOnly={"No", default "Yes"};
def s=ShowTodayOnly;
Def ORActive = if secondstilltime(OREnd)>0 AND secondsfromtime(ORBegin)>=0 then 1 else 0;
def today=if s==0 OR getday()==getlastday() AND secondsfromtime(ORBegin)>=0 then 1 else 0;
Rec 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];
Rec 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 ORWidth = ORHigh - ORLow;
Plot ORH=if ORActive OR today<1 then na else ORHigh;
Plot ORL=if ORActive OR today<1 then na else ORLow;
ORH.setdefaultcolor(color.green);
ORH.setStyle(Curve.FIRM);
ORH.setlineweight(3);
ORL.setdefaultcolor(color.red);
ORL.setStyle(Curve.FIRM);
ORL.setlineweight(3);

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

Reply



futures io > > > > > Displaying Range of First Bar of Day

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
Range bar indicator scg427 TradeStation 6 September 28th, 2012 01:01 PM
Range Bar Time zeller4 NinjaTrader Programming 19 July 17th, 2012 10:20 AM
How do I determine what size range bar is comparable to a daily bar? Trankuility Traders Hideout 14 January 15th, 2012 11:46 AM
End of bar strategies with advanced bar types (Renko, Range, Kagi, etc) RM99 Elite EasyLanguage Automated Trading 2 September 9th, 2011 09:38 AM
Range Bar Charts don10 NinjaTrader 12 October 29th, 2010 01:36 AM


All times are GMT -4. The time now is 05:48 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-17 in 0.07 seconds with 19 queries on phoenix via your IP 54.163.210.170