How to color bars by day/time? - Sierra Chart | futures io social day trading
futures io futures trading


How to color bars by day/time?
Updated: Views / Replies:825 / 8
Created: by futuretrader Attachments:3

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
 

How to color bars by day/time?

  #1 (permalink)
Elite Member
Milan Italy
 
Futures Experience: Intermediate
Platform: Ninjatrader, Sierra Chart
Favorite Futures: ES
 
Posts: 523 since Feb 2010
Thanks: 470 given, 629 received

How to color bars by day/time?

What would be the best / easiest way to color bars in SC based on day and time?

Here's an example of what I want from NT, with different colors for each globex session.

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
The following user says Thank You to futuretrader for this post:
 
  #2 (permalink)
Trading for Fun
Nicosia, Cyprus
 
Futures Experience: Advanced
Platform: X_Trader Pro, TWS, CQG, Sierra Charts
Broker/Data: Interactive Brokers, Data: CQG, TTNEt
Favorite Futures: crude arbitrage, spreads, energy, grains
 
Posts: 191 since Dec 2013
Thanks: 28 given, 104 received

I'm not sure if you can paint bars based on time. The only known option is to use Session Indicator study. It will show you a colored line at the bottom of the main price graph. And you can set only two sessions in Sierra Chart.

Reply With Quote
 
  #3 (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


You can color bars based on time with the Color Bar Based On Alert Condition study. You would need a separate instance of this study for each color, and a Simple Alert formula on the Alerts tab. Here is a link to the documentation:
Study/Chart Alerts And Scanning - Sierra Chart

There is no Identifier in Simple Alerts for day of the week. For this, you'd need to use the Spreadsheet Study study. However, you could alternate two colors based on odd/even of the serialdate.

If you need help with formulas, post here again.

Reply With Quote
The following 2 users say Thank You to tomgilb for this post:
 
  #4 (permalink)
Elite Member
Milan Italy
 
Futures Experience: Intermediate
Platform: Ninjatrader, Sierra Chart
Favorite Futures: ES
 
Posts: 523 since Feb 2010
Thanks: 470 given, 629 received

Thanks Tom, I had looked at the documentation for the simple alerts and color bar function, but realized it wouldn't do what I wanted - so it looks like the spreadsheet is the way to go.

I'll play with the spreadsheet and see what I come up with - would I need to use a separate sheet for each color?

I appreciate that you don't need to code in SC, but sometimes it seems a lot easier to whip up some code in Ninja to do these things....

Reply With Quote
 
  #5 (permalink)
Elite Member
Tallinn, Estonia
 
Futures Experience: Beginner
Platform: SC
Broker/Data: Oanda
Favorite Futures: USOil / West Texas Oil
 
lemons's Avatar
 
Posts: 788 since Nov 2010
Thanks: 1,417 given, 1,996 received

Solution

@futuretrader

Simpler is

From "Settings and Inputs " tab pick start and end time

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
The following user says Thank You to lemons for this post:
 
  #6 (permalink)
Elite Member
Milan Italy
 
Futures Experience: Intermediate
Platform: Ninjatrader, Sierra Chart
Favorite Futures: ES
 
Posts: 523 since Feb 2010
Thanks: 470 given, 629 received


lemons View Post

Simpler is

From "Settings and Inputs " tab pick start and end time

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Thanks lemons, but as far as I can see that won't give different colors by day of week.

Might be useful for distinguishing day and overnight sessions in other charts, though.

Reply With Quote
 
  #7 (permalink)
Elite Member
England
 
Futures Experience: Advanced
Platform: SierraChart
 
Posts: 58 since Jul 2009
Thanks: 5 given, 57 received


tomgilb View Post
You can color bars based on time with the Color Bar Based On Alert Condition study. You would need a separate instance of this study for each color, and a Simple Alert formula on the Alerts tab. Here is a link to the documentation:
Study/Chart Alerts And Scanning - Sierra Chart

There is no Identifier in Simple Alerts for day of the week. For this, you'd need to use the Spreadsheet Study study. However, you could alternate two colors based on odd/even of the serialdate.

If you need help with formulas, post here again.

Actually, although it does not say so in the documentation, you can use WEEKDAY in an alert formula.

For example, =WEEKDAY(BARDATE)=3

So the full formula would be something like =AND(WEEKDAY(BARDATE)=3,BARTIME >= your start time, BARTIME <= your end time)

Reply With Quote
The following 2 users say Thank You to swandro for this post:
 
  #8 (permalink)
Elite Member
Milan Italy
 
Futures Experience: Intermediate
Platform: Ninjatrader, Sierra Chart
Favorite Futures: ES
 
Posts: 523 since Feb 2010
Thanks: 470 given, 629 received

Thanks swandro,
I saw your post as I was going to upload the same solution
In the documentation it says that any of the spreadsheet functions can be used, so i did it using 3 alerts.
Pretty straightforward once you know....

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
The following user says Thank You to futuretrader for this post:
 
  #9 (permalink)
Elite Member
Prospect, KY. USA
 
Futures Experience: None
Platform: Sierra Chart
Broker/Data: Infinity
Favorite Futures: /CL
 
WilleeMac's Avatar
 
Posts: 683 since Jan 2012
Thanks: 301 given, 606 received

@swandro
@futuretrader

Thank you

I noticed you can also use the following

=WEEKDAY(BARDATE)=MONDAY ........(Tuesday etc)

This perhaps can help with easy identification etc

-William

Reply With Quote
The following 2 users say Thank You to WilleeMac for this post:

Reply



futures io > > > > How to color bars by day/time?

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
How to color OHLC bars? GoldenRatio TradeStation 6 September 16th, 2015 06:32 PM
Gradient Color Bars aligator The Elite Circle 2746 February 5th, 2015 02:56 PM
color bars indicator esam_jir NinjaTrader Programming 3 November 16th, 2010 04:06 AM
color bars in tradestation ford7k EasyLanguage Programming 1 September 10th, 2010 02:34 AM
MACD color bars Markus NinjaTrader Programming 3 July 4th, 2010 03:51 AM


All times are GMT -4. The time now is 02:41 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-13 in 0.13 seconds with 20 queries on phoenix via your IP 54.163.209.109