Colour time zones indicator - NinjaTrader | futures io social day trading
futures io futures trading


Colour time zones indicator
Updated: Views / Replies:7,703 / 17
Created: by nickohorny Attachments:6

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
 6  
 
Thread Tools Search this Thread
 

Colour time zones indicator

  #1 (permalink)
Just starting out...
birmingham
 
Futures Experience: None
Platform: ninjatrader
 
Posts: 1 since Jan 2010
Thanks: 0 given, 0 received

Colour time zones indicator

Hi Guys

I am very new and been searching for an indicator for Ninja that will let me colour/highlight certain areas of my chart - eg/ colour between 12-2pm as red etc. I thought that Ninja would let me do this within properties but seems not.

I have been through the indicator section but cannot seem to find anything? Any help greatly appreciated.

Thanks
Nick

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Neubrandenburg, Germany
 
Futures Experience: Advanced
Platform: R
Favorite Futures: Stocks
 
wh's Avatar
 
Posts: 538 since Jun 2009
Thanks: 297 given, 480 received


test this one

 
Code
                            
 if( (ToTime(Time[0]) >= 000000 && ToTime(Time[0]) <= 010000)||
                (
ToTime(Time[0]) >= 020000 && ToTime(Time[0]) <= 030000)||
                (
ToTime(Time[0]) >= 040000 && ToTime(Time[0]) <= 050000)||
                (
ToTime(Time[0]) >= 060000 && ToTime(Time[0]) <= 070000)||
                (
ToTime(Time[0]) >= 080000 && ToTime(Time[0]) <= 090000)||
                (
ToTime(Time[0]) >= 100000 && ToTime(Time[0]) <= 110000)||
                (
ToTime(Time[0]) >= 120000 && ToTime(Time[0]) <= 130000)||
                (
ToTime(Time[0]) >= 140000 && ToTime(Time[0]) <= 150000) || 
                (
ToTime(Time[0]) >= 160000 && ToTime(Time[0]) <= 170000)||
                (
ToTime(Time[0]) >= 180000 && ToTime(Time[0]) <= 190000)||
                (
ToTime(Time[0]) >= 200000 && ToTime(Time[0]) <= 210000)||
                (
ToTime(Time[0]) >= 220000 && ToTime(Time[0]) <= 230000
                )
                  
                {
                    
BackColor Color.DarkGray;
                    
                       
tradecolor Color.Gray;
                    
                    
                }
                else
                {
                
                       
tradecolor Color.Gray;
                } 

Causality is the relationship between an event (the cause) and a second event (the effect), where the second event is a consequence of the first.
Attached Files
Register to download File Type: cs TradingTime.cs (5.9 KB, 167 views)
Reply With Quote
The following user says Thank You to wh for this post:
 
  #4 (permalink)
 Vendor: www.integrity-traders.com 
East Rochester, NY
 
Futures Experience: Intermediate
Platform: NT
 
eDanny's Avatar
 
Posts: 327 since Jul 2009
Thanks: 17 given, 419 received

Remember that anytime you try something like that on non time based charts it will be inaccurate. Example: If you have a 2000 tick chart and the color is supposed to change at 12:00 noon till 1:00PM (lunch maybe) and the 11:58 AM candle does not close till 12:04 PM, you will not get a color change till 12:04 PM. Just a heads up. You might only want to use an indicator like this on a time chart with intervals set to be able to land right on your desired color change times.

Dan

Reply With Quote
The following user says Thank You to eDanny for this post:
 
  #5 (permalink)
Administrator: Retired Backtester
 Vendor: speedytradingservers.com 
Rennes France
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Futures
 
sam028's Avatar
 
Posts: 3,366 since Jun 2009
Thanks: 3,573 given, 3,982 received


wh View Post
test this one

 
Code
                            
 if ( (ToTime(Time[0]) >= 000000 && ToTime(Time[0]) <= 010000)||
                (
ToTime(Time[0]) >= 020000 && ToTime(Time[0]) <= 030000)||
                (
ToTime(Time[0]) >= 040000 && ToTime(Time[0]) <= 050000)||
                (
ToTime(Time[0]) >= 060000 && ToTime(Time[0]) <= 070000)||
                (
ToTime(Time[0]) >= 080000 && ToTime(Time[0]) <= 090000)||
                (
ToTime(Time[0]) >= 100000 && ToTime(Time[0]) <= 110000)||
                (
ToTime(Time[0]) >= 120000 && ToTime(Time[0]) <= 130000)||
                (
ToTime(Time[0]) >= 140000 && ToTime(Time[0]) <= 150000) || 
                (
ToTime(Time[0]) >= 160000 && ToTime(Time[0]) <= 170000)||
                (
ToTime(Time[0]) >= 180000 && ToTime(Time[0]) <= 190000)||
                (
ToTime(Time[0]) >= 200000 && ToTime(Time[0]) <= 210000)||
                (
ToTime(Time[0]) >= 220000 && ToTime(Time[0]) <= 230000
                )
                  
                {
                    
BackColor Color.DarkGray;
                    
                       
tradecolor Color.Gray;
                    
                    
                }
                else
                {
                
                       
tradecolor Color.Gray;
                } 


Why not something like:

 
Code
                            
if (((Time[0].Hour) % 2) == 0)                  
{
  
BackColor Color.DarkGray;            
  
tradecolor Color.Gray;
}
else
  {
... 

Success requires no deodorant! (Sun Tzu)
Reply With Quote
The following 2 users say Thank You to sam028 for this post:
 
  #6 (permalink)
Elite Member
Northern California
 
Futures Experience: Intermediate
Platform: Ninja Trader
Broker/Data: Amp Futures/ Zen-Fire
Favorite Futures: YM and CL
 
Jeff Castille's Avatar
 
Posts: 2,119 since Jun 2009
Thanks: 1,785 given, 3,279 received


wh View Post
test this one

 
Code
                            
 if( (ToTime(Time[0]) >= 000000 && ToTime(Time[0]) <= 010000)||
                (
ToTime(Time[0]) >= 020000 && ToTime(Time[0]) <= 030000)||
                (
ToTime(Time[0]) >= 040000 && ToTime(Time[0]) <= 050000)||
                (
ToTime(Time[0]) >= 060000 && ToTime(Time[0]) <= 070000)||
                (
ToTime(Time[0]) >= 080000 && ToTime(Time[0]) <= 090000)||
                (
ToTime(Time[0]) >= 100000 && ToTime(Time[0]) <= 110000)||
                (
ToTime(Time[0]) >= 120000 && ToTime(Time[0]) <= 130000)||
                (
ToTime(Time[0]) >= 140000 && ToTime(Time[0]) <= 150000) || 
                (
ToTime(Time[0]) >= 160000 && ToTime(Time[0]) <= 170000)||
                (
ToTime(Time[0]) >= 180000 && ToTime(Time[0]) <= 190000)||
                (
ToTime(Time[0]) >= 200000 && ToTime(Time[0]) <= 210000)||
                (
ToTime(Time[0]) >= 220000 && ToTime(Time[0]) <= 230000
                )
 
                {
                    
BackColor Color.DarkGray;
 
                       
tradecolor Color.Gray;
 
 
                }
                else
                {
 
                       
tradecolor Color.Gray;
                } 

Hey WH,

Is there a way that you could code this indicator to be able to choose the color for both no trade times (red) and trade times(green or blue) ? I was thinking of using this in a separate panel.

Attached Thumbnails
Colour time zones indicator-ym-03-10-2_16_2010-5-min-.jpg  
Reply With Quote
The following user says Thank You to Jeff Castille for this post:
 
  #7 (permalink)
Elite Member
Washington, DC
 
Futures Experience: Intermediate
Platform: Ninja and TOS
Broker/Data: Ninja
Favorite Futures: CL, ES
 
SawDr's Avatar
 
Posts: 55 since Dec 2009
Thanks: 81 given, 38 received

Does anyone have this indicator for Ninja 7 built so it can be downloaded? Couldn't find it in the fileshare and I'm not capable of making a new indicator using the parameters suggested on this thread.
Thanks!

Reply With Quote
 
  #8 (permalink)
Elite Member
Springfield,Missouri, USA
 
Futures Experience: Advanced
Platform: NinjaTrader (It's a love/hate relationship)
Favorite Futures: CL, TF, 6E
 
Slipknot511's Avatar
 
Posts: 176 since May 2010
Thanks: 60 given, 312 received


SawDr View Post
Does anyone have this indicator for Ninja 7 built so it can be downloaded? Couldn't find it in the fileshare and I'm not capable of making a new indicator using the parameters suggested on this thread.
Thanks!


Look for the indicator "Colored Time Zones" on this page. Works on 6.5 and 7.

Reply With Quote
The following user says Thank You to Slipknot511 for this post:
 
  #9 (permalink)
Elite Member
U.S.A.
 
Futures Experience: Advanced
Platform: NinjaTrader
 
Posts: 19 since May 2010
Thanks: 5 given, 11 received

|| ToTime(Time[0]) <= 80000 || ToTime(Time[0]) >= 134500

I'm having a problem testing the following:
if (ToTime(Time[
0]) <= 80000 || ToTime(Time[0]) >= 134500){ return;}.
I'm in backtest101. Is it true that you can only test ToTime
in real time instead of backtesting. I should be getting zero data in my
Strategy Analyzer. Instead it's like the ToTime didn't work. In my test data
it says I have a profit when I shouldn't have any profit because the computer
time is 205400 which is greater than the 134500 end time. The system should
not give me any profit. But it's as though the ToTime didn't work. Maybe I
have to test this in sym. Any opinions would be welcome.

Attached Thumbnails
Colour time zones indicator-bg_main.jpg  
Reply With Quote
 
  #10 (permalink)
Administrator: Retired Backtester
 Vendor: speedytradingservers.com 
Rennes France
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Futures
 
sam028's Avatar
 
Posts: 3,366 since Jun 2009
Thanks: 3,573 given, 3,982 received


Your problem is somewhere else, not in this "if ...", which is correct.
Maybe you are entering only in this time windows, but never check the time for the exits ?

Success requires no deodorant! (Sun Tzu)
Reply With Quote

Reply



futures io > > > > Colour time zones indicator

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
need vwap indicator that changes colour on up and downmoves anniebee321 NinjaTrader 27 August 10th, 2017 08:09 PM
The VMA Zones indicator. The "Kill Zone"?? Tiberius Traders Hideout 6 October 5th, 2013 09:56 PM
ForceIndex - Colour up/down perryg NinjaTrader Programming 5 October 13th, 2012 11:46 AM
Volume Zones vs GOM indicator lawtan NinjaTrader 8 July 7th, 2011 08:59 PM
ninja background colour dependant on indicator kiwihsv NinjaTrader 9 January 6th, 2011 03:57 AM


All times are GMT -4. The time now is 07:11 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-16 in 0.16 seconds with 20 queries on phoenix via your IP 54.226.113.250