Drawing boxes around Market Sessions... - Sierra Chart | futures io social day trading
futures io futures trading


Drawing boxes around Market Sessions...
Updated: Views / Replies:1,372 / 2
Created: by funk101 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
 

Drawing boxes around Market Sessions...

  #1 (permalink)
Elite Member
Margate, Fl.
 
Futures Experience: Advanced
Platform: NinjaTrader/R
Favorite Futures: Futures
 
Posts: 24 since Jun 2009
Thanks: 5 given, 5 received

Drawing boxes around Market Sessions...

Is there a study that draws a rectangle around each of the market sessions? For instance, a rectangle would be drawn from the beginning of New York open to New York close and the rectangle's height would be *that* sessions highest-high to it's lowest-low. The same would hold true for London, Sydney, Asia. If there isn't one that exists, is there some code that can point me in the right direction?

Reply With Quote
The following user says Thank You to funk101 for this post:
 
  #2 (permalink)
Elite Member
Phoenix AZ USA
 
Futures Experience: Advanced
Platform: SierraChart
Broker/Data: TradePro/TransAct
Favorite Futures: NQ YM RTY
 
Posts: 295 since Nov 2009
Thanks: 125 given, 338 received


funk101 View Post
Is there a study that draws a rectangle around each of the market sessions? For instance, a rectangle would be drawn from the beginning of New York open to New York close and the rectangle's height would be *that* sessions highest-high to it's lowest-low. The same would hold true for London, Sydney, Asia. If there isn't one that exists, is there some code that can point me in the right direction?

You can do something similar with a combination of the High/Low for Time Period study, and the Spreadsheet Study study.

Here are two links that explain some of the details:
[Reviewed] ACD A levels & Opening Ranges - Sierra Chart
[Reviewed] Session OHLC study instead of Daily OHLC? - Sierra Chart

Use the Fill Top and Fill Bottom Draw Styles between the Subgraph pairs. It doesn't draw a rectangle, but it shades the background between the lines and within the times. Be sure to check Draw Study Underneath Main Price Graph.

If you need more help, post here again.

Reply With Quote
 
  #3 (permalink)
Elite Member
Margate, Fl.
 
Futures Experience: Advanced
Platform: NinjaTrader/R
Favorite Futures: Futures
 
Posts: 24 since Jun 2009
Thanks: 5 given, 5 received

How can I *actually* do this?


I'm trying to draw a rectangle at market session times, I'm hung up on getting a bar index at a specific date. Actually what I really want to do is define the different market start and end times, ny, london, etc. and grab the highest high to lowest low of each of those sessions, and draw a rectangle around that data. My code below is a feeble attempt at getting there, maybe someone can shed some light:

SCDateTime nyOpen, nyClose;

nyOpen.SetDateTimeYMDHMS(2012, 6, 20, 9, 00, 00);
nyClose.SetDateTimeYMDHMS(2012, 6, 20, 16, 00, 00);

---

Tool.ChartNumber = sc.ChartNumber;
Tool.DrawingType = DRAWING_RECTANGLEHIGHLIGHT;
Tool.Region = 0;
Tool.LineNumber = uniqueLineNumber;
Tool.BeginDateTime = nyOpen;
Tool.EndDateTime = nyClose;

Tool.BeginValue = sc.High[sc.BaseDateTimeIn[nyOpen]]; <-- possible??
Tool.EndValue = sc.Low[sc.BaseDateTimeIn[nyClose]]; <-- possible??


Tool.Color = COLOR_LIGHTBLUE;
Tool.SecondaryColor = COLOR_LIGHTBLUE;
Tool.AddMethod = UTAM_ADD_OR_ADJUST;
Tool.LineWidth = 2;

sc.UseTool(Tool);


Last edited by funk101; June 20th, 2012 at 11:49 PM.
Reply With Quote

Reply



futures io > > > > Drawing boxes around Market Sessions...

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
XStudy sessions config ignl Trading Technologies 1 March 26th, 2012 01:04 PM
Stocktastics Focus Sessions Stocktastic Trading Journals 33 December 5th, 2011 10:40 AM
Black boxes for vehicles to be compulsory by next month kbit Off-Topic 0 May 25th, 2011 10:13 PM
x sessions ago SARdynamite NinjaTrader Programming 15 July 13th, 2010 09:20 PM
coding for beginners : Text + Value-Boxes in your chart max-td NinjaTrader Programming 5 January 14th, 2010 07:56 AM


All times are GMT -4. The time now is 06:17 AM.

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-14 in 0.08 seconds with 19 queries on phoenix via your IP 54.160.245.121