NexusFi: Find Your Edge


Home Menu

 





Coloring bars based on time period


Discussion in NinjaTrader

Updated
    1. trending_up 1,783 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 2 attachments




 
Search this Thread

Coloring bars based on time period

  #1 (permalink)
 
matevisky's Avatar
 matevisky 
Nelson, New Zealand
 
Experience: Beginner
Posts: 470 since May 2013
Thanks Given: 633
Thanks Received: 1,533

Is there any indicator for Ninjatrader, which is coloring the tick bar based on timewindows? (no not the background, the bars itself). Example:
I want to color the tick bars if the time is between 9:40:30 and 9:44:30 (second count as well).
I am using different tick charts so if the tick bar color has to be changed if the times occure and it has been not closed yet...

My guess there is no indi like this, but any help, would be appriciated

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Futures True Range Report
The Elite Circle
Online prop firm The Funded Trader (TFT) going under?
Traders Hideout
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
59 thanks
Funded Trader platforms
37 thanks
GFIs1 1 DAX trade per day journal
22 thanks
NexusFi site changelog and issues/problem reporting
22 thanks
The Program
20 thanks
  #2 (permalink)
 
bd92154's Avatar
 bd92154 
San Diego
 
Experience: Intermediate
Platform: NinjaTrader/Think or Swim
Broker: TDA/Interactive Brokers/ Data Feed TDA & IBK ( Dropped Kinetick)
Trading: Stocks NASDAQ
Posts: 1,058 since May 2011
Thanks Given: 1,542
Thanks Received: 448


matevisky View Post
Is there any indicator for Ninjatrader, which is coloring the tick bar based on timewindows? (no not the background, the bars itself). Example:
I want to color the tick bars if the time is between 9:40:30 and 9:44:30 (second count as well).
I am using different tick charts so if the tick bar color has to be changed if the times occure and it has been not closed yet...

My guess there is no indi like this, but any help, would be appreciated

Thanks for the challenge. Wow Watching Webinars here is really helping that and LearnVisualStudio.NET free C# classes. Mostly the webinars here though. Saw your question and figured I'd give it a stab. As you can see from the picture I tested it using a minute chart. I don't have a 30 second chart, but I did code for that. (WOW Plus the light is going off in my head now how to input times into my strategies and indicators as a variable. Thanks)

Attached are pictures, and indicator with compiled code.

Hope this helps you. I have still been working on how to be able to have time variables changed on strategy entry. The one that I wrote for you is hard coded, but easy enough for you to go in and change to your liking.


Thanks for the challenge.
Thanks to Big Mike for this site and all the encouragement.
Thanks to NinjaTrader Josh for his webinars also as they helped to solidify some of these C# mysteries for me.

Attached Files
Elite Membership required to download: TimeBarColor.zip
Visit my NexusFi Trade Journal Reply With Quote
  #3 (permalink)
 
bd92154's Avatar
 bd92154 
San Diego
 
Experience: Intermediate
Platform: NinjaTrader/Think or Swim
Broker: TDA/Interactive Brokers/ Data Feed TDA & IBK ( Dropped Kinetick)
Trading: Stocks NASDAQ
Posts: 1,058 since May 2011
Thanks Given: 1,542
Thanks Received: 448



matevisky View Post
I want to color the tick bars if the time is between 9:40:30 and 9:44:30 (second count as well).
I am using different tick charts so if the tick bar color has to be changed if the times occure and it has been not closed yet...

Okay like I said you had me thinking. Thanks.
Here is what you can do next download the TimeZoneColors indicator here on Big Mike's Trading Forum. That is the one that I use for back coloring my chart with light smoke, but to each their own. First save it as TimeZoneBarColors after you import and then edit script. You can also open the script I gave you cut and past that in for where you want changes to bars instead of background colors. For the seconds you are going to have to add some variables to the logic, but it can be done.
Go one change at a time so if the indicator bombs you have less troubleshooting involved.
TTYL (Y)

Visit my NexusFi Trade Journal Reply With Quote
  #4 (permalink)
 JustinIsHere 
Montreal, Canada
 
Experience: Beginner
Platform: NinjaTrader, Multicharts
Trading: ES
Frequency: Never
Duration: Never
Posts: 113 since Dec 2011
Thanks Given: 57
Thanks Received: 127


matevisky View Post
Is there any indicator for Ninjatrader, which is coloring the tick bar based on timewindows? (no not the background, the bars itself). Example:
I want to color the tick bars if the time is between 9:40:30 and 9:44:30 (second count as well).
I am using different tick charts so if the tick bar color has to be changed if the times occure and it has been not closed yet...

My guess there is no indi like this, but any help, would be appriciated

Take a look at SessionColors
https://nexusfi.com/local_links_search.php?action=show&literal=1&search=sessioncolors&desc=1&keys=1

To make it color your time window, you need to go to "Tools", "Session Manager" and segment the day as you like.
Then on your chart, you select that Session Template you created, by going into "Data Series".
Once you activate the indicator on your chart, you can then edit the colors.

More info in this thread:

Reply With Quote
Thanked by:




Last Updated on July 3, 2014


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts